Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:22:09

0001 
0002 
0003 #ifndef __Calib_H__
0004 #define __Calib_H__
0005 
0006 #include <fun4all/SubsysReco.h>
0007 #include <string>
0008 #include <vector>
0009 
0010 
0011 
0012 //Forward declerations
0013 class PHCompositeNode;
0014 class TFile; 
0015 class TTree;
0016 class RawTowerContainer;
0017 class RawTowerGeomContainer;
0018 class TProfile2D;
0019 
0020 // towers
0021 RawTowerContainer* _ohcal_towers_o;
0022 
0023 
0024 
0025 //tower geom
0026 RawTowerGeomContainer* _ohcal_towergeom;
0027 
0028 
0029 
0030 
0031 //Brief: basic ntuple and histogram creation for sim evaluation
0032 class Calib: public SubsysReco
0033 {
0034  public: 
0035   //Default constructor
0036     Calib(const std::string &name="Calib");
0037 
0038   //Initialization, called for initialization
0039   int Init(PHCompositeNode *);
0040 
0041   int InitRun(PHCompositeNode *); 
0042 
0043   //Process Event, called for each event
0044   int process_event(PHCompositeNode *);
0045 
0046   //End, write and close files
0047   int EndRun(PHCompositeNode *);
0048   int End(PHCompositeNode *);
0049 
0050   //Change output filename
0051   void set_filename(const char* file)
0052   { if(file) _outfile_name = file; }
0053 
0054  private:
0055   //output filename
0056   std::string _outfile_name;
0057    
0058   //Event counter
0059   int _event;
0060 
0061   float _oCalib_ohcal;
0062 
0063   //User modules
0064   void fill_tree(PHCompositeNode*);
0065 
0066   //Get all the nodes
0067   int GetNodes(PHCompositeNode *);
0068   
0069   TProfile2D *hprof2d;
0070 
0071   //TTrees
0072   TTree* _event_tree;
0073 
0074 
0075  
0076 };
0077 
0078 #endif //* __Calib_H__ *//