67 sprintf(name,
"muchInStationXDispLeft_%d",
i);
69 title,
"X dispersion from central to left layer inside station: %d",
i);
73 sprintf(name,
"muchInStationXDispRight_%d",
i);
75 title,
"X dispersion from central to right layer inside station: %d",
i);
79 sprintf(name,
"muchInStationYDispLeft_%d",
i);
81 title,
"Y dispersion from central to left layer inside station: %d",
i);
85 sprintf(name,
"muchInStationYDispRight_%d",
i);
87 title,
"Y dispersion from central to right layer inside station: %d",
i);
91 sprintf(name,
"muchInStationXDispRL_%d",
i);
93 title,
"X dispersion on left layer predicted by right station: %d",
i);
97 sprintf(name,
"muchInStationYDispRL_%d",
i);
99 title,
"Y dispersion on left layer predicted by right station: %d",
i);
103 sprintf(name,
"muchInStationTxBreak_%d",
i);
104 sprintf(title,
"Tx break inside station: %d",
i);
108 sprintf(name,
"muchInStationTyBreak_%d",
i);
109 sprintf(title,
"Ty break inside station: %d",
i);
114 sprintf(name,
"muchLongSegmentTxHisto_%d",
i);
117 "Tx tangents distribution for segments between stations: %d and %d",
123 sprintf(name,
"muchLongSegmentTyHisto_%d",
i);
126 "Ty tangents distribution for segments between stations: %d and %d",
132 sprintf(name,
"muchClusterXDispHisto_%d",
i);
134 "X coordinate dispersion for cluster segments between stations: "
141 sprintf(name,
"muchClusterYDispHisto_%d",
i);
143 "Y coordinate dispersion for cluster segments between stations: "
150 sprintf(name,
"muchClusterTxDispHisto_%d",
i);
152 "Tx tangent dispersion for cluster segments between stations: %d "
159 sprintf(name,
"muchClusterTyDispHisto_%d",
i);
161 "Ty tangent dispersion for cluster segments between stations: %d "
168 sprintf(name,
"muchOutStationTxBreakLeft_%d",
i);
170 "Tx break between right segment of station and left tip of the "
171 "interstation segment: %d",
174 new TH1F(name, title, 100, -0.15, 0.15);
177 sprintf(name,
"muchOutStationTxBreakRight_%d",
i);
179 "Tx break between left segment of station and right tip of the "
180 "interstation segment: %d",
183 new TH1F(name, title, 100, -0.15, 0.15);
186 sprintf(name,
"muchOutStationTyBreakLeft_%d",
i);
188 "Ty break between right segment of station and left tip of the "
189 "interstation segment: %d",
192 new TH1F(name, title, 100, -0.15, 0.15);
195 sprintf(name,
"muchOutStationTyBreakRight_%d",
i);
197 "Ty break between left segment of station and right tip of the "
198 "interstation segment: %d",
201 new TH1F(name, title, 100, -0.15, 0.15);
204 sprintf(name,
"muchOutStationXDispByTriplet_%d",
i);
206 "X dispersion of prediction by triplet angle for station: %d",
209 new TH1F(name, title, 100, -10.0, 10.0);
212 sprintf(name,
"muchOutStationYDispByTriplet_%d",
i);
214 "Y dispersion of prediction by triplet angle for station: %d",
217 new TH1F(name, title, 100, -10.0, 10.0);
220 sprintf(name,
"muchOutStationXDispByVertex_%d",
i);
223 "X dispersion of prediction by an angle to vertex for station: %d",
226 new TH1F(name, title, 100, -10.0, 10.0);
229 sprintf(name,
"muchOutStationYDispByVertex_%d",
i);
232 "Y dispersion of prediction by an angle to vertex for station: %d",
235 new TH1F(name, title, 100, -10.0, 10.0);
239 sprintf(name,
"muchSegmentTxBreakHisto_%d",
i);
241 "Tx tangents breaks distribution for adjacent segments on "
247 sprintf(name,
"muchSegmentTyBreakHisto_%d",
i);
249 "Ty tangents breaks distribution for adjacent segments on "
256 sprintf(name,
"muchStationTxDispHisto_%d",
i);
258 "Tx tangents dispersion for segments between stations: %d and %d",
264 sprintf(name,
"muchStationTyDispHisto_%d",
i);
266 "Ty tangents dispersion for segments between stations: %d and %d",
274 sprintf(name,
"muchXTxCovHisto_%d",
i);
275 sprintf(title,
"muchXTxCovHisto on %d",
i);
277 new TH2F(name, title, 100, -5.0, 5.0, 100, -0.15, 0.15);
280 sprintf(name,
"muchYTyCovHisto_%d",
i);
281 sprintf(title,
"muchYTyCovHisto on %d",
i);
283 new TH2F(name, title, 100, -5.0, 5.0, 100, -0.15, 0.15);
291 sprintf(dir_name,
"configuration.%s",
particleType.Data());
292 DIR* dir = opendir(dir_name);
297 mkdir(dir_name, 0700);
300 sprintf(name,
"%s/%s.root", dir_name, histo->GetName());
301 TFile fh(name,
"RECREATE");
356 for (vector<LxSimpleTrack*>::iterator
i =
tracks.begin();
i !=
tracks.end();
375 ,
tx((e.
x - s.
x) / (e.z - s.z))
376 ,
ty((e.
y - s.
y) / (e.z - s.z)) {}
381 for (Int_t j = 0; j <
LXLAYERS; ++j) {
410 deltaZ = p2.
z - p1.
z;
415 tx = (p2.
x - p1.
x) / deltaZ;
416 ty = (p2.
y - p1.
y) / deltaZ;
419 deltaZ = p2.
z - p1.
z;
420 xEst = p1.
x + txEst * deltaZ;
421 yEst = p1.
y + tyEst * deltaZ;
425 tx2 = (p2.
x - p1.
x) / deltaZ;
426 ty2 = (p2.
y - p1.
y) / deltaZ;
434 deltaZ = p2.
z - p1.
z;
435 stTx = (p2.
x - p1.
x) / deltaZ;
436 stTy = (p2.
y - p1.
y) / deltaZ;
443 deltaZ = p2.
z - p1.
z;
444 tx = (p2.
x - p1.
x) / deltaZ;
446 ty = (p2.
y - p1.
y) / deltaZ;
459 + (p2.
x / p2.
z) * deltaZ);
461 + (p2.
y / p2.
z) * deltaZ);
469 for (list<LxSimplePoint>::iterator l0 =
473 for (list<LxSimplePoint>::iterator l1 =
477 for (list<LxSimplePoint>::iterator l2 =
481 for (list<LxSimplePoint>::iterator r0 =
485 for (list<LxSimplePoint>::iterator r1 =
489 for (list<LxSimplePoint>::iterator r2 =
497 for (Int_t j = 0; j <
LXLAYERS; ++j) {
498 for (Int_t k = 0; k <
LXLAYERS; ++k)
516 if (maxXdisp < dx) maxXdisp = dx;
518 if (maxYdisp < dy) maxYdisp = dy;
520 if (maxTxdisp < dtx) maxTxdisp = dtx;
522 if (maxTydisp < dty) maxTydisp = dty;
540 deltaZ = p2.
z - p1.
z;
541 tx = (p2.
x - p1.
x) / deltaZ;
542 ty = (p2.
y - p1.
y) / deltaZ;
544 deltaZ2 = p3.
z - p2.
z;
545 tx2 = (p3.
x - p2.
x) / deltaZ2;
547 ty2 = (p3.
y - p2.
y) / deltaZ2;
554 deltaZ = p2.
z - p1.
z;
555 tx = (p2.
x - p1.
x) / deltaZ;
556 ty = (p2.
y - p1.
y) / deltaZ;
561 deltaZ = p2.
z - p1.
z;
562 tx2 = (p2.
x - p1.
x) / deltaZ;
564 ty2 = (p2.
y - p1.
y) / deltaZ;
573 deltaZ = p2.
z - p1.
z;