Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Calib.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Calib.h
1 
2 
3 #ifndef __Calib_H__
4 #define __Calib_H__
5 
6 #include <fun4all/SubsysReco.h>
7 #include <string>
8 #include <vector>
9 
10 
11 
12 //Forward declerations
13 class PHCompositeNode;
14 class TFile;
15 class TTree;
16 class RawTowerContainer;
18 class TProfile2D;
19 
20 // towers
22 
23 
24 
25 //tower geom
27 
28 
29 
30 
31 //Brief: basic ntuple and histogram creation for sim evaluation
32 class Calib: public SubsysReco
33 {
34  public:
35  //Default constructor
36  Calib(const std::string &name="Calib");
37 
38  //Initialization, called for initialization
39  int Init(PHCompositeNode *);
40 
41  int InitRun(PHCompositeNode *);
42 
43  //Process Event, called for each event
45 
46  //End, write and close files
47  int EndRun(PHCompositeNode *);
48  int End(PHCompositeNode *);
49 
50  //Change output filename
51  void set_filename(const char* file)
52  { if(file) _outfile_name = file; }
53 
54  private:
55  //output filename
57 
58  //Event counter
59  int _event;
60 
61  float _oCalib_ohcal;
62 
63  //User modules
65 
66  //Get all the nodes
68 
69  TProfile2D *hprof2d;
70 
71  //TTrees
72  TTree* _event_tree;
73 
74 
75 
76 };
77 
78 #endif //* __Calib_H__ *//