48 , fRichRingMatches(NULL)
51 , fStsTrackMatches(NULL)
55 , fHistoList_recofull()
56 , fHistoList_recofull_1()
57 , fHistoList_recofull_2()
58 , fHistoList_recofull_3()
59 , fHistoList_recofull_4()
60 , fHistoList_recofull_new()
62 , fhMomentumFits(NULL)
63 , fhMomentumFits_electronRich(NULL)
64 , fhMomentumFits_pi0reco(NULL)
66 , fElectrons_momenta()
67 , fElectrons_momentaChi()
68 , fElectrons_mctrackID()
69 , fElectrons_track_1()
70 , fElectrons_momenta_1()
71 , fElectrons_momentaChi_1()
72 , fElectrons_mctrackID_1()
73 , fVector_photons_pairs_1()
74 , fElectrons_track_2()
75 , fElectrons_momenta_2()
76 , fElectrons_momentaChi_2()
77 , fElectrons_mctrackID_2()
78 , fVector_photons_pairs_2()
79 , fElectrons_track_3()
80 , fElectrons_momenta_3()
81 , fElectrons_momentaChi_3()
82 , fElectrons_mctrackID_3()
83 , fVector_photons_pairs_3()
84 , fElectrons_track_4()
85 , fElectrons_momenta_4()
86 , fElectrons_momentaChi_4()
87 , fElectrons_mctrackID_4()
88 , fVector_photons_pairs_4()
89 , fElectrons_track_new()
90 , fElectrons_momenta_new()
91 , fElectrons_momentaChi_new()
92 , fElectrons_mctrackID_new()
93 , fElectrons_globaltrackID_new()
94 , fVector_photons_pairs_new()
95 , fhElectrons_invmass(NULL)
96 , fhElectrons_invmass_cut(NULL)
97 , fhElectrons_nofPerEvent(NULL)
98 , fhPhotons_nofPerEvent(NULL)
99 , fVector_photons_pairs()
100 , fVector_photons_momenta()
101 , fhPhotons_invmass(NULL)
102 , fhPhotons_invmass_cut(NULL)
103 , fhPhotons_invmass_cut_chi1(NULL)
104 , fhPhotons_invmass_cut_chi3(NULL)
105 , fhPhotons_invmass_cut_chi5(NULL)
106 , fhPhotons_invmass_cut_chi10(NULL)
107 , fhPhotons_invmass_cut_chi25(NULL)
108 , fhPhotons_invmass_cut_chi40(NULL)
109 , fhPhotons_invmass_cut_chi65(NULL)
110 , fhPhotons_invmass_cut_chi80(NULL)
111 , fhPhotons_invmass_cut_ptBin1(NULL)
112 , fhPhotons_invmass_cut_ptBin2(NULL)
113 , fhPhotons_invmass_cut_ptBin3(NULL)
114 , fhPhotons_invmass_cut_ptBin4(NULL)
115 , fhPhotons_invmass_vs_chi(NULL)
116 , fhPhotons_startvertex_vs_chi(NULL)
117 , fhPhotons_angleBetween(NULL)
118 , fhPhotons_invmass_vs_pt(NULL)
119 , fhPhotons_rapidity_vs_pt(NULL)
120 , fhPhotons_invmass_vs_openingAngle(NULL)
121 , fhPhotons_openingAngle_vs_momentum(NULL)
122 , fhPhotons_MC_motherpdg(NULL)
123 , fhPhotons_MC_invmass1(NULL)
124 , fhPhotons_MC_invmass2(NULL)
125 , fhPhotons_MC_invmass3(NULL)
126 , fhPhotons_MC_invmass4(NULL)
127 , fhPhotons_MC_startvertexZ(NULL)
128 , fhPhotons_MC_motherIdCut(NULL)
129 , fhPhotons_Refit_chiDiff(NULL)
130 , fhPhotons_Refit_momentumDiff(NULL)
131 , fhPhotons_Refit_chiDistribution(NULL)
132 , fhPhotons_RefitPion_chiDistribution(NULL)
133 , fElectrons_track_refit()
134 , fElectrons_momenta_refit()
135 , fVector_photons_pairs_refit()
136 , fhPhotons_invmass_refit(NULL)
137 , fhPhotons_invmass_refit_cut(NULL)
138 , fVector_photons_pairs_direction()
139 , fhPhotons_invmass_direction(NULL)
140 , fhPhotons_invmass_direction_cut(NULL)
141 , fhPhotons_boostAngle(NULL)
142 , fhPhotons_boostAngleMC(NULL)
143 , fhPhotons_boostAngleTest(NULL)
146 , fhElectrons_nofPerEvent_1(NULL)
147 , fhPhotons_nofPerEvent_1(NULL)
148 , fhPhotons_invmass_1(NULL)
149 , fhPhotons_invmass_ptBin1_1(NULL)
150 , fhPhotons_invmass_ptBin2_1(NULL)
151 , fhPhotons_invmass_ptBin3_1(NULL)
152 , fhPhotons_invmass_ptBin4_1(NULL)
153 , fhElectrons_invmass_1(NULL)
154 , fhPhotons_invmass_vs_pt_1(NULL)
155 , fhElectrons_nofPerEvent_2(NULL)
156 , fhPhotons_nofPerEvent_2(NULL)
157 , fhPhotons_invmass_2(NULL)
158 , fhPhotons_invmass_ptBin1_2(NULL)
159 , fhPhotons_invmass_ptBin2_2(NULL)
160 , fhPhotons_invmass_ptBin3_2(NULL)
161 , fhPhotons_invmass_ptBin4_2(NULL)
162 , fhElectrons_invmass_2(NULL)
163 , fhPhotons_invmass_vs_pt_2(NULL)
164 , fhElectrons_nofPerEvent_3(NULL)
165 , fhPhotons_nofPerEvent_3(NULL)
166 , fhPhotons_invmass_3(NULL)
167 , fhPhotons_invmass_ptBin1_3(NULL)
168 , fhPhotons_invmass_ptBin2_3(NULL)
169 , fhPhotons_invmass_ptBin3_3(NULL)
170 , fhPhotons_invmass_ptBin4_3(NULL)
171 , fhElectrons_invmass_3(NULL)
172 , fhPhotons_invmass_vs_pt_3(NULL)
173 , fhElectrons_nofPerEvent_4(NULL)
174 , fhPhotons_nofPerEvent_4(NULL)
175 , fhPhotons_invmass_4(NULL)
176 , fhPhotons_invmass_ptBin1_4(NULL)
177 , fhPhotons_invmass_ptBin2_4(NULL)
178 , fhPhotons_invmass_ptBin3_4(NULL)
179 , fhPhotons_invmass_ptBin4_4(NULL)
180 , fhElectrons_invmass_4(NULL)
181 , fhPhotons_invmass_vs_pt_4(NULL)
182 , fhElectrons_nofPerEvent_new()
183 , fhPhotons_nofPerEvent_new()
184 , fhPhotons_nofPerEventAfter_new()
185 , fhPhotons_invmass_new()
186 , fhPhotons_invmass_ann0_new()
187 , fhPhotons_invmass_ptBin1_new()
188 , fhPhotons_invmass_ptBin2_new()
189 , fhPhotons_invmass_ptBin3_new()
190 , fhPhotons_invmass_ptBin4_new()
191 , fhElectrons_invmass_new()
192 , fhPhotons_invmass_vs_pt_new()
193 , fhPhotons_invmass_MCcut1_new()
194 , fhPhotons_invmass_MCcut2_new()
195 , fhPhotons_invmass_MCcut3_new()
196 , fhPhotons_invmass_MCcut4_new()
197 , fhPhotons_invmass_MCcut5_new()
198 , fhPhotons_invmass_MCcut6_new()
199 , fhPhotons_invmass_MCcut7_new()
200 , fhPhotons_invmass_MCcutTest_new()
201 , fhPhotons_invmass_MCcutTest2_new()
202 , fhPhotons_invmass_MCcutTest3_new()
203 , fhPhotons_invmass_MCcutAll_new()
204 , fhPhotons_pt_vs_rap_new()
205 , fhElectrons_openingAngle_sameSign_new()
207 , fhPhotons_MCtrue_pdgCodes()
208 , fhPhotons_peakCheck1()
209 , fhPhotons_peakCheck2()
210 , fhPhotons_invmass_ANNcuts_new()
211 , fhPhotons_phaseSpace_pi0()
212 , fhPhotons_phaseSpace_eta()
213 , fMixedEventsElectrons_list1()
214 , fMixedEventsElectrons_list2()
215 , fMixedEventsElectrons_list3()
216 , fMixedEventsElectrons_list4()
217 , fMixedEventsElectrons_list1_gtrack()
218 , fMixedEventsElectrons_list2_gtrack()
219 , fMixedEventsElectrons_list3_gtrack()
220 , fMixedEventsElectrons_list4_gtrack()
221 , fhMixedEventsTest2_invmass(NULL)
222 , fMixedTest3_momenta()
223 , fMixedTest3_gtrack()
224 , fMixedTest3_eventno()
226 , fhMixedEventsTest3_invmass(NULL)
227 , fMixedTest4_photons()
228 , fMixedTest4_mctracks()
229 , fMixedTest4_isRichElectronAnn0()
230 , fMixedTest4_ElectronAnns()
231 , fMixedTest4_eventno()
232 , fhMixedEventsTest4_invmass(NULL)
233 , fhMixedEventsTest4_invmass_ann0(NULL)
234 , fhMixedEventsTest4_pt_vs_rap(NULL)
235 , fhMixedEventsTest4_invmass_ptBin1(NULL)
236 , fhMixedEventsTest4_invmass_ptBin2(NULL)
237 , fhMixedEventsTest4_invmass_ptBin3(NULL)
238 , fhMixedEventsTest4_invmass_ptBin4(NULL)
239 , fhMixedEventsTest4_invmass_ANNcuts(NULL)
297 for (
int i = 1; i <= 4; i++) {
301 Double_t invmassSpectra_nof = 800;
302 Double_t invmassSpectra_start = -0.00125;
303 Double_t invmassSpectra_end = 1.99875;
306 fhElectrons =
new TH1I(
"fhElectrons",
"fhElectrons;; #", 8, 0., 8.);
308 fhElectrons->GetXaxis()->SetBinLabel(1,
"electrons rich");
309 fhElectrons->GetXaxis()->SetBinLabel(2,
"electrons trd");
310 fhElectrons->GetXaxis()->SetBinLabel(3,
"electrons tof");
311 fhElectrons->GetXaxis()->SetBinLabel(4,
"electrons rich+trd");
312 fhElectrons->GetXaxis()->SetBinLabel(5,
"electrons rich+tof");
313 fhElectrons->GetXaxis()->SetBinLabel(6,
"electrons trd+tof");
314 fhElectrons->GetXaxis()->SetBinLabel(7,
"electrons rich+trd+tof");
315 fhElectrons->GetXaxis()->SetBinLabel(8,
"electrons 2 out of 3");
318 fhMomentumFits =
new TH1D(
"fhMomentumFits",
"fhMomentumFits; chi; #", 10000, 0., 1000.);
321 new TH1D(
"fhMomentumFits_electronRich",
"fhMomentumFits_electronRich; chi; #", 10000, 0., 1000.);
323 fhMomentumFits_pi0reco =
new TH1D(
"fhMomentumFits_pi0reco",
"fhMomentumFits_pi0reco; chi; #", 10000, 0., 1000.);
327 fhElectrons_invmass =
new TH1D(
"fhElectrons_invmass",
"fhElectrons_invmass; invariant mass; #", invmassSpectra_nof,
328 invmassSpectra_start, invmassSpectra_end);
330 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
335 new TH1D(
"fhElectrons_nofPerEvent",
"fhElectrons_nofPerEvent; nof electrons per event; #", 101, -0.5, 100.5);
338 new TH1D(
"fhPhotons_nofPerEvent",
"fhPhotons_nofPerEvent; nof photons per event; #", 101, -0.5, 100.5);
341 fhPhotons_invmass =
new TH1D(
"fhPhotons_invmass",
"fhPhotons_invmass; invariant mass; #", invmassSpectra_nof,
342 invmassSpectra_start, invmassSpectra_end);
344 fhPhotons_invmass_cut =
new TH1D(
"fhPhotons_invmass_cut",
"fhPhotons_invmass_cut; invariant mass; #",
345 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
350 new TH1D(
"fhPhotons_invmass_cut_ptBin1",
"fhPhotons_invmass_cut_ptBin1; invariant mass; #", invmassSpectra_nof,
351 invmassSpectra_start, invmassSpectra_end);
354 new TH1D(
"fhPhotons_invmass_cut_ptBin2",
"fhPhotons_invmass_cut_ptBin2; invariant mass; #", invmassSpectra_nof,
355 invmassSpectra_start, invmassSpectra_end);
358 new TH1D(
"fhPhotons_invmass_cut_ptBin3",
"fhPhotons_invmass_cut_ptBin3; invariant mass; #", invmassSpectra_nof,
359 invmassSpectra_start, invmassSpectra_end);
362 new TH1D(
"fhPhotons_invmass_cut_ptBin4",
"fhPhotons_invmass_cut_ptBin4; invariant mass; #", invmassSpectra_nof,
363 invmassSpectra_start, invmassSpectra_end);
368 new TH1D(
"fhPhotons_angleBetween",
"fhPhotons_angleBetween; opening angle [deg]; #", 1000, 0, 100);
373 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
376 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
379 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
382 new TH1D(
"fhPhotons_invmass_cut_chi10",
"fhPhotons_invmass_cut_chi10; invariant mass; #", invmassSpectra_nof,
383 invmassSpectra_start, invmassSpectra_end);
386 new TH1D(
"fhPhotons_invmass_cut_chi25",
"fhPhotons_invmass_cut_chi25; invariant mass; #", invmassSpectra_nof,
387 invmassSpectra_start, invmassSpectra_end);
390 new TH1D(
"fhPhotons_invmass_cut_chi40",
"fhPhotons_invmass_cut_chi40; invariant mass; #", invmassSpectra_nof,
391 invmassSpectra_start, invmassSpectra_end);
394 new TH1D(
"fhPhotons_invmass_cut_chi65",
"fhPhotons_invmass_cut_chi65; invariant mass; #", invmassSpectra_nof,
395 invmassSpectra_start, invmassSpectra_end);
398 new TH1D(
"fhPhotons_invmass_cut_chi80",
"fhPhotons_invmass_cut_chi80; invariant mass; #", invmassSpectra_nof,
399 invmassSpectra_start, invmassSpectra_end);
402 fhPhotons_invmass_vs_chi =
new TH2D(
"fhPhotons_invmass_vs_chi",
"fhPhotons_invmass_vs_chi; invariant mass; chi", 600,
403 -0.0025, 2.9975, 1000, 0., 100.);
406 "fhPhotons_startvertex_vs_chi",
"fhPhotons_startvertex_vs_chi; startvertex; chi", 400, -5., 95., 1000, 0., 200.);
409 new TH2D(
"fhPhotons_invmass_vs_pt",
"fhPhotons_invmass_vs_pt; invmass; pt", 600, -0.0025, 2.9975, 100, 0., 10.);
412 new TH2D(
"fhPhotons_rapidity_vs_pt",
"fhPhotons_rapidity_vs_pt; pt [GeV]; rap [GeV]", 240, -2., 10., 210, 0., 7.);
416 new TH2D(
"fhPhotons_invmass_vs_openingAngle",
"fhPhotons_invmass_vs_openingAngle; invmass; openingAngle", 600,
417 -0.0025, 2.9975, 100, 0., 10.);
420 new TH2D(
"fhPhotons_openingAngle_vs_momentum",
"fhPhotons_openingAngle_vs_momentum; openingAngle; momentum", 100,
421 0., 10., 100, 0., 10.);
425 fhPhotons_MC_motherpdg =
new TH1D(
"fhPhotons_MC_motherpdg",
"fhPhotons_MC_motherpdg; pdg; #", 1000, 0., 1000.);
428 "fhPhotons_MC_minvmass1 (MC-true cut: at least gamma correct "
429 "reconstructed); invariant mass; #",
430 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
433 "fhPhotons_MC_minvmass2 (MC-true cut: gamma "
434 "from same mother); invariant mass; #",
435 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
438 "fhPhotons_MC_minvmass3 (MC-true cut: gamma "
439 "from different mother); invariant mass; #",
440 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
443 "fhPhotons_MC_minvmass4 (MC-true cut: wrong combination of "
444 "electrons); invariant mass; #",
445 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
449 new TH1D(
"fhPhotons_MC_startvertexZ",
"fhPhotons_MC_startvertexZ; startvertexZ [cm]; #", 1000, -5., 95.);
453 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
457 new TH1D(
"fhPhotons_Refit_chiDiff",
"fhPhotons_Refit_chiDiff; difference of chi; #", 1000, -0.1, 99.9);
461 "fhPhotons_Refit_momentumDiff",
"fhPhotons_Refit_momentumDiff; difference of momentum mag; #", 1000, -0.1, 4.9);
465 new TH1D(
"fhPhotons_Refit_chiDistribution",
"fhPhotons_Refit_chiDistribution; chi value; #", 10000, 0., 1000.);
469 "fhPhotons_RefitPion_chiDistribution; chi value; #", 10000, 0., 1000.);
473 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
476 new TH1D(
"fhPhotons_invmass_refit_cut",
"fhPhotons_invmass_refit_cut; invariant mass; #", invmassSpectra_nof,
477 invmassSpectra_start, invmassSpectra_end);
482 new TH1D(
"fhPhotons_invmass_direction",
"fhPhotons_invmass_direction; invariant mass; #", invmassSpectra_nof,
483 invmassSpectra_start, invmassSpectra_end);
486 new TH1D(
"fhPhotons_invmass_direction_cut",
"fhPhotons_invmass_direction_cut; invariant mass; #",
487 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
489 fhPhotons_boostAngle =
new TH1D(
"fhPhotons_boostAngle",
"fhPhotons_boostAngle; boostAngle; #", 7400, -370., 370.);
492 new TH1D(
"fhPhotons_boostAngleMC",
"fhPhotons_boostAngleMC; boostAngle; #", 7400, -370., 370.);
495 new TH1D(
"fhPhotons_boostAngleTest",
"fhPhotons_boostAngleTest; boostAngle; #", 10000, -5., 5.);
499 fhPhotons_tX =
new TH1D(
"fhPhotons_tX",
"fhPhotons_tX; tX; #", 201, -1.005, 1.005);
501 fhPhotons_tY =
new TH1D(
"fhPhotons_tY",
"fhPhotons_tY; tY; #", 201, -1.005, 1.005);
507 new TH1D(
"fhElectrons_nofPerEvent_1",
"fhElectrons_nofPerEvent_1; nof electrons per event; #", 101, -0.5, 100.5);
510 new TH1D(
"fhPhotons_nofPerEvent_1",
"fhPhotons_nofPerEvent_1; nof photons per event; #", 101, -0.5, 100.5);
513 fhPhotons_invmass_1 =
new TH1D(
"fhPhotons_invmass_1",
"fhPhotons_invmass_1; invariant mass; #", 600, -0.0025, 2.9975);
517 new TH1D(
"fhPhotons_invmass_ptBin1_1",
"fhPhotons_invmass_ptBin1_1; invariant mass; #", 600, -0.0025, 2.9975);
520 new TH1D(
"fhPhotons_invmass_ptBin2_1",
"fhPhotons_invmass_ptBin2_1; invariant mass; #", 600, -0.0025, 2.9975);
523 new TH1D(
"fhPhotons_invmass_ptBin3_1",
"fhPhotons_invmass_ptBin3_1; invariant mass; #", 600, -0.0025, 2.9975);
526 new TH1D(
"fhPhotons_invmass_ptBin4_1",
"fhPhotons_invmass_ptBin4_1; invariant mass; #", 600, -0.0025, 2.9975);
530 new TH1D(
"fhElectrons_invmass_1",
"fhElectrons_invmass_1; invariant mass; #", 600, -0.0025, 2.9975);
533 new TH2D(
"fhPhotons_invmass_vs_pt_1",
"fhPhotons_invmass_vs_pt_1; invmass; pt", 600, -0.0025, 2.9975, 100, 0., 10.);
539 new TH1D(
"fhElectrons_nofPerEvent_2",
"fhElectrons_nofPerEvent_2; nof electrons per event; #", 101, -0.5, 100.5);
542 new TH1D(
"fhPhotons_nofPerEvent_2",
"fhPhotons_nofPerEvent_2; nof photons per event; #", 101, -0.5, 100.5);
545 fhPhotons_invmass_2 =
new TH1D(
"fhPhotons_invmass_2",
"fhPhotons_invmass_2; invariant mass; #", 600, -0.0025, 2.9975);
549 new TH1D(
"fhPhotons_invmass_ptBin1_2",
"fhPhotons_invmass_ptBin1_2; invariant mass; #", 600, -0.0025, 2.9975);
552 new TH1D(
"fhPhotons_invmass_ptBin2_2",
"fhPhotons_invmass_ptBin2_2; invariant mass; #", 600, -0.0025, 2.9975);
555 new TH1D(
"fhPhotons_invmass_ptBin3_2",
"fhPhotons_invmass_ptBin3_2; invariant mass; #", 600, -0.0025, 2.9975);
558 new TH1D(
"fhPhotons_invmass_ptBin4_2",
"fhPhotons_invmass_ptBin4_2; invariant mass; #", 600, -0.0025, 2.9975);
562 new TH1D(
"fhElectrons_invmass_2",
"fhElectrons_invmass_2; invariant mass; #", 600, -0.0025, 2.9975);
565 new TH2D(
"fhPhotons_invmass_vs_pt_2",
"fhPhotons_invmass_vs_pt_2; invmass; pt", 600, -0.0025, 2.9975, 100, 0., 10.);
571 new TH1D(
"fhElectrons_nofPerEvent_3",
"fhElectrons_nofPerEvent_3; nof electrons per event; #", 101, -0.5, 100.5);
574 new TH1D(
"fhPhotons_nofPerEvent_3",
"fhPhotons_nofPerEvent_3; nof photons per event; #", 101, -0.5, 100.5);
577 fhPhotons_invmass_3 =
new TH1D(
"fhPhotons_invmass_3",
"fhPhotons_invmass_3; invariant mass; #", 600, -0.0025, 2.9975);
581 new TH1D(
"fhPhotons_invmass_ptBin1_3",
"fhPhotons_invmass_ptBin1_3; invariant mass; #", 600, -0.0025, 2.9975);
584 new TH1D(
"fhPhotons_invmass_ptBin2_3",
"fhPhotons_invmass_ptBin2_3; invariant mass; #", 600, -0.0025, 2.9975);
587 new TH1D(
"fhPhotons_invmass_ptBin3_3",
"fhPhotons_invmass_ptBin3_3; invariant mass; #", 600, -0.0025, 2.9975);
590 new TH1D(
"fhPhotons_invmass_ptBin4_3",
"fhPhotons_invmass_ptBin4_3; invariant mass; #", 600, -0.0025, 2.9975);
594 new TH1D(
"fhElectrons_invmass_3",
"fhElectrons_invmass_3; invariant mass; #", 600, -0.0025, 2.9975);
597 new TH2D(
"fhPhotons_invmass_vs_pt_3",
"fhPhotons_invmass_vs_pt_3; invmass; pt", 600, -0.0025, 2.9975, 100, 0., 10.);
603 new TH1D(
"fhElectrons_nofPerEvent_4",
"fhElectrons_nofPerEvent_4; nof electrons per event; #", 101, -0.5, 100.5);
606 new TH1D(
"fhPhotons_nofPerEvent_4",
"fhPhotons_nofPerEvent_4; nof photons per event; #", 101, -0.5, 100.5);
609 fhPhotons_invmass_4 =
new TH1D(
"fhPhotons_invmass_4",
"fhPhotons_invmass_4; invariant mass; #", 600, -0.0025, 2.9975);
613 new TH1D(
"fhPhotons_invmass_ptBin1_4",
"fhPhotons_invmass_ptBin1_4; invariant mass; #", 600, -0.0025, 2.9975);
616 new TH1D(
"fhPhotons_invmass_ptBin2_4",
"fhPhotons_invmass_ptBin2_4; invariant mass; #", 600, -0.0025, 2.9975);
619 new TH1D(
"fhPhotons_invmass_ptBin3_4",
"fhPhotons_invmass_ptBin3_4; invariant mass; #", 600, -0.0025, 2.9975);
622 new TH1D(
"fhPhotons_invmass_ptBin4_4",
"fhPhotons_invmass_ptBin4_4; invariant mass; #", 600, -0.0025, 2.9975);
626 new TH1D(
"fhElectrons_invmass_4",
"fhElectrons_invmass_4; invariant mass; #", 600, -0.0025, 2.9975);
629 new TH2D(
"fhPhotons_invmass_vs_pt_4",
"fhPhotons_invmass_vs_pt_4; invmass; pt", 600, -0.0025, 2.9975, 100, 0., 10.);
633 for (
int i = 1; i <= 4; i++) {
635 new TH1D(Form(
"fhElectrons_nofPerEvent_new_%i", i),
636 Form(
"fhElectrons_nofPerEvent_new_%i; nof electrons per event; #", i), 31, -0.5, 30.5);
639 new TH1D(Form(
"fhPhotons_nofPerEvent_new_%i", i),
640 Form(
"fhPhotons_nofPerEvent_new_%i; nof photons per event; #", i), 31, -0.5, 30.5);
643 new TH1D(Form(
"fhPhotons_nofPerEventAfter_new_%i", i),
644 Form(
"fhPhotons_nofPerEventAfter_new_%i; nof photons per event; #", i), 31, -0.5, 30.5);
647 Form(
"fhPi0_nofPerEvent_new_%i; nof pi0 per event; #", i), 31, -0.5, 30.5);
651 new TH1D(Form(
"fhPhotons_invmass_new_%i", i),
652 Form(
"fhPhotons_invmass_new_%i; invariant mass of 4 e^{#pm} in GeV/c^{2}; #", i), invmassSpectra_nof,
653 invmassSpectra_start, invmassSpectra_end);
656 Form(
"fhPhotons_invmass_ann0_new_%i; invariant mass of 4 "
657 "e^{#pm} in GeV/c^{2}; #",
659 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
663 Form(
"fhPhotons_invmass_ptBin1_new_%i; invariant mass of 4 "
664 "e^{#pm} in GeV/c^{2}; #",
666 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
669 Form(
"fhPhotons_invmass_ptBin2_new_%i; invariant mass of 4 "
670 "e^{#pm} in GeV/c^{2}; #",
672 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
675 Form(
"fhPhotons_invmass_ptBin3_new_%i; invariant mass of 4 "
676 "e^{#pm} in GeV/c^{2}; #",
678 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
681 Form(
"fhPhotons_invmass_ptBin4_new_%i; invariant mass of 4 "
682 "e^{#pm} in GeV/c^{2}; #",
684 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
687 Form(
"fhPhotons_invmass_ptBin5_new_%i; invariant mass of 4 "
688 "e^{#pm} in GeV/c^{2}; #",
690 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
693 Form(
"fhPhotons_invmass_ptBin6_new_%i; invariant mass of 4 "
694 "e^{#pm} in GeV/c^{2}; #",
696 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
700 Form(
"fhElectrons_invmass_new_%i; invariant mass of 4 e^{#pm} "
703 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
707 Form(
"fhPhotons_invmass_vs_pt_new_%i; invariant mass of 4 "
708 "e^{#pm} in GeV/c^{2}; pt",
710 600, -0.0025, 2.9975, 100, 0., 10.);
714 new TH1D(Form(
"fhPhotons_invmass_MCcut1_new_%i", i),
715 Form(
"fhPhotons_invmass_MCcut1_new_%i (MC-true cut: at least gamma correct "
716 "reconstructed); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
718 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
721 Form(
"fhPhotons_invmass_MCcut2_new_%i (MC-true cut: gamma from "
722 "same mother); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
724 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
727 new TH1D(Form(
"fhPhotons_invmass_MCcut3_new_%i", i),
728 Form(
"fhPhotons_invmass_MCcut3_new_%i (MC-true cut: gamma from different "
729 "mother); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
731 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
734 new TH1D(Form(
"fhPhotons_invmass_MCcut4_new_%i", i),
735 Form(
"fhPhotons_invmass_MCcut4_new_%i (MC-true cut: wrong combination of "
736 "electrons); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
738 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
741 new TH1D(Form(
"fhPhotons_invmass_MCcut5_new_%i", i),
742 Form(
"fhPhotons_invmass_MCcut5_new_%i (MC-true cut: wrong combination of "
743 "electrons); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
745 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
748 new TH1D(Form(
"fhPhotons_invmass_MCcut6_new_%i", i),
749 Form(
"fhPhotons_invmass_MCcut6_new_%i (MC-true cut: wrong combination of "
750 "electrons); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
752 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
755 new TH1D(Form(
"fhPhotons_invmass_MCcut7_new_%i", i),
756 Form(
"fhPhotons_invmass_MCcut7_new_%i (MC-true cut: wrong combination of "
757 "electrons); invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
759 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
763 Form(
"fhPhotons_invmass_MCcutAll_new_%i; case; invmass", i), 25, 0.,
764 25., invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
768 Form(
"fhPhotons_invmass_MCcutTest_new_%i (MC-true cut: test); "
769 "invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
771 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
774 Form(
"fhPhotons_invmass_MCcutTest2_new_%i (MC-true cut: test); "
775 "invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
777 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
780 Form(
"fhPhotons_invmass_MCcutTest3_new_%i (MC-true cut: test); "
781 "invariant mass of 4 e^{#pm} in GeV/c^{2}; #",
783 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
787 new TH2D(Form(
"fhPhotons_pt_vs_rap_new_%i", i), Form(
"fhPhotons_pt_vs_rap_new_%i; p_{t} in GeV/c; rapidity y", i),
788 240, -2., 10., 270, -2., 7.);
792 new TH1D(Form(
"fhElectrons_openingAngle_sameSign_new_%i", i),
793 Form(
"fhElectrons_openingAngle_sameSign_new_%i; opening angle; #", i), 101, -0.5, 100.5);
798 Form(
"fhMixedEventsTest_invmass_%i; invariant mass of 4 e^{#pm} "
801 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
804 fhPhotons_stats[i] =
new TH1D(Form(
"fhPhotons_stats_%i", i), Form(
"fhPhotons_stats_%i; ; #", i), 16, 0, 16);
824 new TH1D(Form(
"fhPhotons_peakCheck1_%i", i), Form(
"fhPhotons_peakCheck1_%i; sum; #", i), 20, -0.5, 19.5);
826 new TH1D(Form(
"fhPhotons_peakCheck2_%i", i), Form(
"fhPhotons_peakCheck2_%i; sum; #", i), 20, -0.5, 19.5);
831 new TH2D(Form(
"fhPhotons_invmass_ANNcuts_new_%i", i),
832 Form(
"fhPhotons_invmass_ANNcuts_new_%i;ann;invariant mass of 4 "
833 "e^{#pm} in GeV/c^{2}",
835 10, 0, 10, invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
840 new TH2D(Form(
"fhPhotons_phaseSpace_pi0_%i", i),
841 Form(
"fhPhotons_phaseSpace_pi0_%i; p_{t} in GeV/c;rapidity y", i), 240, -2., 10., 270, -2., 7.);
843 new TH2D(Form(
"fhPhotons_phaseSpace_eta_%i", i),
844 Form(
"fhPhotons_phaseSpace_eta_%i; p_{t} in GeV/c;rapidity y", i), 240, -2., 10., 270, -2., 7.);
851 Form(
"fhPhotons_MCtrue_pdgCodes_%i; pdg code; #", 4), 1000, 0, 1000);
858 Form(
"fhMixedEventsTest2_invmass_%i; invariant mass of 4 e^{#pm} "
861 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
864 Form(
"fhMixedEventsTest3_invmass_%i; invariant mass of 4 e^{#pm} "
867 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
871 Form(
"fhMixedEventsTest4_invmass_%i; invariant mass of 4 e^{#pm} "
874 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
877 Form(
"fhMixedEventsTest4_invmass_ann0_%i; invariant mass of 4 "
878 "e^{#pm} in GeV/c^{2}; #",
880 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
884 new TH2D(Form(
"fhMixedEventsTest4_pt_vs_rap_%i", 4),
885 Form(
"fhMixedEventsTest4_pt_vs_rap_%i; p_{t} in GeV/c; rapidity y", 4), 240, -2., 10., 270, -2., 7.);
889 Form(
"fhMixedEventsTest4_invmass_%i_ptBin1; invariant mass of 4 "
890 "e^{#pm} in GeV/c^{2}; #",
892 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
895 Form(
"fhMixedEventsTest4_invmass_%i_ptBin2; invariant mass of 4 "
896 "e^{#pm} in GeV/c^{2}; #",
898 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
901 Form(
"fhMixedEventsTest4_invmass_%i_ptBin3; invariant mass of 4 "
902 "e^{#pm} in GeV/c^{2}; #",
904 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
907 Form(
"fhMixedEventsTest4_invmass_%i_ptBin4; invariant mass of 4 "
908 "e^{#pm} in GeV/c^{2}; #",
910 invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
914 new TH2D(Form(
"fhMixedEventsTest4_invmass_ANNcuts_%i", 4),
915 Form(
"fhMixedEventsTest4_invmass_ANNcuts_%i;; invariant mass of 4 "
916 "e^{#pm} in GeV/c^{2}",
918 10, 0, 10, invmassSpectra_nof, invmassSpectra_start, invmassSpectra_end);
983 Fatal(
"CbmAnaConversion::Exec",
"No PrimaryVertex array!");
1018 for (
int i = 1; i <= 4; i++) {
1056 Int_t nofGT_richsts = 0;
1057 Int_t nofElectrons = 0;
1058 Int_t nofElectrons_1 = 0;
1059 Int_t nofElectrons_2 = 0;
1060 Int_t nofElectrons_3 = 0;
1061 Int_t nofElectrons_4 = 0;
1064 Int_t FilledMixedEventElectron =
1069 cout <<
"CbmAnaConversionRecoFull: number of global tracks " << nofGlobalTracks << endl;
1070 for (
int iG = 0; iG < nofGlobalTracks; iG++) {
1072 if (NULL == gTrack)
continue;
1075 if (richInd < 0)
continue;
1076 if (stsInd < 0)
continue;
1079 if (stsTrack == NULL)
continue;
1096 int stsMcTrackId = 0;
1098 if (stsMatch != NULL) {
1101 if (stsMcTrackId >= 0) {
1103 if (mcTrack1 == NULL) stsMcTrackId = 0;
1109 int richMcTrackId = 0;
1111 if (richMatch != NULL) {
1113 if (richMcTrackId >= 0) {
1115 if (mcTrack2 == NULL) richMcTrackId = 0;
1126 TVector3 refittedMomentum;
1128 vector<CbmStsTrack> stsTracks;
1129 stsTracks.resize(1);
1130 stsTracks[0] = *stsTrack;
1131 vector<CbmL1PFFitter::PFFieldRegion> vField;
1132 vector<float> chiPrim;
1136 const FairTrackParam* vtxTrack = stsTracks[0].GetParamFirst();
1137 vtxTrack->Momentum(refittedMomentum);
1140 float result_chi = chiPrim[0];
1162 if (electron_rich2) {
1177 if (FilledMixedEventElectron < 5) {
1180 FilledMixedEventElectron++;
1190 if (result_chi <= chiCut) {
1205 if (FilledMixedEventElectron < 5) {
1208 FilledMixedEventElectron++;
1217 vector<CbmStsTrack> stsTracks_electron;
1218 stsTracks_electron.resize(1);
1219 stsTracks_electron[0] = *stsTrack;
1220 vector<CbmL1PFFitter::PFFieldRegion> vField_electron;
1221 vector<float> chiPrim_electron;
1222 vector<int> pidHypo_electron;
1223 pidHypo_electron.push_back(11);
1224 fPFFitter_electron.
Fit(stsTracks_electron, pidHypo_electron);
1227 TVector3 refittedMomentum_electron;
1228 const FairTrackParam* vtxTrack_electron = stsTracks_electron[0].GetParamFirst();
1229 vtxTrack_electron->Momentum(refittedMomentum_electron);
1230 float result_chi_electron = chiPrim_electron[0];
1232 refittedMomentum = refittedMomentum_electron;
1233 result_chi = result_chi_electron;
1244 if (electron_rich) {
1259 if (FilledMixedEventElectron < 5) {
1262 FilledMixedEventElectron++;
1264 if (result_chi <= chiCut) {
1280 if (FilledMixedEventElectron < 5) {
1283 FilledMixedEventElectron++;
1301 if (electron_rich && electron_trd)
fhElectrons->Fill(3);
1302 if (electron_rich && electron_tof)
fhElectrons->Fill(4);
1303 if (electron_trd && electron_tof)
fhElectrons->Fill(5);
1304 if (electron_rich && electron_trd && electron_tof)
fhElectrons->Fill(6);
1305 if ((electron_rich && electron_trd) || (electron_rich && electron_tof) || (electron_trd && electron_tof))
1327 cout <<
"CbmAnaConversionRecoFull: number of global tracks in STS and RICH " << nofGT_richsts << endl;
1332 cout <<
"CbmAnaConversionRecoFull: combining for each case!" << endl;
1334 for (
int i = 1; i <= 4; i++) {
1335 cout <<
"CbmAnaConversionRecoFull: case " << i << endl;
1659 vector<float> momentaChi, vector<int>,
1660 vector<vector<int>> reconstructedPhotons, Int_t index)
1672 Int_t nof = reconstructedPhotons.size();
1674 cout <<
"CbmAnaConversionRecoFull: " << index <<
": CombinePhotons, nof - " << nof << endl;
1676 for (
int a = 0; a < nof - 1; a++) {
1677 for (
int b = a + 1; b < nof; b++) {
1678 cout <<
"####" << endl;
1679 cout <<
"CbmAnaConversionRecoFull: calculating invariant mass! (" << a <<
"/" << b <<
")" << endl;
1680 Int_t electron11 = reconstructedPhotons[a][0];
1681 Int_t electron12 = reconstructedPhotons[a][1];
1682 Int_t electron21 = reconstructedPhotons[b][0];
1683 Int_t electron22 = reconstructedPhotons[b][1];
1684 cout <<
"CbmAnaConversionRecoFull: calculating invariant mass! (" << electron11 <<
"/" << electron12 <<
"/"
1685 << electron21 <<
"/" << electron22 <<
")" << endl;
1687 if (electron11 == electron12 || electron11 == electron21 || electron11 == electron22 || electron12 == electron21
1688 || electron12 == electron22 || electron21 == electron22) {
1689 cout <<
"CbmAnaConversionRecoFull: RecoFull_DoubleIndex!" << endl;
1694 Int_t charge11 = (gtrack[electron11]->GetParamLast()->GetQp() > 0);
1696 Int_t charge21 = (gtrack[electron21]->GetParamLast()->GetQp() > 0);
1697 Int_t charge22 = (gtrack[electron22]->GetParamLast()->GetQp() > 0);
1698 if ((charge11 + charge21 == 2) || (charge11 + charge21 == 0)) {
1706 if ((charge11 + charge22 == 2) || (charge11 + charge22 == 0)) {
1716 Invmass_4particlesRECO(momenta[electron11], momenta[electron12], momenta[electron21], momenta[electron22]);
1725 Pt_4particlesRECO(momenta[electron11], momenta[electron12], momenta[electron21], momenta[electron22]);
1727 Rap_4particlesRECO(momenta[electron11], momenta[electron12], momenta[electron21], momenta[electron22]);
1736 momenta[electron21], momenta[electron22]);
1739 momenta[electron11], momenta[electron12], momenta[electron21], momenta[electron22]);
1755 if (IsRichElectron_ann0_e11 && IsRichElectron_ann0_e12 && IsRichElectron_ann0_e21 && IsRichElectron_ann0_e22) {
1758 if (ANNe11 > -1 && ANNe12 > -1 && ANNe21 > -1 && ANNe22 > -1)
1760 if (ANNe11 > -0.9 && ANNe12 > -0.9 && ANNe21 > -0.9 && ANNe22 > -0.9)
1762 if (ANNe11 > -0.8 && ANNe12 > -0.8 && ANNe21 > -0.8 && ANNe22 > -0.8)
1764 if (ANNe11 > -0.7 && ANNe12 > -0.7 && ANNe21 > -0.7 && ANNe22 > -0.7)
1766 if (ANNe11 > -0.6 && ANNe12 > -0.6 && ANNe21 > -0.6 && ANNe22 > -0.6)
1768 if (ANNe11 > -0.5 && ANNe12 > -0.5 && ANNe21 > -0.5 && ANNe22 > -0.5)
1770 if (ANNe11 > -0.0 && ANNe12 > -0.0 && ANNe21 > -0.0 && ANNe22 > -0.0)
1773 cout <<
"CbmAnaConversionRecoFull: debug: (" << invmass <<
"/" << paramsTest.
fMinv <<
") - (" << pt <<
"/"
1774 << paramsTest.
fPt <<
") - (" << rap <<
"/" << paramsTest.
fRapidity <<
")" << endl;
1781 Double_t energyE11 = TMath::Sqrt(momenta[electron11].Mag2() +
M2E);
1782 TLorentzVector lorVecE11(momenta[electron11], energyE11);
1783 Double_t energyE12 = TMath::Sqrt(momenta[electron12].Mag2() +
M2E);
1784 TLorentzVector lorVecE12(momenta[electron12], energyE12);
1785 Double_t energyE21 = TMath::Sqrt(momenta[electron21].Mag2() +
M2E);
1786 TLorentzVector lorVecE21(momenta[electron21], energyE21);
1787 Double_t energyE22 = TMath::Sqrt(momenta[electron22].Mag2() +
M2E);
1788 TLorentzVector lorVecE22(momenta[electron22], energyE22);
1789 TLorentzVector g1 = lorVecE11 + lorVecE12;
1790 TLorentzVector g2 = lorVecE21 + lorVecE22;
1791 TLorentzVector
pi = lorVecE11 + lorVecE12 + lorVecE21 + lorVecE22;
1793 g1.Boost(-
pi.BoostVector());
1794 g2.Boost(-
pi.BoostVector());
1796 Double_t boostAngle = g1.Angle(g2.Vect());
1797 Double_t theta = 180. * boostAngle / TMath::Pi();
1935 Int_t motherpdg11 = -2;
1936 Int_t motherpdg12 = -2;
1937 Int_t motherpdg21 = -2;
1938 Int_t motherpdg22 = -2;
1939 if (mothermctrack11 != NULL) motherpdg11 = mothermctrack11->
GetPdgCode();
1940 if (mothermctrack12 != NULL) motherpdg12 = mothermctrack12->
GetPdgCode();
1941 if (mothermctrack21 != NULL) motherpdg21 = mothermctrack21->
GetPdgCode();
1942 if (mothermctrack22 != NULL) motherpdg22 = mothermctrack22->
GetPdgCode();
1944 Int_t grandmotherId11 = -2;
1945 Int_t grandmotherId12 = -2;
1946 Int_t grandmotherId21 = -2;
1947 Int_t grandmotherId22 = -2;
1948 if (mothermctrack11 != NULL) grandmotherId11 = mothermctrack11->
GetMotherId();
1949 if (mothermctrack12 != NULL) grandmotherId12 = mothermctrack12->
GetMotherId();
1950 if (mothermctrack21 != NULL) grandmotherId21 = mothermctrack21->
GetMotherId();
1951 if (mothermctrack22 != NULL) grandmotherId22 = mothermctrack22->
GetMotherId();
1954 Int_t sameGrandmothers1 = 0;
1955 Int_t sameGrandmothers2 = 0;
1956 Int_t sameGrandmothers3 = 0;
1957 Int_t sameGrandmothers4 = 0;
1958 if (grandmotherId11 == grandmotherId12) sameGrandmothers1++;
1959 if (grandmotherId11 == grandmotherId21) sameGrandmothers1++;
1960 if (grandmotherId11 == grandmotherId22) sameGrandmothers1++;
1961 if (grandmotherId12 == grandmotherId11) sameGrandmothers2++;
1962 if (grandmotherId12 == grandmotherId21) sameGrandmothers2++;
1963 if (grandmotherId12 == grandmotherId22) sameGrandmothers2++;
1964 if (grandmotherId21 == grandmotherId11) sameGrandmothers3++;
1965 if (grandmotherId21 == grandmotherId12) sameGrandmothers3++;
1966 if (grandmotherId21 == grandmotherId22) sameGrandmothers3++;
1967 if (grandmotherId22 == grandmotherId11) sameGrandmothers4++;
1968 if (grandmotherId22 == grandmotherId12) sameGrandmothers4++;
1969 if (grandmotherId22 == grandmotherId21) sameGrandmothers4++;
1970 Int_t sameGrandmothersSum = sameGrandmothers1 + sameGrandmothers2 + sameGrandmothers3 + sameGrandmothers4;
1972 Int_t sameMothers1 = 0;
1973 Int_t sameMothers2 = 0;
1974 Int_t sameMothers3 = 0;
1975 Int_t sameMothers4 = 0;
1976 if (motherId11 == motherId12) sameMothers1++;
1977 if (motherId11 == motherId21) sameMothers1++;
1978 if (motherId11 == motherId22) sameMothers1++;
1979 if (motherId12 == motherId11) sameMothers2++;
1980 if (motherId12 == motherId21) sameMothers2++;
1981 if (motherId12 == motherId22) sameMothers2++;
1982 if (motherId21 == motherId11) sameMothers3++;
1983 if (motherId21 == motherId12) sameMothers3++;
1984 if (motherId21 == motherId22) sameMothers3++;
1985 if (motherId22 == motherId11) sameMothers4++;
1986 if (motherId22 == motherId12) sameMothers4++;
1987 if (motherId22 == motherId21) sameMothers4++;
1988 Int_t sameMothersSum = sameMothers1 + sameMothers2 + sameMothers3 + sameMothers4;
1992 motherId11 == motherId12
1996 if (TMath::Abs(motherpdg11) == 22 && TMath::Abs(motherpdg21) == 22) {
1999 if (TMath::Abs(motherpdg11) == 22 && TMath::Abs(motherpdg21) == 22 && grandmotherId11 == grandmotherId21
2000 && grandmotherId11 > 0) {
2005 if (TMath::Abs(motherpdg11) == 22 && TMath::Abs(motherpdg21) == 22 && grandmotherId11 != grandmotherId21) {
2008 if ((TMath::Abs(motherpdg11) == 22 && TMath::Abs(motherpdg21) == 111)
2009 || (TMath::Abs(motherpdg11) == 111 && TMath::Abs(motherpdg21) == 22)) {
2011 if (grandmotherId11 == motherId21 || motherId11 == grandmotherId21) {
2016 if (TMath::Abs(motherpdg11) == 111 && TMath::Abs(motherpdg21) == 111) {
2019 if ((TMath::Abs(motherpdg11) != 22 && TMath::Abs(motherpdg11) != 111)
2020 || (TMath::Abs(motherpdg21) != 22 && TMath::Abs(motherpdg21) != 111)) {
2023 if (TMath::Abs(motherpdg11) != 22 && TMath::Abs(motherpdg11) != 111 && TMath::Abs(motherpdg21) != 22
2024 && TMath::Abs(motherpdg21) != 111) {
2029 if ((motherId11 == motherId12 && motherId21 != motherId22)
2030 || (motherId11 != motherId12 && motherId21 == motherId22)) {
2033 if (motherId11 != motherId12 && motherId21 != motherId22) {
2037 if (sameGrandmothersSum == 4) {
2039 if (grandmotherId11 < 0 || grandmotherId12 < 0 || grandmotherId21 < 0 || grandmotherId22 < 0) {
2044 if ((motherId11 == motherId21 || motherId11 == motherId22)
2045 && (motherId12 == motherId21 || motherId11 == motherId22)) {
2054 cout <<
"CbmAnaConversionRecoFull: MC-Crosscheck: " << electron11 <<
"/" << electron12 <<
"/" << electron21
2055 <<
"/" << electron22 <<
" - " << pdg11 <<
"/" << pdg12 <<
"/" << pdg21 <<
"/" << pdg22 <<
" - "
2056 << motherId11 <<
"/" << motherId12 <<
"/" << motherId21 <<
"/" << motherId22 <<
" - " << motherpdg11
2057 <<
"/" << motherpdg12 <<
"/" << motherpdg21 <<
"/" << motherpdg22 << endl;
2058 cout <<
"CbmAnaConversionRecoFull: MC-Crosscheck: " << grandmotherId11 <<
"/" << grandmotherId12 <<
"/"
2059 << grandmotherId21 <<
"/" << grandmotherId22 << endl;
2064 if (index == 4 && TMath::Abs(pdg11) == 11 && TMath::Abs(pdg12) == 11 && TMath::Abs(pdg21) == 11
2065 && TMath::Abs(pdg22) == 11) {
2068 if (index == 4 && (pdg11 + pdg12 + pdg21 + pdg22) == 0) {
2072 if (index == 4 && invmass < 0.1) {
2080 TVector3 startvertex11;
2082 TVector3 startvertex12;
2084 TVector3 startvertex21;
2086 TVector3 startvertex22;
2096 if (motherId11 == motherId12 && motherId21 == motherId22) {
2099 if (motherId11 != -1 && motherId21 != -1) {
2103 Int_t grandmotherId11n = mothermctrack11n->
GetMotherId();
2104 Int_t grandmotherId21n = mothermctrack21n->
GetMotherId();
2106 if (grandmotherId11n == grandmotherId21n) {
2109 if (grandmotherId11n == -1)
continue;
2115 if (grandmotherId11n != grandmotherId21n) {
2122 if (motherId11 != motherId12 || motherId21 != motherId22) {
2126 if ((motherId11 != motherId12 && motherId21 == motherId22)
2127 || (motherId11 == motherId12 && motherId21 != motherId22)) {
2131 if (motherId11 != motherId12 && motherId21 != motherId22) {
2134 if (TMath::Abs(pdg11) != 11 || TMath::Abs(pdg12) != 11 || TMath::Abs(pdg21) != 11
2135 || TMath::Abs(pdg22) != 11) {