// $Id$ // // File: DBCALHit.h // Created: Thu Jun 9 10:14:35 EDT 2005 // Creator: davidl (on Darwin wire129.jlab.org 7.8.0 powerpc) // #ifndef _DBCALHit_ #define _DBCALHit_ #include "BCAL/DBCALGeometry.h" #include #include using namespace jana; class DBCALHit:public JObject{ /// This class holds data originating from the fADC250 /// modules connected to the BCAL public: JOBJECT_PUBLIC(DBCALHit); int module; int layer; int sector; DBCALGeometry::End end; float E; float t; int cellId; 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, "E(fADC)", "%2.3f", E); AddString(items, "t(ns)", "%4.2f", t); } }; #endif // _DBCALHit_