Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MvtxQAHisto.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MvtxQAHisto.h
1 #ifndef __MvtxQAHisto_H__
2 #define __MvtxQAHisto_H__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <string>
6 
7 //Forward declerations
8 class PHCompositeNode;
11 class TFile;
12 class TH1F;
13 class TH2F;
14 
15 //Brief: basic ntuple and histogram creation for sim evaluation
16 class MvtxQAHisto: public SubsysReco
17 {
18  public:
19  //Default constructor
20  MvtxQAHisto(const std::string &name="MvtxQAHisto");
21 
22  //Initialization, called for initialization
23  int Init(PHCompositeNode *);
24 
25  //Process Event, called for each event
27 
28  //End, write and close files
29  int End(PHCompositeNode *);
30 
31  //Change output filename
32  void set_filename(const char* file)
33  { if(file) _outfile = file; }
34 
35  private:
36  //output filename
38 
39  //Event counter
40  int _event;
41 
42  //Get all the nodes
43  void GetNodes(PHCompositeNode *);
44 
45  //flags
46  unsigned int _flags;
47 
48  float beam_x[4];
49  float beam_y[4];
50 
51  TH2F *h2d_hit[4];
52  TH2F *h2d_hit_beam[4];
53  TH2F *h2d_hit_trk[4];
54  TH1F *h1d_hit_per_evt[4];
55 
56  TH2F *h2d_clus[4];
57  TH2F *h2d_clus_beam[4];
58  TH1F *h1d_clus_per_evt[4]; //cluster in a chip per event
59  TH1F *h1d_clus_size_x[4];
60  TH1F *h1d_clus_size_z[4];
61 
64 
68 
70  TH1F *h1d_clus_eff;
71 
72 
73 };
74 
75 #endif //* __MvtxQAHisto_H__ *//