Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FCALSelector.C
Go to the documentation of this file.
1 #define FCALSelector_cxx
2 // The class definition in FCALSelector.h has been generated automatically
3 // by the ROOT utility TTree::MakeSelector(). This class is derived
4 // from the ROOT class TSelector. For more information on the TSelector
5 // framework see $ROOTSYS/README/README.SELECTOR or the ROOT User Manual.
6 
7 // The following methods are defined in this file:
8 // Begin(): called every time a loop on the tree starts,
9 // a convenient place to create your histograms.
10 // SlaveBegin(): called after Begin(), when on PROOF called only on the
11 // slave servers.
12 // Process(): called for each event, in this function you decide what
13 // to read and fill your histograms.
14 // SlaveTerminate: called at the end of the loop on the tree, when on PROOF
15 // called only on the slave servers.
16 // Terminate(): called at the end of the loop on the tree,
17 // a convenient place to draw/fit your histograms.
18 //
19 // To use this file, try the following session on your Tree T:
20 //
21 // Root > T->Process("FCALSelector.C")
22 // Root > T->Process("FCALSelector.C","some options")
23 // Root > T->Process("FCALSelector.C+")
24 //
25 
26 #include "FCALSelector.h"
27 #include <TH2.h>
28 #include <TStyle.h>
29 
30 
31 void FCALSelector::Begin(TTree * /*tree*/)
32 {
33  // The Begin() function is called at the start of the query.
34  // When running with PROOF Begin() is only called on the client.
35  // The tree argument is deprecated (on PROOF 0 is passed).
36 
37  TString option = GetOption();
38 
39  dOutputFile = new TFile("dh_FCALMCComparisonHists.root", "RECREATE");
40 
41  float locXMin = -100.0, locXMax = 100.0;
42  float locYMin = -100.0, locYMax = 100.0;
43  float locZMin = 632.0, locZMax = 646.0;
44  float locEMin = 0.0, locEMax = 9.1;
45  float locTMin = 18.8, locTMax = 19.8;
46 
47  float locDeltaXMin = -8.0, locDeltaXMax = 8.0;
48  float locDeltaYMin = -8.0, locDeltaYMax = 8.0;
49 // float locDeltaZMin = -2.0, locDeltaZMax = 12.0; //pre depth correction
50  float locDeltaZMin = -3.0, locDeltaZMax = 1.5;
51  float locDeltaEMin = -1.5, locDeltaEMax = 1.5;
52  float locDeltaTMin = -5.0, locDeltaTMax = 5.0;
53 
54  dPluginHist_FCAL_PathLengthCorrection = new TH2F("dPluginHist_FCAL_PathLengthCorrection", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);Path Length Correction (cm)", 100, locEMin, locEMax, 1000, -1.0, 25.0);
55 
56  //DeltaX Dependence
57  dPluginHist_FCAL_DeltaXVsX = new TH2F("dPluginHist_FCAL_DeltaXVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #DeltaX (cm)", 500, locXMin, locXMax, 400, locDeltaXMin, locDeltaXMax);
58  dPluginHist_FCAL_DeltaXVsY = new TH2F("dPluginHist_FCAL_DeltaXVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #DeltaX (cm)", 500, locYMin, locYMax, 400, locDeltaXMin, locDeltaXMax);
59  dPluginHist_FCAL_DeltaXVsZ = new TH2F("dPluginHist_FCAL_DeltaXVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #DeltaX (cm)", 100, locZMin, locZMax, 400, locDeltaXMin, locDeltaXMax);
60  dPluginHist_FCAL_DeltaXVsE = new TH2F("dPluginHist_FCAL_DeltaXVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #DeltaX (cm)", 100, locEMin, locEMax, 400, locDeltaXMin, locDeltaXMax);
61  dPluginHist_FCAL_DeltaXVsT = new TH2F("dPluginHist_FCAL_DeltaXVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #DeltaX (cm)", 100, locTMin, locTMax, 400, locDeltaXMin, locDeltaXMax);
62 
63  //DeltaY Dependence
64  dPluginHist_FCAL_DeltaYVsX = new TH2F("dPluginHist_FCAL_DeltaYVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #DeltaY (cm)", 500, locXMin, locXMax, 400, locDeltaYMin, locDeltaYMax);
65  dPluginHist_FCAL_DeltaYVsY = new TH2F("dPluginHist_FCAL_DeltaYVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #DeltaY (cm)", 500, locYMin, locYMax, 400, locDeltaYMin, locDeltaYMax);
66  dPluginHist_FCAL_DeltaYVsZ = new TH2F("dPluginHist_FCAL_DeltaYVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #DeltaY (cm)", 100, locZMin, locZMax, 400, locDeltaYMin, locDeltaYMax);
67  dPluginHist_FCAL_DeltaYVsE = new TH2F("dPluginHist_FCAL_DeltaYVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #DeltaY (cm)", 100, locEMin, locEMax, 400, locDeltaYMin, locDeltaYMax);
68  dPluginHist_FCAL_DeltaYVsT = new TH2F("dPluginHist_FCAL_DeltaYVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #DeltaY (cm)", 100, locTMin, locTMax, 400, locDeltaYMin, locDeltaYMax);
69 
70  //DeltaZ Dependence
71  dPluginHist_FCAL_DeltaZVsX = new TH2F("dPluginHist_FCAL_DeltaZVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #DeltaZ (cm)", 100, locXMin, locXMax, 400, locDeltaZMin, locDeltaZMax);
72  dPluginHist_FCAL_DeltaZVsY = new TH2F("dPluginHist_FCAL_DeltaZVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #DeltaZ (cm)", 100, locYMin, locYMax, 400, locDeltaZMin, locDeltaZMax);
73  dPluginHist_FCAL_DeltaZVsZ = new TH2F("dPluginHist_FCAL_DeltaZVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #DeltaZ (cm)", 100, locZMin, locZMax, 400, locDeltaZMin, locDeltaZMax);
74  dPluginHist_FCAL_DeltaZVsE = new TH2F("dPluginHist_FCAL_DeltaZVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #DeltaZ (cm)", 100, locEMin, locEMax, 400, locDeltaZMin, locDeltaZMax);
75  dPluginHist_FCAL_DeltaZVsT = new TH2F("dPluginHist_FCAL_DeltaZVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #DeltaZ (cm)", 100, locTMin, locTMax, 400, locDeltaZMin, locDeltaZMax);
76 
77  //DeltaE Dependence
78  dPluginHist_FCAL_DeltaEVsX = new TH2F("dPluginHist_FCAL_DeltaEVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #DeltaE (GeV)", 100, locXMin, locXMax, 400, locDeltaEMin, locDeltaEMax);
79  dPluginHist_FCAL_DeltaEVsY = new TH2F("dPluginHist_FCAL_DeltaEVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #DeltaE (GeV)", 100, locYMin, locYMax, 400, locDeltaEMin, locDeltaEMax);
80  dPluginHist_FCAL_DeltaEVsZ = new TH2F("dPluginHist_FCAL_DeltaEVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #DeltaE (GeV)", 100, locZMin, locZMax, 400, locDeltaEMin, locDeltaEMax);
81  dPluginHist_FCAL_DeltaEVsE = new TH2F("dPluginHist_FCAL_DeltaEVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #DeltaE (GeV)", 100, locEMin, locEMax, 400, locDeltaEMin, locDeltaEMax);
82  dPluginHist_FCAL_DeltaEVsT = new TH2F("dPluginHist_FCAL_DeltaEVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #DeltaE (GeV)", 100, locTMin, locTMax, 400, locDeltaEMin, locDeltaEMax);
83 
84  //DeltaT Dependence
85  dPluginHist_FCAL_DeltaTVsX = new TH2F("dPluginHist_FCAL_DeltaTVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #DeltaT (ns)", 100, locXMin, locXMax, 400, locDeltaTMin, locDeltaTMax);
86  dPluginHist_FCAL_DeltaTVsY = new TH2F("dPluginHist_FCAL_DeltaTVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #DeltaT (ns)", 100, locYMin, locYMax, 400, locDeltaTMin, locDeltaTMax);
87  dPluginHist_FCAL_DeltaTVsZ = new TH2F("dPluginHist_FCAL_DeltaTVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #DeltaT (ns)", 100, locZMin, locZMax, 400, locDeltaTMin, locDeltaTMax);
88  dPluginHist_FCAL_DeltaTVsE = new TH2F("dPluginHist_FCAL_DeltaTVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #DeltaT (ns)", 200, locEMin, locEMax, 400, locDeltaTMin, locDeltaTMax);
89  dPluginHist_FCAL_DeltaTVsT = new TH2F("dPluginHist_FCAL_DeltaTVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #DeltaT (ns)", 100, locTMin, locTMax, 400, locDeltaTMin, locDeltaTMax);
90 
91  //Common Dependence
92  dPluginHist_FCAL_DeltaXVsDeltaY = new TH2F("dPluginHist_FCAL_DeltaXVsDeltaY", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaY (cm);FCAL Shower #DeltaX (cm)", 100, locDeltaYMin, locDeltaYMax, 100, locDeltaXMin, locDeltaXMax);
93  dPluginHist_FCAL_DeltaXVsDeltaZ = new TH2F("dPluginHist_FCAL_DeltaXVsDeltaZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaZ (cm);FCAL Shower #DeltaX (cm)", 100, locDeltaZMin, locDeltaZMax, 100, locDeltaXMin, locDeltaXMax);
94  dPluginHist_FCAL_DeltaXVsDeltaE = new TH2F("dPluginHist_FCAL_DeltaXVsDeltaE", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaE (GeV);FCAL Shower #DeltaX (cm)", 100, locDeltaEMin, locDeltaEMax, 100, locDeltaXMin, locDeltaXMax);
95  dPluginHist_FCAL_DeltaXVsDeltaT = new TH2F("dPluginHist_FCAL_DeltaXVsDeltaT", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaT (ns);FCAL Shower #DeltaX (cm)", 100, locDeltaTMin, locDeltaTMax, 100, locDeltaXMin, locDeltaXMax);
96  dPluginHist_FCAL_DeltaYVsDeltaZ = new TH2F("dPluginHist_FCAL_DeltaYVsDeltaZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaZ (cm);FCAL Shower #DeltaY (cm)", 100, locDeltaZMin, locDeltaZMax, 100, locDeltaYMin, locDeltaYMax);
97  dPluginHist_FCAL_DeltaYVsDeltaE = new TH2F("dPluginHist_FCAL_DeltaYVsDeltaE", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaE (GeV);FCAL Shower #DeltaY (cm)", 100, locDeltaEMin, locDeltaEMax, 100, locDeltaYMin, locDeltaYMax);
98  dPluginHist_FCAL_DeltaYVsDeltaT = new TH2F("dPluginHist_FCAL_DeltaYVsDeltaT", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaT (ns);FCAL Shower #DeltaY (cm)", 100, locDeltaTMin, locDeltaTMax, 100, locDeltaYMin, locDeltaYMax);
99  dPluginHist_FCAL_DeltaZVsDeltaE = new TH2F("dPluginHist_FCAL_DeltaZVsDeltaE", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaE (GeV);FCAL Shower #DeltaZ (cm)", 100, locDeltaEMin, locDeltaEMax, 100, locDeltaZMin, locDeltaZMax);
100  dPluginHist_FCAL_DeltaZVsDeltaT = new TH2F("dPluginHist_FCAL_DeltaZVsDeltaT", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaT (ns);FCAL Shower #DeltaZ (cm)", 100, locDeltaTMin, locDeltaTMax, 100, locDeltaZMin, locDeltaZMax);
101  dPluginHist_FCAL_DeltaEVsDeltaT = new TH2F("dPluginHist_FCAL_DeltaEVsDeltaT", "Simulation Reconstructed Uncertainty Study;FCAL Shower #DeltaT (ns);FCAL Shower #DeltaE (GeV)", 100, locDeltaTMin, locDeltaTMax, 100, locDeltaEMin, locDeltaEMax);
102 
103  float locShowerSigmaXMin = 0.0, locShowerSigmaXMax = 4.0;
104  float locShowerSigmaYMin = 0.0, locShowerSigmaYMax = 4.0;
105  float locShowerSigmaZMin = -0.3, locShowerSigmaZMax = 0.3;
106  float locShowerSigmaEMin = 0.0, locShowerSigmaEMax = 0.15;
107  float locShowerSigmaTMin = -0.3, locShowerSigmaTMax = 0.3;
108 
109  //ShowerSigmaX Dependence
110  dPluginHist_FCAL_ShowerSigmaXVsX = new TH2F("dPluginHist_FCAL_ShowerSigmaXVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #sigma X (cm)", 500, locXMin, locXMax, 400, locShowerSigmaXMin, locShowerSigmaXMax);
111  dPluginHist_FCAL_ShowerSigmaXVsY = new TH2F("dPluginHist_FCAL_ShowerSigmaXVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #sigma X (cm)", 100, locYMin, locYMax, 400, locShowerSigmaXMin, locShowerSigmaXMax);
112  dPluginHist_FCAL_ShowerSigmaXVsZ = new TH2F("dPluginHist_FCAL_ShowerSigmaXVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #sigma X (cm)", 100, locZMin, locZMax, 400, locShowerSigmaXMin, locShowerSigmaXMax);
113  dPluginHist_FCAL_ShowerSigmaXVsE = new TH2F("dPluginHist_FCAL_ShowerSigmaXVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #sigma X (cm)", 100, locEMin, locEMax, 400, locShowerSigmaXMin, locShowerSigmaXMax);
114  dPluginHist_FCAL_ShowerSigmaXVsT = new TH2F("dPluginHist_FCAL_ShowerSigmaXVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #sigma X (cm)", 100, locTMin, locTMax, 400, locShowerSigmaXMin, locShowerSigmaXMax);
115 
116  //ShowerSigmaY Dependence
117  dPluginHist_FCAL_ShowerSigmaYVsX = new TH2F("dPluginHist_FCAL_ShowerSigmaYVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #sigma Y (cm)", 100, locXMin, locXMax, 400, locShowerSigmaYMin, locShowerSigmaYMax);
118  dPluginHist_FCAL_ShowerSigmaYVsY = new TH2F("dPluginHist_FCAL_ShowerSigmaYVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #sigma Y (cm)", 500, locYMin, locYMax, 400, locShowerSigmaYMin, locShowerSigmaYMax);
119  dPluginHist_FCAL_ShowerSigmaYVsZ = new TH2F("dPluginHist_FCAL_ShowerSigmaYVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #sigma Y (cm)", 100, locZMin, locZMax, 400, locShowerSigmaYMin, locShowerSigmaYMax);
120  dPluginHist_FCAL_ShowerSigmaYVsE = new TH2F("dPluginHist_FCAL_ShowerSigmaYVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #sigma Y (cm)", 100, locEMin, locEMax, 400, locShowerSigmaYMin, locShowerSigmaYMax);
121  dPluginHist_FCAL_ShowerSigmaYVsT = new TH2F("dPluginHist_FCAL_ShowerSigmaYVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #sigma Y (cm)", 100, locTMin, locTMax, 400, locShowerSigmaYMin, locShowerSigmaYMax);
122 
123  //ShowerSigmaZ Dependence
124  dPluginHist_FCAL_ShowerSigmaZVsX = new TH2F("dPluginHist_FCAL_ShowerSigmaZVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #sigma Z (cm)", 100, locXMin, locXMax, 100, locShowerSigmaZMin, locShowerSigmaZMax);
125  dPluginHist_FCAL_ShowerSigmaZVsY = new TH2F("dPluginHist_FCAL_ShowerSigmaZVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #sigma Z (cm)", 100, locYMin, locYMax, 100, locShowerSigmaZMin, locShowerSigmaZMax);
126  dPluginHist_FCAL_ShowerSigmaZVsZ = new TH2F("dPluginHist_FCAL_ShowerSigmaZVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #sigma Z (cm)", 100, locZMin, locZMax, 100, locShowerSigmaZMin, locShowerSigmaZMax);
127  dPluginHist_FCAL_ShowerSigmaZVsE = new TH2F("dPluginHist_FCAL_ShowerSigmaZVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #sigma Z (cm)", 100, locEMin, locEMax, 100, locShowerSigmaZMin, locShowerSigmaZMax);
128  dPluginHist_FCAL_ShowerSigmaZVsT = new TH2F("dPluginHist_FCAL_ShowerSigmaZVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #sigma Z (cm)", 100, locTMin, locTMax, 100, locShowerSigmaZMin, locShowerSigmaZMax);
129 
130  //ShowerSigmaE Dependence
131  dPluginHist_FCAL_ShowerSigmaEVsX = new TH2F("dPluginHist_FCAL_ShowerSigmaEVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #sigma E (GeV)", 100, locXMin, locXMax, 400, locShowerSigmaEMin, locShowerSigmaEMax);
132  dPluginHist_FCAL_ShowerSigmaEVsY = new TH2F("dPluginHist_FCAL_ShowerSigmaEVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #sigma E (GeV)", 100, locYMin, locYMax, 400, locShowerSigmaEMin, locShowerSigmaEMax);
133  dPluginHist_FCAL_ShowerSigmaEVsZ = new TH2F("dPluginHist_FCAL_ShowerSigmaEVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #sigma E (GeV)", 100, locZMin, locZMax, 400, locShowerSigmaEMin, locShowerSigmaEMax);
134  dPluginHist_FCAL_ShowerSigmaEVsE = new TH2F("dPluginHist_FCAL_ShowerSigmaEVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #sigma E (GeV)", 200, locEMin, locEMax, 400, locShowerSigmaEMin, locShowerSigmaEMax);
135  dPluginHist_FCAL_ShowerSigmaEVsT = new TH2F("dPluginHist_FCAL_ShowerSigmaEVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #sigma E (GeV)", 100, locTMin, locTMax, 400, locShowerSigmaEMin, locShowerSigmaEMax);
136 
137  //ShowerSigmaT Dependence
138  dPluginHist_FCAL_ShowerSigmaTVsX = new TH2F("dPluginHist_FCAL_ShowerSigmaTVsX", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured X (cm);FCAL Shower #sigma T (ns)", 100, locXMin, locXMax, 100, locShowerSigmaTMin, locShowerSigmaTMax);
139  dPluginHist_FCAL_ShowerSigmaTVsY = new TH2F("dPluginHist_FCAL_ShowerSigmaTVsY", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Y (cm);FCAL Shower #sigma T (ns)", 100, locYMin, locYMax, 100, locShowerSigmaTMin, locShowerSigmaTMax);
140  dPluginHist_FCAL_ShowerSigmaTVsZ = new TH2F("dPluginHist_FCAL_ShowerSigmaTVsZ", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured Z (cm);FCAL Shower #sigma T (ns)", 100, locZMin, locZMax, 100, locShowerSigmaTMin, locShowerSigmaTMax);
141  dPluginHist_FCAL_ShowerSigmaTVsE = new TH2F("dPluginHist_FCAL_ShowerSigmaTVsE", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured E (GeV);FCAL Shower #sigma T (ns)", 100, locEMin, locEMax, 100, locShowerSigmaTMin, locShowerSigmaTMax);
142  dPluginHist_FCAL_ShowerSigmaTVsT = new TH2F("dPluginHist_FCAL_ShowerSigmaTVsT", "Simulation Reconstructed Uncertainty Study;FCAL Shower Measured T (ns);FCAL Shower #sigma T (ns)", 100, locTMin, locTMax, 100, locShowerSigmaTMin, locShowerSigmaTMax);
143 
144 }
145 
146 void FCALSelector::SlaveBegin(TTree * /*tree*/)
147 {
148  // The SlaveBegin() function is called after the Begin() function.
149  // When running with PROOF SlaveBegin() is called on each slave server.
150  // The tree argument is deprecated (on PROOF 0 is passed).
151 
152  TString option = GetOption();
153 
154 }
155 
156 Bool_t FCALSelector::Process(Long64_t entry)
157 {
158  // The Process() function is called for each entry in the tree (or possibly
159  // keyed object in the case of PROOF) to be processed. The entry argument
160  // specifies which entry in the currently loaded tree is to be processed.
161  // It can be passed to either FCALSelector::GetEntry() or TBranch::GetEntry()
162  // to read either all or the required parts of the data. When processing
163  // keyed objects with PROOF, the object is already loaded and is available
164  // via the fObject pointer.
165  //
166  // This function should contain the "body" of the analysis. It can contain
167  // simple or elaborate selection criteria, run algorithms on the data
168  // of the event and typically fill histograms.
169  //
170  // The processing can be stopped by calling Abort().
171  //
172  // Use fStatus to set the return value of TTree::Process().
173  //
174  // The return value is currently not used.
175 
176  GetEntry(entry);
177  if((entry % 1000) == 0)
178  cout << "entry = " << entry << endl;
179 
180  //Path Length Correction
182 
183  bool locVsMeasuredFlag = true; //if true, swap true/meas
184  if(locVsMeasuredFlag == true){
185  //delta = meas - true
186  dTrueX += dDeltaX;
187  dTrueY += dDeltaY;
188  dTrueZ += dDeltaZ;
189  dTrueE += dDeltaE;
190  dTrueT += dDeltaT;
191  }
192 
193  //DeltaX Dependence
199 
200  //DeltaY Dependence
206 
207  //DeltaZ Dependence
213 
214  //DeltaE Dependence
220 
221  //DeltaT Dependence
227 
228  //Common Dependence
239 
240  //ShowerSigmaX Dependence
246 
247  //ShowerSigmaY Dependence
253 
254  //ShowerSigmaZ Dependence
260 
261  //ShowerSigmaE Dependence
267 
268  //ShowerSigmaT Dependence
274 
275  return kTRUE;
276 }
277 
279 {
280  // The SlaveTerminate() function is called after all entries or objects
281  // have been processed. When running with PROOF SlaveTerminate() is called
282  // on each slave server.
283 
284 }
285 
287 {
288  // The Terminate() function is the last function to be called during
289  // a query. It always runs on the client, it can be used to present
290  // the results graphically or save the results to file.
291 
292  dOutputFile->Write();
293 }
294 
TH2F * dPluginHist_FCAL_ShowerSigmaYVsY
Definition: FCALSelector.h:121
Float_t dDeltaY
Definition: FCALSelector.h:30
TH2F * dPluginHist_FCAL_ShowerSigmaTVsZ
Definition: FCALSelector.h:143
TH2F * dPluginHist_FCAL_DeltaYVsZ
Definition: FCALSelector.h:75
TH2F * dPluginHist_FCAL_ShowerSigmaXVsY
Definition: FCALSelector.h:114
TH2F * dPluginHist_FCAL_DeltaTVsZ
Definition: FCALSelector.h:96
TH2F * dPluginHist_FCAL_DeltaEVsY
Definition: FCALSelector.h:88
TH2F * dPluginHist_FCAL_DeltaYVsY
Definition: FCALSelector.h:74
TH2F * dPluginHist_FCAL_ShowerSigmaTVsX
Definition: FCALSelector.h:141
TH2F * dPluginHist_FCAL_DeltaZVsDeltaT
Definition: FCALSelector.h:109
TH2F * dPluginHist_FCAL_DeltaTVsT
Definition: FCALSelector.h:98
Float_t dShowerUncertaintyY
Definition: FCALSelector.h:35
TH2F * dPluginHist_FCAL_DeltaTVsE
Definition: FCALSelector.h:97
TH2F * dPluginHist_FCAL_ShowerSigmaYVsT
Definition: FCALSelector.h:124
Float_t dDeltaZ
Definition: FCALSelector.h:31
TH2F * dPluginHist_FCAL_PathLengthCorrection
Definition: FCALSelector.h:63
TH2F * dPluginHist_FCAL_DeltaYVsDeltaT
Definition: FCALSelector.h:107
Float_t dShowerUncertaintyE
Definition: FCALSelector.h:38
TH2F * dPluginHist_FCAL_ShowerSigmaYVsZ
Definition: FCALSelector.h:122
TH2F * dPluginHist_FCAL_DeltaXVsDeltaZ
Definition: FCALSelector.h:102
TH2F * dPluginHist_FCAL_ShowerSigmaZVsZ
Definition: FCALSelector.h:129
virtual void Terminate()
Definition: FCALSelector.C:286
TH2F * dPluginHist_FCAL_DeltaYVsX
Definition: FCALSelector.h:73
Float_t dPathLengthCorrection
Definition: FCALSelector.h:39
TH2F * dPluginHist_FCAL_DeltaYVsT
Definition: FCALSelector.h:77
Float_t dShowerUncertaintyZ
Definition: FCALSelector.h:36
TH2F * dPluginHist_FCAL_ShowerSigmaEVsY
Definition: FCALSelector.h:135
TH2F * dPluginHist_FCAL_ShowerSigmaZVsT
Definition: FCALSelector.h:131
TH2F * dPluginHist_FCAL_DeltaYVsDeltaZ
Definition: FCALSelector.h:105
TH2F * dPluginHist_FCAL_DeltaXVsDeltaE
Definition: FCALSelector.h:103
TFile * dOutputFile
Definition: FCALSelector.h:61
TH2F * dPluginHist_FCAL_ShowerSigmaEVsT
Definition: FCALSelector.h:138
TH2F * dPluginHist_FCAL_DeltaEVsDeltaT
Definition: FCALSelector.h:110
Float_t dShowerUncertaintyT
Definition: FCALSelector.h:37
TH2F * dPluginHist_FCAL_ShowerSigmaYVsE
Definition: FCALSelector.h:123
virtual Bool_t Process(Long64_t entry)
Definition: FCALSelector.C:156
TH2F * dPluginHist_FCAL_ShowerSigmaXVsT
Definition: FCALSelector.h:117
TH2F * dPluginHist_FCAL_DeltaYVsDeltaE
Definition: FCALSelector.h:106
TH2F * dPluginHist_FCAL_DeltaXVsY
Definition: FCALSelector.h:67
TH2F * dPluginHist_FCAL_DeltaXVsT
Definition: FCALSelector.h:70
Float_t dTrueE
Definition: FCALSelector.h:27
Float_t dDeltaE
Definition: FCALSelector.h:32
TH2F * dPluginHist_FCAL_ShowerSigmaEVsZ
Definition: FCALSelector.h:136
TH2F * dPluginHist_FCAL_DeltaZVsE
Definition: FCALSelector.h:83
virtual void SlaveBegin(TTree *tree)
Definition: FCALSelector.C:146
TH2F * dPluginHist_FCAL_DeltaTVsY
Definition: FCALSelector.h:95
TH2F * dPluginHist_FCAL_DeltaZVsZ
Definition: FCALSelector.h:82
TH2F * dPluginHist_FCAL_DeltaTVsX
Definition: FCALSelector.h:94
Float_t dTrueZ
Definition: FCALSelector.h:26
TH2F * dPluginHist_FCAL_DeltaZVsDeltaE
Definition: FCALSelector.h:108
TH2F * dPluginHist_FCAL_DeltaXVsX
Definition: FCALSelector.h:66
TH2F * dPluginHist_FCAL_DeltaEVsE
Definition: FCALSelector.h:90
TH2F * dPluginHist_FCAL_ShowerSigmaXVsX
Definition: FCALSelector.h:113
TH2F * dPluginHist_FCAL_DeltaXVsE
Definition: FCALSelector.h:69
TH2F * dPluginHist_FCAL_ShowerSigmaZVsX
Definition: FCALSelector.h:127
TH2F * dPluginHist_FCAL_ShowerSigmaTVsY
Definition: FCALSelector.h:142
TH2F * dPluginHist_FCAL_DeltaEVsX
Definition: FCALSelector.h:87
TH2F * dPluginHist_FCAL_ShowerSigmaTVsE
Definition: FCALSelector.h:144
TH2F * dPluginHist_FCAL_DeltaZVsY
Definition: FCALSelector.h:81
TH2F * dPluginHist_FCAL_ShowerSigmaXVsZ
Definition: FCALSelector.h:115
virtual void Begin(TTree *tree)
Definition: FCALSelector.C:31
TH2F * dPluginHist_FCAL_DeltaZVsX
Definition: FCALSelector.h:80
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Definition: FCALSelector.h:156
TH2F * dPluginHist_FCAL_DeltaEVsZ
Definition: FCALSelector.h:89
TH2F * dPluginHist_FCAL_ShowerSigmaTVsT
Definition: FCALSelector.h:145
Float_t dShowerUncertaintyX
Definition: FCALSelector.h:34
TH2F * dPluginHist_FCAL_ShowerSigmaZVsE
Definition: FCALSelector.h:130
Float_t dTrueT
Definition: FCALSelector.h:28
TH2F * dPluginHist_FCAL_DeltaYVsE
Definition: FCALSelector.h:76
Float_t dTrueX
Definition: FCALSelector.h:24
TH2F * dPluginHist_FCAL_DeltaXVsDeltaT
Definition: FCALSelector.h:104
Float_t dDeltaT
Definition: FCALSelector.h:33
virtual void SlaveTerminate()
Definition: FCALSelector.C:278
TH2F * dPluginHist_FCAL_ShowerSigmaEVsX
Definition: FCALSelector.h:134
TH2F * dPluginHist_FCAL_DeltaXVsDeltaY
Definition: FCALSelector.h:101
TH2F * dPluginHist_FCAL_ShowerSigmaYVsX
Definition: FCALSelector.h:120
TH2F * dPluginHist_FCAL_ShowerSigmaEVsE
Definition: FCALSelector.h:137
Float_t dDeltaX
Definition: FCALSelector.h:29
Float_t dTrueY
Definition: FCALSelector.h:25
TH2F * dPluginHist_FCAL_ShowerSigmaXVsE
Definition: FCALSelector.h:116
TH2F * dPluginHist_FCAL_ShowerSigmaZVsY
Definition: FCALSelector.h:128
TH2F * dPluginHist_FCAL_DeltaEVsT
Definition: FCALSelector.h:91
TH2F * dPluginHist_FCAL_DeltaZVsT
Definition: FCALSelector.h:84
TH2F * dPluginHist_FCAL_DeltaXVsZ
Definition: FCALSelector.h:68