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
0013 class PHCompositeNode;
0014 class TFile;
0015 class TTree;
0016 class RawTowerContainer;
0017 class RawTowerGeomContainer;
0018 class TProfile2D;
0019
0020
0021 RawTowerContainer* _ohcal_towers_o;
0022
0023
0024
0025
0026 RawTowerGeomContainer* _ohcal_towergeom;
0027
0028
0029
0030
0031
0032 class Calib: public SubsysReco
0033 {
0034 public:
0035
0036 Calib(const std::string &name="Calib");
0037
0038
0039 int Init(PHCompositeNode *);
0040
0041 int InitRun(PHCompositeNode *);
0042
0043
0044 int process_event(PHCompositeNode *);
0045
0046
0047 int EndRun(PHCompositeNode *);
0048 int End(PHCompositeNode *);
0049
0050
0051 void set_filename(const char* file)
0052 { if(file) _outfile_name = file; }
0053
0054 private:
0055
0056 std::string _outfile_name;
0057
0058
0059 int _event;
0060
0061 float _oCalib_ohcal;
0062
0063
0064 void fill_tree(PHCompositeNode*);
0065
0066
0067 int GetNodes(PHCompositeNode *);
0068
0069 TProfile2D *hprof2d;
0070
0071
0072 TTree* _event_tree;
0073
0074
0075
0076 };
0077
0078 #endif