// $Id$ // // File: DBCALDigiHit.h // Created: Tue Aug 6 09:14:41 EDT 2013 // Creator: davidl (on Darwin harriet.jlab.org 11.4.2 i386) // #ifndef _DBCALDigiHit_ #define _DBCALDigiHit_ #include #include using namespace jana; class DBCALDigiHit:public JObject{ /// This class holds a single hit from a BCAL fADC250 module. /// The values are in the digitized form coming from the module /// and are therefore uncalibrated. public: JOBJECT_PUBLIC(DBCALDigiHit); int module; int layer; int sector; DBCALGeometry::End end; uint32_t pulse_integral; ///< identified pulse integral as returned by FPGA algorithm uint32_t pulse_time; ///< identified pulse time as returned by FPGA algorithm uint32_t pedestal; ///< pedestal info used by FPGA (if any) uint32_t QF; ///< Quality Factor from FPGA algorithms void toStrings(vector > &items)const{ AddString(items, "module", "%d", module); AddString(items, "layer", "%d", layer); AddString(items, "sector", "%d", sector); AddString(items, "end", "%s", end==0 ? "upstream":"downstream" ); AddString(items, "pulse_integral", "%d", pulse_integral); AddString(items, "pulse_time", "%d", pulse_time); AddString(items, "pedestal", "%d", pedestal); AddString(items, "QF", "%d", QF); } }; #endif // _DBCALDigiHit_