Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:13:59

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