18 segmentfitChi2oNdof =
Book1D(
"segmentfitChi2oNdof",
"Segment fit #chi^{2}/N_{dof};Segment fit #chi^{2}/N_{dof};Entries", 100,0,20);
20 t0 =
Book1D(
"t0",
"Segment Refit t_{0};t_{0};Entries",100,-25,25);
21 t0_top =
Book1D(
"t0_top",
"Segment Refit t_{0} for y>0;t_{0};Entries",100,-25,25);
22 t0_bottom =
Book1D(
"t0_bottom",
"Segment Refit t_{0} for y<0;t_{0};Entries",100,-25,25);
23 t0err =
Book1D(
"t0err",
"Segment Refit t_{0} error;t_{0} error;Entries",100,0,10);
24 t0err_top =
Book1D(
"t0err_top",
"Segment Refit t_{0} error for y>0;t_{0} error;Entries",100,0,10);
25 t0err_bottom =
Book1D(
"t0err_bottom",
"Segment Refit t_{0} error for y<0;t_{0} error;Entries",100,0,10);
28 nPhiLayers =
Book1D(
"nPhiLayers",
"Segment phi layers;#phi layers;Entries",10,0,10);
29 nTrigEtaLayers =
Book1D(
"nTrigEtaLayers",
"Segment eta trigger layers;#eta trigger layers;Entries",10,0,10);
30 nPrecisionHits_nTriggerHits =
Book2D(
"nPrecisionHits_nTriggerHits",
"Number of MDT hits vs Tigger station hits; MDT hits; Trigger hits", 20, -0.5, 19.5, 20, -0.5, 19.5);
32 etaIndex =
Book1D(
"etaIndex",
"Segment #eta Index ;#eta index;Entries",21,-10.5,10.5);
33 sector =
Book1D(
"sector",
"Segment phi sector;#phi sector;Entries",16,0.5,16.5);
36 xypos_barrel =
Book2D(
"xypos_barrel",
"Segment position x-y, barrel;x_{pos};y_{pos}",150,-14000,14000,150,-14000,14000);
37 xypos_endcap =
Book2D(
"xypos_endcap",
"Segment position x-y, endcap;x_{pos};y_{pos}",150,-14000,14000,150,-14000,14000);
38 rzpos_sectorLarge =
Book2D(
"rzpos_sectorLarge",
"Segment position r-z, large sectors normalized by solid angle;z_{pos};r_{pos}",100,-23000,23000,75,0,14000);
40 rzpos_sectorSmall =
Book2D(
"rzpos_sectorSmall",
"Segment position r-z, small sectors normalized by solid angle;z_{pos};r_{pos}",100,-23000,23000,75,0,14000);
43 etadir =
Book1D(
"etadir",
"Segment pointing direction eta;#eta_{dir};Entries",100,-5,5);
44 etadir_barrel =
Book1D(
"etadir_barrel",
"Segment pointing direction eta, barrel;#eta_{dir};Entries",100,-5,5);
45 etadir_endcap =
Book1D(
"etadir_endcap",
"Segment pointing direction eta, endcap;#eta_{dir};Entries",100,-5,5);
46 phidir =
Book1D(
"phidir",
"Segment pointing direction phi;#phi_{dir};Entries",64,-3.2,3.2);
47 etaphidir =
Book2D(
"etaphidir",
"Segment pointing direction phi vs eta;#eta_{dir};#phi_{dir}",64,-3.2,3.2,64,-3.2,3.2);
63 sector_etaIndex.push_back(
Book2D(Form(
"%s_etastation", temp_chambername), Form(
"Number of Segment in %s; #phi Sector; #eta Index", temp_chambername), 18, -0.5, 17.5, 19, -9.5, 9.5));
64 sector_etaIndex_nPrechit.push_back(
Book2D(Form(
"%s_etastation_nPrechit", temp_chambername), Form(
"Number of Segment Prec hit in %s; #phi Sector; #eta Index", temp_chambername), 18, -0.5, 17.5, 19, -9.5, 9.5));
65 sector_etaIndex_nTrighit.push_back(
Book2D(Form(
"%s_etastation_nTrighit", temp_chambername), Form(
"Number of Segment Phi + Trigeta hit in %s; #phi Sector; #eta Index", temp_chambername), 18, -0.5, 17.5, 19, -9.5, 9.5));
66 eff_sector_etaIndex_nPrechit.push_back(
Book2D(Form(
"eff_%s_etastation_nPrechit", temp_chambername), Form(
"Segment Prec hit eff in %s; #phi Sector; #eta Index", temp_chambername), 18, -0.5, 17.5, 19, -9.5, 9.5));
67 eff_sector_etaIndex_nTrighit.push_back(
Book2D(Form(
"eff_%s_etastation_nTrighit", temp_chambername), Form(
"Segment Phi + Trigeta hit eff in %s; #phi Sector; #eta Index", temp_chambername), 18, -0.5, 17.5, 19, -9.5, 9.5));
84 float segt0 = muSeg.
t0();
85 float segt0err = muSeg.
t0error();
111 int sectorIndex = muSeg.
sector();
114 if (muSeg.
z() < 0) { sectorIndex = - sectorIndex;}
119 sectorIndex = muSeg.
sector();
136 if ( globalDir.mag() <= FLT_EPSILON || globalDir.perp() <= FLT_EPSILON)
return;
138 float r = globalPos.perp();
139 float z = globalPos.z();
144 float eta = globalDir.eta();
145 float phi = globalDir.phi();