// $Id$ // // File: DBCALSiPMHit.h // Created: Fri May 13 11:06:38 EDT 2011 // Creator: davidl (on Darwin eleanor.jlab.org 10.7.0 i386) // #ifndef _DBCALSiPMHit_ #define _DBCALSiPMHit_ #include "BCAL/DBCALGeometry.h" #include #include using namespace jana; // WARNING: This class represents the SiPM hits and is intended // for debugging of simulated data only. The information contained // here may not be available in real data (use the DBCALHit objects // for that). // // Objects of this class hold hold data from the bcalSiPMUpHit and // bcalSiPMDownHit structures from HDDM class DBCALSiPMHit:public JObject{ public: JOBJECT_PUBLIC(DBCALSiPMHit); DBCALSiPMHit(){} virtual ~DBCALSiPMHit(){} int module; int layer; int sector; DBCALGeometry::End end; float E; float t; int cellId; void toStrings(vector > &items)const{ AddString(items, "cellId", "%d", cellId); 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(GeV)", "%2.3f", E); AddString(items, "t(ns)", "%4.2f", t); } }; #endif // _DBCALSiPMHit_