69 : FairTask(
"CbmTofGeometryQa")
80 , fMCEventHeader(NULL)
81 , fTofPointsColl(NULL)
83 , fRealTofPointsColl(NULL)
84 , fRealTofMatchColl(NULL)
85 , fbRealPointAvail(kFALSE)
86 , fsHistoOutFilename(
"./tofQa.hst.root")
89 , fvhTrackAllStartZCent()
91 fvhTrackSecStartZCent()
93 fvhTrackAllStartXZCent()
111 fhTrackMapAngPrimAll(NULL)
113 fhTrackMapAngPrimSts(NULL)
115 fhTrackMapAngPrimRich(NULL)
117 fhTrackMapAngPrimMuch(NULL)
119 fhTrackMapAngPrimTrd(NULL)
121 fhTrackMapAngPrimTof(NULL)
126 , fhPointMapAng(NULL)
127 , fhPointMapSph(NULL)
128 , fhRealPointMapXY(NULL)
129 , fhRealPointMapXZ(NULL)
130 , fhRealPointMapYZ(NULL)
131 , fhRealPointMapAng(NULL)
132 , fhRealPointMapSph(NULL)
133 , fhPointMapAngWithSts(NULL)
134 , fhPointMapAngWithRich(NULL)
135 , fhPointMapAngWithMuch(NULL)
136 , fhPointMapAngWithTrd(NULL)
138 , fhPointSphAprRadiusErrMapXY(NULL)
139 , fhPointSphAprRadiusErrMapXZ(NULL)
140 , fhPointSphAprRadiusErrMapYZ(NULL)
141 , fhPointSphAprRadiusErrMapAng(NULL)
142 , fhPointSphAprRadiusErrMapSph(NULL)
143 , fhPointSphAprZposErrMapXY(NULL)
144 , fhPointSphAprZposErrMapXZ(NULL)
145 , fhPointSphAprZposErrMapYZ(NULL)
146 , fhPointSphAprZposErrMapAng(NULL)
147 , fhPointSphAprZposErrMapSph(NULL)
151 , fvhPtmRapSecGenTrk()
152 , fvhPtmRapSecStsPnt()
153 , fvhPtmRapSecTofPnt()
160 , fvhPtmRapGenTrkTofPnt()
161 , fvhPlabGenTrkTofPnt()
162 , fvhPlabStsTrkTofPnt()
163 , fvhPtmRapSecGenTrkTofPnt()
164 , fvhPlabSecGenTrkTofPnt()
165 , fvhPlabSecStsTrkTofPnt()
167 cout <<
"CbmTofGeometryQa: Task started " << endl;
173 : FairTask(name, verbose)
184 , fMCEventHeader(NULL)
185 , fTofPointsColl(NULL)
186 , fMcTracksColl(NULL)
187 , fRealTofPointsColl(NULL)
188 , fRealTofMatchColl(NULL)
189 , fbRealPointAvail(kFALSE)
190 , fsHistoOutFilename(
"./tofQa.hst.root")
192 , fbCentDepOn(kFALSE)
193 , fvhTrackAllStartZCent()
195 fvhTrackSecStartZCent()
197 fvhTrackAllStartXZCent()
199 fvhTofPntAllAngCent()
215 fhTrackMapAngPrimAll(NULL)
217 fhTrackMapAngPrimSts(NULL)
219 fhTrackMapAngPrimRich(NULL)
221 fhTrackMapAngPrimMuch(NULL)
223 fhTrackMapAngPrimTrd(NULL)
225 fhTrackMapAngPrimTof(NULL)
230 , fhPointMapAng(NULL)
231 , fhPointMapSph(NULL)
232 , fhRealPointMapXY(NULL)
233 , fhRealPointMapXZ(NULL)
234 , fhRealPointMapYZ(NULL)
235 , fhRealPointMapAng(NULL)
236 , fhRealPointMapSph(NULL)
237 , fhPointMapAngWithSts(NULL)
238 , fhPointMapAngWithRich(NULL)
239 , fhPointMapAngWithMuch(NULL)
240 , fhPointMapAngWithTrd(NULL)
242 , fhPointSphAprRadiusErrMapXY(NULL)
243 , fhPointSphAprRadiusErrMapXZ(NULL)
244 , fhPointSphAprRadiusErrMapYZ(NULL)
245 , fhPointSphAprRadiusErrMapAng(NULL)
246 , fhPointSphAprRadiusErrMapSph(NULL)
247 , fhPointSphAprZposErrMapXY(NULL)
248 , fhPointSphAprZposErrMapXZ(NULL)
249 , fhPointSphAprZposErrMapYZ(NULL)
250 , fhPointSphAprZposErrMapAng(NULL)
251 , fhPointSphAprZposErrMapSph(NULL)
255 , fvhPtmRapSecGenTrk()
256 , fvhPtmRapSecStsPnt()
257 , fvhPtmRapSecTofPnt()
264 , fvhPtmRapGenTrkTofPnt()
265 , fvhPlabGenTrkTofPnt()
266 , fvhPlabStsTrkTofPnt()
267 , fvhPtmRapSecGenTrkTofPnt()
268 , fvhPlabSecGenTrkTofPnt()
269 , fvhPlabSecStsTrkTofPnt()
446 TDirectory* oldir = gDirectory;
463 Double_t xrange = 750.;
464 Double_t yrange = 500.;
469 Int_t iNbBinThetaX = 1200;
470 Double_t dThetaXMin = -60.0;
471 Double_t dThetaXMax = 60.0;
472 Int_t iNbBinThetaY = 900;
473 Double_t dThetaYMin = -45.0;
474 Double_t dThetaYMax = 45.0;
476 Int_t iNbBinTheta = 180;
477 Double_t dThetaMin = 0;
478 Double_t dThetaMax = TMath::Pi() * 90 / 180;
479 Int_t iNbBinPhi = 180;
480 Double_t dPhiMin = -TMath::Pi();
481 Double_t dPhiMax = TMath::Pi();
485 Int_t iNbBinsStartZ = 1250;
486 Double_t dMinStartZ = -50.0;
487 Double_t dMaxStartZ = 1200.0;
488 Int_t iNbBinsStartXY = 1200;
489 Double_t dMinStartXY = -600.0;
490 Double_t dMaxStartXY = 600.0;
491 Int_t iNbBinsCentr = 16;
492 Double_t dNbMinCentr = 0.0;
493 Double_t dNbMaxCentr = 16.0;
503 for (Int_t iPartIdx = 0; iPartIdx <
kiNbPart; iPartIdx++) {
507 new TH2D(Form(
"TofTests_TrackAllStartZCent_%s",
ksPartTag[iPartIdx].Data()),
508 Form(
"Centrality vs Start Z distribution for MC tracks w/ TOF Pnt, %s, "
509 "all tracks; Start Z [cm]; B [fm]; # []",
511 iNbBinsStartZ, dMinStartZ, dMaxStartZ, iNbBinsCentr, dNbMinCentr, dNbMaxCentr);
513 new TH2D(Form(
"TofTests_TrackSecStartZCent_%s",
ksPartTag[iPartIdx].Data()),
514 Form(
"Centrality vs Start Z distribution for MC tracks w/ TOF Pnt, %s, "
515 "secondary tracks; Start Z [cm]; B [fm]; # []",
517 iNbBinsStartZ, dMinStartZ, dMaxStartZ, iNbBinsCentr, dNbMinCentr, dNbMaxCentr);
520 Form(
"Centrality vs Start Z distribution for MC tracks w/ TOF Pnt, "
521 "%s, all tracks; Start X [cm]; Start Z [cm]; B [fm];",
523 iNbBinsStartXY / 2, dMinStartXY, dMaxStartXY, iNbBinsStartZ / 2,
524 dMinStartZ, dMaxStartZ, iNbBinsCentr, dNbMinCentr, dNbMaxCentr);
526 Form(
"Centrality vs Angular position of TOF Pnt, %s, all tracks; "
527 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; B [fm];",
529 iNbBinThetaX / 2, dThetaXMin, dThetaXMax, iNbBinThetaY / 2, dThetaYMin,
530 dThetaYMax, iNbBinsCentr, dNbMinCentr, dNbMaxCentr);
533 new TH2D(Form(
"TofTests_TrackAllStartXZ_%s",
ksPartTag[iPartIdx].Data()),
534 Form(
"Start X vs Z distribution for MC tracks w/ TOF Pnt, %s, "
535 "all tracks; Start Z [cm]; Start X [cm]; # []",
537 iNbBinsStartZ / 2, dMinStartZ, dMaxStartZ, iNbBinsStartXY, dMinStartXY, dMaxStartXY);
539 new TH2D(Form(
"TofTests_TrackAllStartYZ_%s",
ksPartTag[iPartIdx].Data()),
540 Form(
"Start Y vs Z distribution for MC tracks w/ TOF Pnt, %s, "
541 "all tracks; Start Z [cm]; Start Y [cm]; # []",
543 iNbBinsStartZ / 2, dMinStartZ, dMaxStartZ, iNbBinsStartXY, dMinStartXY, dMaxStartXY);
548 new TH2D(
"TofTests_TracksMapXY",
"Position of the MC Tracks assuming along Z axis; X[cm]; Y[cm]; # [Tracks]", nbinx,
549 -xrange, xrange, nbiny, -yrange, yrange);
551 new TH2D(
"TofTests_TracksMapXZ",
"Position of the MC Tracks assuming along Z axis; X[cm]; Z[cm]; # [Tracks]", nbinx,
552 -xrange, xrange, nbinz, zmin, zmax);
554 new TH2D(
"TofTests_TracksMapYZ",
"Position of the MC Tracks assuming along Z axis; Y[cm]; Z[cm]; # [Tracks]", nbiny,
555 -yrange, yrange, nbinz, zmin, zmax);
557 "Position of the MC Tracks assuming from origin; "
558 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
559 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
561 "Position of the MC Tracks assuming from origin; "
562 "#theta[rad.]; #phi[rad.]; # [Tracks]",
563 iNbBinTheta, dThetaMin, dThetaMax, iNbBinPhi, dPhiMin, dPhiMax);
566 "Position of the MC Tracks assuming from origin, primary only; "
567 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
568 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
570 "Position of the MC Tracks w/ STS Pnts assuming from origin, "
571 "primary only; #theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
572 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
574 "Position of the MC Tracks w/ RICH Pnts assuming from origin, "
575 "primary only; #theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
576 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
578 "Position of the MC Tracks w/ MUCH Pnts assuming from origin, "
579 "primary only; #theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
580 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
582 "Position of the MC Tracks w/ TRD Pnts assuming from origin, "
583 "primary only; #theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
584 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
586 "Position of the MC Tracks w/ TOF Pnts assuming from origin, "
587 "primary only; #theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Tracks]",
588 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
590 fhPointMapXY =
new TH2D(
"TofTests_PointsMapXY",
"Position of the Tof Points; X[cm]; Y[cm]; # [Points]", nbinx,
591 -xrange, xrange, nbiny, -yrange, yrange);
592 fhPointMapXZ =
new TH2D(
"TofTests_PointsMapXZ",
"Position of the Tof Points; X[cm]; Z[cm]; # [Points]", nbinx,
593 -xrange, xrange, nbinz, zmin, zmax);
594 fhPointMapYZ =
new TH2D(
"TofTests_PointsMapYZ",
"Position of the Tof Points; Y[cm]; Z[cm]; # [Points]", nbiny,
595 -yrange, yrange, nbinz, zmin, zmax);
597 "Position of the Tof Points; #theta_{x}[Deg.]; "
598 "#theta_{y}[Deg.]; # [Points]",
599 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
600 fhPointMapSph =
new TH2D(
"TofTests_PointsMapSph",
"Position of the Tof Points; #theta[rad.]; #phi[rad.]; # [Points]",
601 iNbBinTheta, dThetaMin, dThetaMax, iNbBinPhi, dPhiMin, dPhiMax);
604 new TH2D(
"TofTests_RealPointsMapXY",
"Position of the Tof Points (mean o/ gaps); X[cm]; Y[cm]; # [Points]", nbinx,
605 -xrange, xrange, nbiny, -yrange, yrange);
607 new TH2D(
"TofTests_RealPointsMapXZ",
"Position of the Tof Points (mean o/ gaps); X[cm]; Z[cm]; # [Points]", nbinx,
608 -xrange, xrange, nbinz, zmin, zmax);
610 new TH2D(
"TofTests_RealPointsMapYZ",
"Position of the Tof Points (mean o/ gaps); Y[cm]; Z[cm]; # [Points]", nbiny,
611 -yrange, yrange, nbinz, zmin, zmax);
613 "Position of the Tof Points (mean o/ gaps); "
614 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Points]",
615 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
617 "Position of the Tof Points (mean o/ gaps); "
618 "#theta[rad.]; #phi[rad.]; # [Points]",
619 iNbBinTheta, dThetaMin, dThetaMax, iNbBinPhi, dPhiMin, dPhiMax);
622 "Position of the Tof Points with enough STS points in Track; "
623 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Points]",
624 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
626 "Position of the Tof Points with RICH points in Track; "
627 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Points]",
628 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
630 "Position of the Tof Points with enough MUCH points in Track; "
631 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Points]",
632 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
634 "Position of the Tof Points with TRD points in Track; "
635 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; # [Points]",
636 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
642 "Radius error (distance from target) in spherical approx. "
643 "(mean o/ gaps); X[cm]; Y[cm]; Rp - Rwall [cm]",
644 nbinx, -xrange, xrange, nbiny, -yrange, yrange);
646 "Radius error (distance from target) in spherical approx. "
647 "(mean o/ gaps); X[cm]; Z[cm]; Rp - Rwall [cm]",
648 nbinx, -xrange, xrange, nbinz, zmin, zmax);
650 "Radius error (distance from target) in spherical approx. "
651 "(mean o/ gaps); Y[cm]; Z[cm]; Rp - Rwall [cm]",
652 nbiny, -yrange, yrange, nbinz, zmin, zmax);
654 new TProfile2D(
"TofTests_PointSphAprRadiusErrMapAng",
655 "Radius error (distance from target) in spherical approx. (mean o/ "
656 "gaps); #theta_{x}[Deg.]; #theta_{y}[Deg.]; Rp - Rwall [cm]",
657 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
659 "Radius error (distance from target) in spherical approx. (mean o/ "
660 "gaps); #theta[rad.]; #phi[rad.]; Rp - Rwall [cm]",
661 iNbBinTheta, dThetaMin, dThetaMax, iNbBinPhi, dPhiMin, dPhiMax);
664 "Z Position error of the Tof Points in spherical approx. "
665 "(mean o/ gaps); X[cm]; Y[cm]; Zp - Zsph(X,Y) [cm]",
666 nbinx, -xrange, xrange, nbiny, -yrange, yrange);
668 "Position of the Tof Points in spherical approx. (mean o/ "
669 "gaps); X[cm]; Z[cm]; Zp - Zsph(X,Y) [cm]",
670 nbinx, -xrange, xrange, nbinz, zmin, zmax);
672 "Position of the Tof Points in spherical approx. (mean o/ "
673 "gaps); Y[cm]; Z[cm]; Zp - Zsph(X,Y) [cm]",
674 nbiny, -yrange, yrange, nbinz, zmin, zmax);
676 new TProfile2D(
"TofTests_PointSphAprZposErrMapAng",
677 "Position of the Tof Points in spherical approx. (mean o/ gaps); "
678 "#theta_{x}[Deg.]; #theta_{y}[Deg.]; Zp - Zsph(X,Y) [cm]",
679 iNbBinThetaX, dThetaXMin, dThetaXMax, iNbBinThetaY, dThetaYMin, dThetaYMax);
681 "Position of the Tof Points in spherical approx. (mean o/ "
682 "gaps); #theta[rad.]; #phi[rad.]; Zp - Zsph(X,Y) [cm]",
683 iNbBinTheta, dThetaMin, dThetaMax, iNbBinPhi, dPhiMin, dPhiMax);
689 Double_t dMinY = -1.;
691 Int_t iNbBNinsPtm = 30;
692 Double_t dMinPtm = 0.0;
693 Double_t dMaxPtm = 2.5;
701 Int_t iNbBinsPlab = 100;
702 Double_t dMinPlab = 0.0;
703 Double_t dMaxPlab = 10.0;
717 for (Int_t iPartIdx = 0; iPartIdx <
kiNbPart; iPartIdx++) {
720 Form(
"P_{t}/M vs y distribution for MC tracks, %s, primary "
721 "tracks; y; P_{t}/M; # []",
723 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
725 Form(
"P_{t}/M vs y distribution from MC Track with STS points, "
726 "%s, primary tracks; y; P_{t}/M; # []",
728 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
730 Form(
"P_{t}/M vs y distribution from MC Track for TOF points, "
731 "%s, primary tracks; y; P_{t}/M; # []",
733 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
736 Form(
"P_{lab} distribution for MC tracks, %s, primary tracks; "
737 "P_{lab} [GeV/c]; # []",
739 iNbBinsPlab, dMinPlab, dMaxPlab);
741 Form(
"P_{lab} distribution from MC Track with STS points, %s, "
742 "primary tracks; P_{lab} [GeV/c]; # []",
744 iNbBinsPlab, dMinPlab, dMaxPlab);
746 Form(
"P_{lab} distribution from MC Track for TOF points, %s, "
747 "primary tracks; P_{lab} [GeV/c]; # []",
749 iNbBinsPlab, dMinPlab, dMaxPlab);
754 Form(
"P_{t}/M vs y distribution for MC tracks with TOF Point(s), %s, "
755 "primary tracks; y; P_{t}/M; # []",
757 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
760 Form(
"P_{lab} distribution for MC tracks with TOF Point(s), %s, "
761 "primary tracks; P_{lab} [GeV/c]; # []",
763 iNbBinsPlab, dMinPlab, dMaxPlab);
765 Form(
"P_{lab} distribution for MC tracks with STS and TOF "
766 "Point(s), %s, primary tracks; P_{lab} [GeV/c]; # []",
768 iNbBinsPlab, dMinPlab, dMaxPlab);
773 Form(
"P_{t}/M vs y distribution for MC tracks, %s, secondary "
774 "tracks; y; P_{t}/M; # []",
776 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
778 Form(
"P_{t}/M vs y distribution from MC Track with STS points, "
779 "%s, secondary tracks; y; P_{t}/M; # []",
781 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
783 Form(
"P_{t}/M vs y distribution from MC Track for TOF points, "
784 "%s, secondary tracks; y; P_{t}/M; # []",
786 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
789 Form(
"P_{lab} distribution for MC tracks, %s, secondary tracks; "
790 "P_{lab} [GeV/c]; # []",
792 iNbBinsPlab, dMinPlab, dMaxPlab);
794 Form(
"P_{lab} distribution from MC Track with STS points, %s, "
795 "secondary tracks; P_{lab} [GeV/c]; # []",
797 iNbBinsPlab, dMinPlab, dMaxPlab);
799 Form(
"P_{lab} distribution from MC Track for TOF points, %s, "
800 "secondary tracks; P_{lab} [GeV/c]; # []",
802 iNbBinsPlab, dMinPlab, dMaxPlab);
807 Form(
"P_{t}/M vs y distribution for MC tracks with TOF Point(s), %s, "
808 "secondary tracks; y; P_{t}/M; # []",
810 iNbBinsY, dMinY, dMaxY, iNbBNinsPtm, dMinPtm, dMaxPtm);
813 Form(
"P_{lab} distribution for MC tracks with TOF Point(s), %s, "
814 "secondary tracks; P_{lab} [GeV/c]; # []",
816 iNbBinsPlab, dMinPlab, dMaxPlab);
819 new TH1D(Form(
"TofTests_PlabSecStsTrkTofPnt_%s",
ksPartTag[iPartIdx].Data()),
820 Form(
"P_{lab} distribution for MC tracks with STS and TOF Point(s), %s, "
821 "secondary tracks; P_{lab} [GeV/c]; # []",
823 iNbBinsPlab, dMinPlab, dMaxPlab);
826 gDirectory->cd(oldir->GetPath());
838 Int_t iNbTracks, iNbTofPts, iNbTofRealPts;
847 Int_t iNbTofTracks = 0;
848 Int_t iNbTofTracksPrim = 0;
849 std::vector<Bool_t> vbTrackHasHit(iNbTracks, kFALSE);
852 for (Int_t iTrkInd = 0; iTrkInd < iNbTracks; iTrkInd++) {
881 if (-1 == pMcTrk->
GetMotherId()) { iNbTofTracksPrim++; }
896 if (0 != pMcTrk->
GetPz() && ((0 != pMcTrk->
GetPx()) || (0 != pMcTrk->
GetPy()))) {
897 Double_t dThetaX = TMath::ATan2(pMcTrk->
GetPx(), pMcTrk->
GetPz()) * 180.0 / TMath::Pi();
898 Double_t dThetaY = TMath::ATan2(pMcTrk->
GetPy(), pMcTrk->
GetPz()) * 180.0 / TMath::Pi();
919 if (0 != pMcTrk->
GetPz() && 0 != pMcTrk->
GetPx())
921 TMath::ATan2(pMcTrk->
GetPy(), pMcTrk->
GetPx()));
926 for (Int_t iPart = 0; iPart <
kiNbPart; iPart++)
931 if (-1 == iPartIdx) iPartIdx = 0;
991 for (Int_t iPntInd = 0; iPntInd < iNbTofPts; iPntInd++) {
999 pTofPoint->Position(vPntPos);
1001 Double_t dX = vPntPos.X();
1002 Double_t dY = vPntPos.Y();
1003 Double_t dZ = vPntPos.Z();
1018 Double_t dThetaX = TMath::ATan2(dX, dZ) * 180.0 / TMath::Pi();
1019 Double_t dThetaY = TMath::ATan2(dY, dZ) * 180.0 / TMath::Pi();
1033 Double_t dTheta = TMath::ATan2(TMath::Sqrt(dX * dX + dY * dY), dZ);
1034 Double_t dPhi = TMath::ATan2(dY, dX);
1041 Double_t dRadiusError = TMath::Sqrt(dX * dX + dY * dY + dZ * dZ) - dSphereRadius;
1049 dZ - TMath::Sqrt(dX * dX + dY * dY) / TMath::Tan(TMath::ASin(TMath::Sqrt(dX * dX + dY * dY) / dSphereRadius));
1059 Int_t iPartIdx = -1;
1060 for (Int_t iPart = 0; iPart <
kiNbPart; iPart++)
1065 if (-1 == iPartIdx) iPartIdx = 0;
1088 for (Int_t iPntInd = 0; iPntInd < iNbTofRealPts; iPntInd++) {
1100 pTofPoint->Position(vPntPos);
1102 Double_t dX = vPntPos.X();
1103 Double_t dY = vPntPos.Y();
1104 Double_t dZ = vPntPos.Z();
1110 Double_t dThetaX = TMath::ATan2(dX, dZ) * 180.0 / TMath::Pi();
1111 Double_t dThetaY = TMath::ATan2(dY, dZ) * 180.0 / TMath::Pi();
1114 Double_t dTheta = TMath::ATan2(TMath::Sqrt(dX * dX + dY * dY),
1116 Double_t dPhi = TMath::ATan2(dY, dX);