Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:00

0001 #ifndef INTTRAWDATA_H__
0002 #define INTTRAWDATA_H__
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <InttHotMap.h>
0006 
0007 /// Class declarations for use in the analysis module
0008 class PHCompositeNode;
0009 class TFile;
0010 class TTree;
0011 class InttEvent;
0012 
0013 /// Definition of this analysis module class
0014 class InttRawData : public SubsysReco
0015 {
0016  public:
0017   /// Constructor
0018   InttRawData(const std::string &name = "InttRawData",
0019               const std::string &fname = "inttevent.root");
0020 
0021   // Destructor
0022   virtual ~InttRawData();
0023 
0024   /// SubsysReco initialize processing method
0025   int Init(PHCompositeNode *);
0026   
0027   /// SubsysReco initialize processing method
0028   int InitRun(PHCompositeNode *);
0029 
0030   /// SubsysReco event processing method
0031   int process_event(PHCompositeNode *);
0032 
0033   /// SubsysReco end processing method
0034   int End(PHCompositeNode *);
0035 
0036   void SetHotMapFile(const char* filename) { hotfilename_ = std::string(filename); }
0037 
0038   InttEvent* getInttEvent(){ return inttEvt_; }
0039 
0040   struct OfflineRawdata{
0041     int layer;
0042     int ladder_z;
0043     int ladder_phi;
0044     int bco;
0045     int chip;
0046     int chan;
0047     int adc;
0048 
0049     void set(int Layer, int Ladder_z, int Ladder_phi, int Bco, int Chip, int Chan, int Adc){
0050       layer       = Layer;
0051       ladder_z    = Ladder_z;
0052       ladder_phi  = Ladder_phi;
0053       bco         = Bco;
0054       chip        = Chip;
0055       chan        = Chan;
0056       adc         = Adc;
0057     }
0058   };
0059 
0060 
0061   std::string fname_;
0062   std::string hotfilename_;
0063 
0064   InttHotMap hotmap_;
0065 
0066   TFile* inFile_;
0067   TTree* tree_;
0068   InttEvent* inttEvt_;
0069   int        ievent_;
0070 };
0071 
0072 #endif