32 :
52
53 std::vector<float> *
layers = getLayersBins();
54 std::vector<float> clustersizeEta =
model.getClusterSizeYBins();
55 clustersizeEta.insert(clustersizeEta.begin(),0.5);
56 clustersizeEta.push_back(100);
57 std::vector<float> clustersizePhi =
model.getClusterSizeXBins();
58 clustersizePhi.insert(clustersizePhi.begin(),0.5);
59 clustersizePhi.push_back(100);
60
61 std::vector<float> phibins_Layer;
62 for(
int i = -60;
i <= 60;
i+=2) phibins_Layer.push_back(i);
63 std::vector<float> etabins_Layer;
64 for(
float i = -2.5;
i <= 2.5;
i+=0.125) etabins_Layer.push_back(i);
65 std::vector<float> ptbins_Layer;
66 int ntot = 9;
69 ptbins_Layer.reserve(ntot+1);
70for(
int i = 0;
i < ntot+1;
i++){
71 ptbins_Layer.push_back( start *
pow( end/start,
double(i)/
double(ntot) ) );
72 }
73
74
75
76 std::vector<std::string> binsnames(3);
77 std::vector<std::vector <float> > binsvectors(3);
78
82
86
87 m_eta =
new PixelResidualHistograms(std::string(
"ResEta"),
88 std::string("Local y residuals - Analog position"),
89 500,100,binsvectors,binsnames);
90
91 m_etaDig =
new PixelResidualHistograms(std::string(
"ResEtaDig"),
92 std::string("Local y residuals - Center position"),
93 500,100,binsvectors,binsnames);
94
95 m_etaPull =
new PixelResidualHistograms(std::string(
"PullEta"),
96 std::string("Local y pulls - Analog position"),
97 10.,100,binsvectors,binsnames);
98
99 m_etaErr =
new PixelResidualHistograms(std::string(
"ErrEta"),
100 std::string("Local y errors - Cluster uncertainty"),
101 1000,250,binsvectors,binsnames);
102
103 m_phi_eta =
new PixelResidualHistograms(std::string(
"ResPhiEta"),
104 std::string("Local x residuals - Analog position"),
105 150, 100, binsvectors,binsnames);
106
107 m_phiDig_eta =
new PixelResidualHistograms(std::string(
"ResPhiDigEta"),
108 std::string("Local x residuals - Center position"),
109 150, 100, binsvectors,binsnames);
110
111 m_phiPull_eta =
new PixelResidualHistograms(std::string(
"PullPhiEta"),
112 std::string("Local x pulls - Analog position"),
113 10.,100,binsvectors,binsnames);
114
115 m_phiErr_eta =
new PixelResidualHistograms(std::string(
"ErrPhiEta"),
116 std::string("Local x errors - Cluster uncertainty"),
117 100,100,binsvectors,binsnames);
118
119 m_charge_eta =
new PixelResidualHistograms(std::string(
"ChargeEta"),
120 std::string("Charge"),
121 600000,600,binsvectors,binsnames);
122
124
127
128 m_phi =
new PixelResidualHistograms(std::string(
"ResPhi"),
129 std::string("Local x residuals - Analog position"),
130 150, 100, binsvectors,binsnames);
131
132 m_phiDig =
new PixelResidualHistograms(std::string(
"ResPhiDig"),
133 std::string("Local x residuals - Center position"),
134 150, 100, binsvectors,binsnames);
135
136 m_phiPull =
new PixelResidualHistograms(std::string(
"PullPhi"),
137 std::string("Local x pulls - Analog position"),
138 10.,100,binsvectors,binsnames);
139
140 m_phiErr =
new PixelResidualHistograms(std::string(
"ErrPhi"),
141 std::string("Local x errors - Cluster uncertainty"),
142 100,100,binsvectors,binsnames);
143
144 m_eta_phi =
new PixelResidualHistograms(std::string(
"ResEtaPhi"),
145 std::string("Local y residuals - Analog position"),
146 500,100,binsvectors,binsnames);
147
148 m_etaDig_phi =
new PixelResidualHistograms(std::string(
"ResEtaDigPhi"),
149 std::string("Local y residuals - Center position"),
150 500,100,binsvectors,binsnames);
151
152 m_etaPull_phi =
new PixelResidualHistograms(std::string(
"PullEtaPhi"),
153 std::string("Local y pulls - Analog position"),
154 10.,100,binsvectors,binsnames);
155
156 m_etaErr_phi =
new PixelResidualHistograms(std::string(
"ErrEtaPhi"),
157 std::string("Local y errors - Cluster uncertainty"),
158 1000,250,binsvectors,binsnames);
159
160 m_charge_phi =
new PixelResidualHistograms(std::string(
"ChargePhi"),
161 std::string("Charge"),
162 600000,600,binsvectors,binsnames);
163
164 std::vector<std::string> binsnames_Layer(2);
165 std::vector<std::vector <float> > binsvectors_Layer(2);
166
167 binsnames_Layer[0] = "p_{T} [GeV]";
168 binsnames_Layer[1] = "#eta_{i}";
169
170 binsvectors_Layer[0] = std::move(ptbins_Layer);
171 binsvectors_Layer[1] = etabins_Layer;
172
174
175 std::cout <<
"layers " <<
NLAYERS <<
" " <<
i << std::endl;
176
177 std::ostringstream
name;
178 std::ostringstream
title;
179 name <<
"ResEta_Layer" <<
i;
180 title <<
"Local y resolution - Layer " <<
i ;
182 new PixelResidualHistograms(
name.str(),
183 (
title.str() +
" - Analog position").c_str(),
184 500, 100, binsvectors_Layer, binsnames_Layer)
185 );
187 new PixelResidualHistograms( (
name.str() +
"Dig").c_str(),
188 (
title.str() +
" - Center position").c_str(),
189 500, 100, binsvectors_Layer, binsnames_Layer)
190 );
192 new PixelResidualHistograms( (
name.str() +
"Pull").c_str(),
193 (
title.str() +
" - Pulls").c_str(),
194 10., 100, binsvectors_Layer, binsnames_Layer)
195 );
196 }
197
198
199 binsnames_Layer[1] = "#phi_{i} [#circ]";
200 binsvectors_Layer[1] = phibins_Layer;
201
203 std::ostringstream
name;
204 std::ostringstream
title;
205 name <<
"ResPhi_Layer" <<
i;
206 title <<
"Local x resolution - Layer " <<
i ;
208 new PixelResidualHistograms(
name.str(),
209 (
title.str() +
" - Analog position").c_str(),
210 150, 100, binsvectors_Layer, binsnames_Layer)
211 );
213 new PixelResidualHistograms( (
name.str() +
"Dig").c_str(),
214 (
title.str() +
" - Center position").c_str(),
215 150, 100, binsvectors_Layer, binsnames_Layer)
216 );
218 new PixelResidualHistograms( (
name.str() +
"Pull").c_str(),
219 (
title.str() +
" - Pulls").c_str(),
220 10., 100, binsvectors_Layer, binsnames_Layer)
221 );
222 }
223
224 std::vector<std::string> binsnames_Clustersize(1);
225 std::vector<std::vector <float> > binsvectors_Clustersize(1);
226
227 binsnames_Clustersize[0] = "#eta_{i}";
228 binsvectors_Clustersize[0] = etabins_Layer;
229
231 std::ostringstream
name;
232 std::ostringstream
title;
233 name <<
"ResEta_Clustersize" <<
i+1;
234 title <<
"Local y resolution - Clustersize " <<
i+1;
236 new PixelResidualHistograms(
name.str(),
237 (
title.str() +
" - Analog position").c_str(),
238 400, 100, binsvectors_Clustersize, binsnames_Clustersize)
239 );
241 new PixelResidualHistograms( (
name.str() +
"Dig").c_str(),
242 (
title.str() +
" - Center position").c_str(),
243 400, 100, binsvectors_Clustersize, binsnames_Clustersize)
244 );
246 new PixelResidualHistograms( (
name.str() +
"Err").c_str(),
247 (
title.str() +
" - Cluster uncertainty").c_str(),
248 1000, 250, binsvectors_Clustersize, binsnames_Clustersize)
249 );
251 new PixelResidualHistograms( (
name.str() +
"Pull").c_str(),
252 (
title.str() +
" - Pull").c_str(),
253 10., 100., binsvectors_Clustersize, binsnames_Clustersize)
254 );
255 std::ostringstream namecs;
256 std::ostringstream titlecs;
257 namecs <<
"Eta_Clustersize" <<
i+1;
258 titlecs <<
"#eta_{i} distribution - Clustersize " <<
i+1 ;
259 if (! etabins_Layer.empty()){
261 new TH1F(namecs.str().c_str(), titlecs.str().c_str(),
262 etabins_Layer.size(), etabins_Layer.front(),
263 etabins_Layer.back())
264 );
265 }
266 }
267
268
269 binsnames_Clustersize[0] = "#phi_{i} [#circ]";
270 binsvectors_Clustersize[0] = std::move(phibins_Layer);
271
273 std::ostringstream
name;
274 std::ostringstream
title;
275 name <<
"ResPhi_Clustersize" <<
i+1;
276 title <<
"Local x resolution - Clustersize " <<
i+1;
278 new PixelResidualHistograms(
name.str(),
279 (
title.str() +
" - Analog position").c_str(),
280 150, 100, binsvectors_Clustersize, binsnames_Clustersize)
281 );
283 new PixelResidualHistograms( (
name.str() +
"Dig").c_str(),
284 (
title.str() +
" - Center position").c_str(),
285 150, 100, binsvectors_Clustersize, binsnames_Clustersize)
286 );
288 new PixelResidualHistograms( (
name.str() +
"Err").c_str(),
289 (
title.str() +
" - Cluster uncertainty").c_str(),
290 100, 100, binsvectors_Clustersize, binsnames_Clustersize)
291 );
293 new PixelResidualHistograms( (
name.str() +
"Pull").c_str(),
294 (
title.str() +
" - Pull").c_str(),
295 10., 100., binsvectors_Clustersize, binsnames_Clustersize)
296 );
297 std::ostringstream namecs;
298 std::ostringstream titlecs;
299 namecs <<
"Phi_Clustersize" <<
i+1;
300 titlecs <<
"#phi_{i} distribution - Clustersize " <<
i+1 ;
302 new TH1F(namecs.str().c_str(), titlecs.str().c_str(),
303 400, -100,100)
304 );
305 }
306
308 "#phi_{i} #eta_{i} correlation", 100, -100,100, 100, -2.5, 2.5);
309
312
314 "#Deltarow #Deltacolumn correlation", 10, 0,10, 10, 0, 10);
315
318
319
320 double ptbins_Layerpointer[101];
321 int ntot2 = 100;
322 double start2 = 0.1;
323 double end2 = 10E3;
324 for(
int i = 0;
i < ntot2+1;
i++){
325 ptbins_Layerpointer[
i] = start2 *
pow( end2/start2,
double(i)/
double(ntot2) );
326 }
328 "Local y residuals vs p_{T}",
329 100, ptbins_Layerpointer, 100, -1000, 1000);
331 100, ptbins_Layerpointer, 100, -400, 400);
332
333
335
336}
static const int NCLUSSIZES
std::vector< PixelResidualHistograms * > m_phiDig_Clustersize
PixelResidualHistograms * m_phi_eta
PixelResidualHistograms * m_etaPull_phi
PixelResidualHistograms * m_charge_eta
std::vector< PixelResidualHistograms * > m_phiPull_Clustersize
PixelResidualHistograms * m_eta
PixelResidualHistograms * m_etaErr_phi
std::vector< PixelResidualHistograms * > m_etaDig_Clustersize
PixelResidualHistograms * m_phiDig
std::vector< PixelResidualHistograms * > m_etaPull_Layer
PixelResidualHistograms * m_phiErr
std::vector< PixelResidualHistograms * > m_phiPull_Layer
std::vector< PixelResidualHistograms * > m_etaErr_Clustersize
PixelResidualHistograms * m_eta_phi
std::vector< PixelResidualHistograms * > m_phiErr_Clustersize
std::vector< PixelResidualHistograms * > m_phi_Clustersize
PixelResidualHistograms * m_etaErr
PixelResidualHistograms * m_phiDig_eta
std::vector< PixelResidualHistograms * > m_phi_Layer
TH2F * m_CSeta_CSphi_correlation
std::vector< TH1F * > m_phiClustersize
std::vector< TH1F * > m_etaClustersize
PixelResidualHistograms * m_etaDig_phi
PixelResidualHistograms * m_phiErr_eta
std::vector< PixelResidualHistograms * > m_phiDig_Layer
PixelResidualHistograms * m_phiPull_eta
PixelResidualHistograms * m_phiPull
PixelResidualHistograms * m_charge_phi
TH2F * m_eta_phi_correlation
std::vector< PixelResidualHistograms * > m_etaDig_Layer
std::vector< PixelResidualHistograms * > m_etaPull_Clustersize
std::vector< PixelResidualHistograms * > m_eta_Clustersize
std::vector< PixelResidualHistograms * > m_eta_Layer
PixelResidualHistograms * m_phi
PixelResidualHistograms * m_etaPull
PixelResidualHistograms * m_etaDig
TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)