StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dighistograms.h
1 #ifndef MAPS_DIGHISTO_H
2 #define MAPS_DIGHISTO_H
3 
4 #include <TNamed.h>
5 #include <TList.h>
6 #include <TGraph.h>
7 #include "Riostream.h"
8 #include "vector"
9 
10 // ROOT classes
11 #include "TString.h"
12 #include "TObject.h"
13 #include "TVector.h"
14 #include "TFile.h"
15 #include "TSystem.h"
16 #include "TRandom.h"
17 #include "TProfile.h"
18 #include "TH1.h"
19 #include "TH2.h"
20 #include "TH3F.h"
21 #include "TObjArray.h"
22 #include "TTree.h"
23 #include "TBranch.h"
24 #include "TClonesArray.h"
25 #include "TCanvas.h"
26 #include "TGraphErrors.h"
27 #include "TProfile.h"
28 #include "Riostream.h"
29 #include "TSystem.h"
30 #include "TInterpreter.h"
31 
32 
33 
34 
35 
36 
37 using namespace std;
38 
39 class DIGInitialize;
40 class DIGPlane;
41 class DIGADC;
42 class DIGBeam;
43 class DIGTransport;
44 class DIGParticle;
45 class DIGAction;
46 class DIGEvent;
47 //class DIGMAPS;
48 //==============================================================================
50  //class DIGHistograms {
51  public:
52  DIGHistograms();
53  DIGHistograms(Int_t myNumberOfConfigurations);
54  DIGHistograms(DIGHistograms& adighisto);
55  virtual ~DIGHistograms();
56  void Clear(const Option_t * /*option*/ = "");
57  void PrintInfo();
58 
59  Int_t GetNumberOfConfigurations(){return fNumberOfConfigs;}
60 
61  void SetNumberOfConfigurations(Int_t myNumberOfConfigurations);
62  void BookHistograms(Int_t myNumberOfConfigurations);
63  void PlotHistograms(Int_t myNumberOfConfigurations);
64  // friend class DIGMAPS;
65 
66  TH1F* AutoZoom(TH1F* H,Option_t* aType="all", Int_t EntryMin=0);
67  TH2F* AutoZoom(TH2F* H,Option_t* aType="all", Int_t EntryMin=0);
68 
69  protected:
70 
71 
72 
73 
74  //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
75  // Histogram list
76  //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
77 
78 
79  //----------------------
80  // general histograms
81  //----------------------
82  TH1F *h1_NumberOfEventsPerConfiguration;
83  TH1F *h1_NumberOfConfigurations;
84 
85  //----------------------
86  // cluster histograms
87  //----------------------
88  Int_t fNumberOfConfigs; // number of configurations to study = nb of planes x nb of ADCs x nb beams
89 
90  TObjArray *Ar_h1_multiplicity_with_threshold_01;
91  TObjArray *Ar_h1_multiplicity_with_threshold_02;
92  TObjArray *Ar_h1_multiplicity_with_threshold_03;
93  TObjArray *Ar_h1_multiplicity_with_threshold_04;
94  TObjArray *Ar_h1_multiplicity_with_threshold_05;
95  TObjArray *Ar_h1_multiplicity_with_threshold_06;
96  TObjArray *Ar_h1_multiplicity_with_threshold_07;
97  TObjArray *Ar_h1_multiplicity_with_threshold_08;
98  TObjArray *Ar_h1_multiplicity_with_threshold_09;
99  TObjArray *Ar_h1_multiplicity_with_threshold_10;
100 
101  TObjArray *Ar_h1_multiplicity_with_threshold_15;
102  TObjArray *Ar_h1_multiplicity_with_threshold_20;
103  TObjArray *Ar_h1_multiplicity_with_threshold_25;
104  TObjArray *Ar_h1_multiplicity_with_threshold_30;
105  TObjArray *Ar_h1_multiplicity_with_threshold_40;
106 
107 
108  TObjArray *Ar_h1_Cluster_SeedDigitalCharge;
109  TObjArray *Ar_h1_Cluster_TotalDigitalCharge;
110  TObjArray *Ar_h1_Cluster_9x9DigitalCharge;
111  TObjArray *Ar_h1_Cluster_1stCrownDigitalCharge;
112  TObjArray *Ar_h1_Cluster_2ndCrownDigitalCharge;
113  TObjArray *Ar_h1_Cluster_4NeighboursDigitalCharge;
114  TObjArray *Ar_h1_Cluster_SeedOverTotalDigitalCharge;
115  TObjArray *Ar_h1_Cluster_1stCrownOverTotalDigitalCharge;
116  TObjArray *Ar_h1_Cluster_2ndCrownOverTotalDigitalCharge;
117  TObjArray *Ar_h1_Cluster_4NeighboursOverTotalDigitalCharge;
118 
119 
120  TObjArray *Ar_h1_Particle_TotalAnalogCharge;
121  TObjArray *Ar_h1_Particle_TotalDigitalCharge;
122  TObjArray *Ar_h1_Particle_Energy_deposited;
123  TObjArray *Ar_h2_Particle_EnergyDeposited_vs_TotalAnalogCharge;
124  TObjArray *Ar_h2_Particle_TotalDigitalCharge_vs_TotalAnalogCharge;
125 
126  TObjArray *Ar_h1_test;
127 
128  TObjArray *Ar_h1_Resolution_ResidualX_CoG_true;
129  TObjArray *Ar_h1_Resolution_ResidualY_CoG_true;
130  TObjArray *Ar_h1_Resolution_Residualdist_CoG_true;
131  TObjArray *Ar_h2_Resolution_TruePosition;
132  TObjArray *Ar_h2_Resolution_TruePosition_modulo;
133  TObjArray *Ar_h2_Resolution_CoG;
134  TObjArray *Ar_h2_Resolution_CoG_modulo;
135 
136  TObjArray *Ar_Pr_Charge_Q_over_Qtot_vs_distance;
137  TObjArray *Ar_h2_Charge_Q_over_Qtot_vs_distance;
138 
139 
140  TObjArray *Ar_h1_ADC_LSB;
141 
142  TObjArray *Ar_h1_Efficiency_ideal;
143 
144 
145 
146  ClassDef(DIGHistograms,1);
147 };
148 
149 
150 
151 //==============================================================================
152 
153 #endif
Definition: digadc.h:36