45 , fRichRingMatches(NULL)
48 , fStsTrackMatches(NULL)
52 , fHistoList_photons()
53 , fHistoList_photons_withRICH()
54 , fHistoList_photons_withRICH_withChi()
55 , fHistoList_photons_withRICH_fromTarget()
56 , fRecoTracklist_gtIndex()
57 , fRecoTracklist_mcIndex()
58 , fRecoTracklist_momentum()
59 , fRecoTracklist_chi()
60 , fRecoTracklist_mctrack()
61 , fRecoTracklist_withRICH_gtIndex()
62 , fRecoTracklist_withRICH_mcIndex()
63 , fRecoTracklist_withRICH_momentum()
64 , fRecoTracklist_withRICH_chi()
65 , fRecoTracklist_withRICH_mctrack()
66 , fh2Electrons_angle_all(NULL)
67 , fh2Electrons_angle_combBack(NULL)
68 , fh2Electrons_angle_allSameG(NULL)
69 , fh2Electrons_angle_all_cuts(NULL)
70 , fh2Electrons_angle_combBack_cuts(NULL)
71 , fh2Electrons_angle_allSameG_cuts(NULL)
72 , fh2Electrons_angle_CUTcomparison(NULL)
73 , fh2Electrons_angle_CUTcomparison_chi(NULL)
74 , fh2Electrons_angle_CUTcomparison_withRICH(NULL)
75 , fh2Electrons_angle_CUTcomparison_withRICH_chi(NULL)
76 , fh2Electrons_angle_CUTcomparison_withRICH_withChi(NULL)
77 , fh2Electrons_invmass_all(NULL)
78 , fh2Electrons_invmass_combBack(NULL)
79 , fh2Electrons_invmass_allSameG(NULL)
80 , fh2Electrons_invmass_all_cut(NULL)
81 , fh2Electrons_invmass_combBack_cut(NULL)
82 , fh2Electrons_invmass_allSameG_cut(NULL)
83 , fh2Electrons_angleVSpt_all(NULL)
84 , fh2Electrons_angleVSpt_combBack(NULL)
85 , fh2Electrons_angleVSpt_allSameG(NULL)
86 , fh2Electrons_invmassVSpt_all(NULL)
87 , fh2Electrons_invmassVSpt_combBack(NULL)
88 , fh2Electrons_invmassVSpt_allSameG(NULL)
89 , fh2Electrons_angle_withRICH_all(NULL)
90 , fh2Electrons_angle_withRICH_combBack(NULL)
91 , fh2Electrons_angle_withRICH_allSameG(NULL)
92 , fh2Electrons_angleVSpt_withRICH_all(NULL)
93 , fh2Electrons_angleVSpt_withRICH_combBack(NULL)
94 , fh2Electrons_angleVSpt_withRICH_allSameG(NULL)
95 , fh2Electrons_invmass_withRICH_all(NULL)
96 , fh2Electrons_invmass_withRICH_combBack(NULL)
97 , fh2Electrons_invmass_withRICH_allSameG(NULL)
98 , fh2Electrons_invmassVSpt_withRICH_all(NULL)
99 , fh2Electrons_invmassVSpt_withRICH_combBack(NULL)
100 , fh2Electrons_invmassVSpt_withRICH_allSameG(NULL)
101 , fh2Electrons_angle_withRICH_withChi_all(NULL)
102 , fh2Electrons_angle_withRICH_withChi_combBack(NULL)
103 , fh2Electrons_angle_withRICH_withChi_allSameG(NULL)
104 , fh2Electrons_angleVSpt_withRICH_withChi_all(NULL)
105 , fh2Electrons_angleVSpt_withRICH_withChi_combBack(NULL)
106 , fh2Electrons_angleVSpt_withRICH_withChi_allSameG(NULL)
107 , fh2Electrons_invmass_withRICH_withChi_all(NULL)
108 , fh2Electrons_invmass_withRICH_withChi_combBack(NULL)
109 , fh2Electrons_invmass_withRICH_withChi_allSameG(NULL)
110 , fh2Electrons_invmassVSpt_withRICH_withChi_all(NULL)
111 , fh2Electrons_invmassVSpt_withRICH_withChi_combBack(NULL)
112 , fh2Electrons_invmassVSpt_withRICH_withChi_allSameG(NULL)
113 , fh2Electrons_angle_withRICH_fromTarget_all(NULL)
114 , fh2Electrons_angle_withRICH_fromTarget_combBack(NULL)
115 , fh2Electrons_angle_withRICH_fromTarget_allSameG(NULL)
116 , fh2Electrons_angleVSpt_withRICH_fromTarget_all(NULL)
117 , fh2Electrons_angleVSpt_withRICH_fromTarget_combBack(NULL)
118 , fh2Electrons_angleVSpt_withRICH_fromTarget_allSameG(NULL)
119 , fh2Electrons_invmass_withRICH_fromTarget_all(NULL)
120 , fh2Electrons_invmass_withRICH_fromTarget_combBack(NULL)
121 , fh2Electrons_invmass_withRICH_fromTarget_allSameG(NULL)
122 , fh2Electrons_invmassVSpt_withRICH_fromTarget_all(NULL)
123 , fh2Electrons_invmassVSpt_withRICH_fromTarget_combBack(NULL)
124 , fh2Electrons_invmassVSpt_withRICH_fromTarget_allSameG(NULL)
125 , fVector_combinations()
126 , fh2Electrons_fullrecoCheck(NULL)
183 new TH1D(
"fh2Electrons_angle_all",
"fh2Electrons_angle_all; opening angle [deg]; #", 2001, -0.05, 200.05);
185 new TH1D(
"fh2Electrons_angle_combBack",
"fh2Electrons_angle_combBack; opening angle [deg]; #", 2001, -0.05, 200.05);
187 new TH1D(
"fh2Electrons_angle_allSameG",
"fh2Electrons_angle_allSameG; opening angle [deg]; #", 1001, -0.05, 100.05);
195 new TH1I(
"fh2Electrons_angle_CUTcomparison",
"fh2Electrons_angle_CUTcomparison; ; #", 14, 0., 14.);
214 new TH1I(
"fh2Electrons_angle_CUTcomparison_chi",
"fh2Electrons_angle_CUTcomparison_chi; ; #", 10, 0., 10.);
229 "fh2Electrons_angle_CUTcomparison_withRICH; ; #", 14, 0., 14.);
248 "fh2Electrons_angle_CUTcomparison_withRICH_chi",
"fh2Electrons_angle_CUTcomparison_withRICH_chi; ; #", 10, 0., 10.);
263 new TH1I(
"fh2Electrons_angle_CUTcomparison_withRICH_withChi",
264 "fh2Electrons_angle_CUTcomparison_withRICH_withChi; ; #", 14, 0., 14.);
284 new TH1D(
"fh2Electrons_angle_all_cuts",
"fh2Electrons_angle_all_cuts; opening angle [deg]; #", 101, -0.05, 10.05);
286 "fh2Electrons_angle_combBack_cuts",
"fh2Electrons_angle_combBack_cuts; opening angle [deg]; #", 101, -0.05, 10.05);
288 "fh2Electrons_angle_allSameG_cuts",
"fh2Electrons_angle_allSameG_cuts; opening angle [deg]; #", 101, -0.05, 10.05);
295 new TH1D(
"fh2Electrons_invmass_all",
"fh2Electrons_invmass_all; invmass [GeV/c^2]; #", 5000, 0., 5.);
297 new TH1D(
"fh2Electrons_invmass_combBack",
"fh2Electrons_invmass_combBack; invmass [GeV/c^2]; #", 5000, 0., 5.);
299 new TH1D(
"fh2Electrons_invmass_allSameG",
"fh2Electrons_invmass_allSameG; invmass [GeV/c^2]; #", 5000, 0., 5);
305 new TH1D(
"fh2Electrons_invmass_all_cut",
"fh2Electrons_invmass_all_cut; invmass [GeV/c^2]; #", 5000, 0., 5.);
307 "fh2Electrons_invmass_combBack_cut; invmass [GeV/c^2]; #", 5000, 0., 5.);
309 "fh2Electrons_invmass_allSameG_cut; invmass [GeV/c^2]; #", 5000, 0., 5);
317 new TH2D(
"fh2Electrons_angleVSpt_all",
"fh2Electrons_angleVSpt_all;pt [GeV/c];opening angle [deg]", 500, 0., 5.,
320 new TH2D(
"fh2Electrons_angleVSpt_combBack",
"fh2Electrons_angleVSpt_combBack;pt [GeV/c];opening angle [deg]", 500,
321 0., 5., 400, 0., 20.);
323 new TH2D(
"fh2Electrons_angleVSpt_allSameG",
"fh2Electrons_angleVSpt_allSameG;pt [GeV/c];opening angle [deg]", 500,
324 0., 5., 400, 0., 20.);
332 "fh2Electrons_invmassVSpt_all",
"fh2Electrons_invmassVSpt_all;pt [GeV/c];invmass [GeV]", 500, 0., 5., 5000, 0., 5.);
334 new TH2D(
"fh2Electrons_invmassVSpt_combBack",
"fh2Electrons_invmassVSpt_combBack;pt [GeV/c];invmass [GeV]", 500, 0.,
337 new TH2D(
"fh2Electrons_invmassVSpt_allSameG",
"fh2Electrons_invmassVSpt_allSameG;pt [GeV/c];invmass [GeV]", 500, 0.,
351 "fh2Electrons_angle_withRICH_all",
"fh2Electrons_angle_withRICH_all; opening angle [deg]; #", 2001, -0.05, 200.05);
353 new TH1D(
"fh2Electrons_angle_withRICH_combBack",
"fh2Electrons_angle_withRICH_combBack; opening angle [deg]; #",
354 2001, -0.05, 200.05);
356 new TH1D(
"fh2Electrons_angle_withRICH_allSameG",
"fh2Electrons_angle_withRICH_allSameG; opening angle [deg]; #",
357 1001, -0.05, 100.05);
364 new TH2D(
"fh2Electrons_angleVSpt_withRICH_all",
365 "fh2Electrons_angleVSpt_withRICH_all;pt [GeV/c];opening angle [deg]", 500, 0., 5., 400, 0., 20.);
367 new TH2D(
"fh2Electrons_angleVSpt_withRICH_combBack",
368 "fh2Electrons_angleVSpt_withRICH_combBack;pt [GeV/c];opening angle [deg]", 500, 0., 5., 400, 0., 20.);
370 new TH2D(
"fh2Electrons_angleVSpt_withRICH_allSameG",
371 "fh2Electrons_angleVSpt_withRICH_allSameG;pt [GeV/c];opening angle [deg]", 500, 0., 5., 400, 0., 20.);
378 "fh2Electrons_invmass_withRICH_all; invmass [GeV/c^2]; #", 5000, 0., 5.);
380 new TH1D(
"fh2Electrons_invmass_withRICH_combBack",
"fh2Electrons_invmass_withRICH_combBack; invmass [GeV/c^2]; #",
383 new TH1D(
"fh2Electrons_invmass_withRICH_allSameG",
"fh2Electrons_invmass_withRICH_allSameG; invmass [GeV/c^2]; #",
391 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_all",
"fh2Electrons_invmassVSpt_withRICH_all;pt [GeV/c];invmass [GeV]",
392 500, 0., 5., 5000, 0., 5.);
394 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_combBack",
395 "fh2Electrons_invmassVSpt_withRICH_combBack;pt [GeV/c];invmass [GeV]", 500, 0., 5., 5000, 0., 5.);
397 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_allSameG",
398 "fh2Electrons_invmassVSpt_withRICH_allSameG;pt [GeV/c];invmass [GeV]", 500, 0., 5., 5000, 0., 5.);
415 new TH1D(
"fh2Electrons_angle_withRICH_withChi_all",
416 "fh2Electrons_angle_withRICH_withChi_all; opening angle [deg]; #", 2001, -0.05, 200.05);
418 new TH1D(
"fh2Electrons_angle_withRICH_withChi_combBack",
419 "fh2Electrons_angle_withRICH_withChi_combBack; opening angle [deg]; #", 2001, -0.05, 200.05);
421 new TH1D(
"fh2Electrons_angle_withRICH_withChi_allSameG",
422 "fh2Electrons_angle_withRICH_withChi_allSameG; opening angle [deg]; #", 1001, -0.05, 100.05);
429 new TH2D(
"fh2Electrons_angleVSpt_withRICH_withChi_all",
430 "fh2Electrons_angleVSpt_withRICH_withChi_all;pt [GeV/c];opening "
432 500, 0., 5., 400, 0., 20.);
434 "fh2Electrons_angleVSpt_withRICH_withChi_combBack;pt "
435 "[GeV/c];opening angle [deg]",
436 500, 0., 5., 400, 0., 20.);
438 "fh2Electrons_angleVSpt_withRICH_withChi_allSameG;pt "
439 "[GeV/c];opening angle [deg]",
440 500, 0., 5., 400, 0., 20.);
447 new TH1D(
"fh2Electrons_invmass_withRICH_withChi_all",
448 "fh2Electrons_invmass_withRICH_withChi_all; invmass [GeV/c^2]; #", 5000, 0., 5.);
450 new TH1D(
"fh2Electrons_invmass_withRICH_withChi_combBack",
451 "fh2Electrons_invmass_withRICH_withChi_combBack; invmass [GeV/c^2]; #", 5000, 0., 5.);
453 new TH1D(
"fh2Electrons_invmass_withRICH_withChi_allSameG",
454 "fh2Electrons_invmass_withRICH_withChi_allSameG; invmass [GeV/c^2]; #", 5000, 0., 5.);
461 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_withChi_all",
462 "fh2Electrons_invmassVSpt_withRICH_withChi_all;pt [GeV/c];invmass [GeV]", 500, 0., 5., 5000, 0., 5.);
464 "fh2Electrons_invmassVSpt_withRICH_withChi_combBack;pt "
465 "[GeV/c];invmass [GeV]",
466 500, 0., 5., 5000, 0., 5.);
468 "fh2Electrons_invmassVSpt_withRICH_withChi_allSameG;pt "
469 "[GeV/c];invmass [GeV]",
470 500, 0., 5., 5000, 0., 5.);
483 new TH1D(
"fh2Electrons_angle_withRICH_fromTarget_all",
484 "fh2Electrons_angle_withRICH_fromTarget_all; opening angle [deg]; #", 2001, -0.05, 200.05);
486 new TH1D(
"fh2Electrons_angle_withRICH_fromTarget_combBack",
487 "fh2Electrons_angle_withRICH_fromTarget_combBack; opening angle [deg]; #", 2001, -0.05, 200.05);
489 new TH1D(
"fh2Electrons_angle_withRICH_fromTarget_allSameG",
490 "fh2Electrons_angle_withRICH_fromTarget_allSameG; opening angle [deg]; #", 1001, -0.05, 100.05);
497 "fh2Electrons_angleVSpt_withRICH_fromTarget_all;pt "
498 "[GeV/c];opening angle [deg]",
499 500, 0., 5., 400, 0., 20.);
501 new TH2D(
"fh2Electrons_angleVSpt_withRICH_fromTarget_combBack",
502 "fh2Electrons_angleVSpt_withRICH_fromTarget_combBack;pt "
503 "[GeV/c];opening angle [deg]",
504 500, 0., 5., 400, 0., 20.);
506 new TH2D(
"fh2Electrons_angleVSpt_withRICH_fromTarget_allSameG",
507 "fh2Electrons_angleVSpt_withRICH_fromTarget_allSameG;pt "
508 "[GeV/c];opening angle [deg]",
509 500, 0., 5., 400, 0., 20.);
516 new TH1D(
"fh2Electrons_invmass_withRICH_fromTarget_all",
517 "fh2Electrons_invmass_withRICH_fromTarget_all; invmass [GeV/c^2]; #", 5000, 0., 5.);
519 new TH1D(
"fh2Electrons_invmass_withRICH_fromTarget_combBack",
520 "fh2Electrons_invmass_withRICH_fromTarget_combBack; invmass [GeV/c^2]; #", 5000, 0., 5.);
522 new TH1D(
"fh2Electrons_invmass_withRICH_fromTarget_allSameG",
523 "fh2Electrons_invmass_withRICH_fromTarget_allSameG; invmass [GeV/c^2]; #", 5000, 0., 5.);
530 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_fromTarget_all",
531 "fh2Electrons_invmassVSpt_withRICH_fromTarget_all;pt [GeV/c];invmass [GeV]", 500, 0., 5., 5000, 0., 5.);
533 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_fromTarget_combBack",
534 "fh2Electrons_invmassVSpt_withRICH_fromTarget_combBack;pt "
535 "[GeV/c];invmass [GeV]",
536 500, 0., 5., 5000, 0., 5.);
538 new TH2D(
"fh2Electrons_invmassVSpt_withRICH_fromTarget_allSameG",
539 "fh2Electrons_invmassVSpt_withRICH_fromTarget_allSameG;pt "
540 "[GeV/c];invmass [GeV]",
541 500, 0., 5., 5000, 0., 5.);
589 Fatal(
"CbmAnaConversionPhotons2::Exec",
"No PrimaryVertex array!");
610 for (
int iG = 0; iG < nofGlobalTracks; iG++) {
612 if (NULL == gTrack)
continue;
615 if (stsInd < 0)
continue;
618 if (stsTrack == NULL)
continue;
621 if (stsMatch == NULL)
continue;
624 if (stsMcTrackId < 0)
continue;
626 if (mcTrack1 == NULL)
continue;
633 TVector3 refittedMomentum;
635 vector<CbmStsTrack> stsTracks;
637 stsTracks[0] = *stsTrack;
638 vector<CbmL1PFFitter::PFFieldRegion> vField;
639 vector<float> chiPrim;
643 const FairTrackParam* vtxTrack = stsTracks[0].GetParamFirst();
644 vtxTrack->Momentum(refittedMomentum);
645 float result_chi = chiPrim[0];
650 vector<CbmStsTrack> stsTracks_electron;
651 stsTracks_electron.resize(1);
652 stsTracks_electron[0] = *stsTrack;
653 vector<CbmL1PFFitter::PFFieldRegion> vField_electron;
654 vector<float> chiPrim_electron;
655 vector<int> pidHypo_electron;
656 pidHypo_electron.push_back(11);
657 fPFFitter_electron.
Fit(stsTracks_electron, pidHypo_electron);
660 TVector3 refittedMomentum_electron;
661 const FairTrackParam* vtxTrack_electron = stsTracks_electron[0].GetParamFirst();
662 vtxTrack_electron->Momentum(refittedMomentum_electron);
663 float result_chi_electron = chiPrim_electron[0];
665 refittedMomentum = refittedMomentum_electron;
666 result_chi = result_chi_electron;
678 if (richInd < 0)
continue;
680 if (richMatch == NULL)
continue;
682 if (richMcTrackId < 0)
continue;
684 if (mcTrack2 == NULL)
continue;