// $Id: DTOFHit.h Tue Jan 18 16:15:26 EST 2011 // /// File: DTOFHit.h /// Created: Tue Jan 18 16:15:26 EST 2011 /// Creator: B. Zihlmann /// Purpose: Container class to hold Monte Carlo data, unsmeared and /// smeared with the MC tag. // #ifndef _DTOFHit_ #define _DTOFHit_ #include "JANA/JObject.h" #include "JANA/JFactory.h" class DTOFHit:public jana::JObject{ public: JOBJECT_PUBLIC(DTOFHit); int plane; // plane (0: vertical, 1: horizontal) int bar; // bar number int end; // left/right 0/1 or North/South 0/1 float dE; // attenuated energy deposition float t; // ns time of light at end of bar float sigma_t; // uncertainty on t in ns bool has_fADC; // true if this has an fADC hit bool has_TDC; // true if this has an TDC hit void toStrings(vector > &items)const{ AddString(items, "bar", "%d", bar); AddString(items, "plane", "%d", plane); AddString(items, "end", "%d", end); AddString(items, "dE", "%12.4e", dE); AddString(items, "t", "%12.4e", t); } }; #endif // _DTOFHit_