10#include <analysis/variables/V0DaughterTrackVariables.h>
13#include <analysis/VariableManager/Manager.h>
15#include <analysis/dataobjects/Particle.h>
16#include <analysis/variables/TrackVariables.h>
19#include <framework/dataobjects/Helix.h>
22#include <mdst/dataobjects/Track.h>
23#include <mdst/dataobjects/MCParticle.h>
24#include <mdst/dataobjects/TrackFitResult.h>
25#include <mdst/dataobjects/HitPatternCDC.h>
26#include <mdst/dataobjects/HitPatternVXD.h>
29#include <framework/logging/Logger.h>
45 double getV0DaughterTrackDetNHits(
const Particle* particle,
const double daughterID,
const Const::EDetector& det)
47 auto daughter = particle->getDaughter(daughterID);
48 return trackNHits(daughter, det);
51 double v0DaughterTrackNRemovedHits(
const Particle* part,
const std::vector<double>& daughterID)
54 if (part->getParticleSource() != Particle::EParticleSourceObject::c_V0)
56 auto daughter = part->getDaughter(daughterID[0]);
57 const Track* track = daughter->getTrack();
59 const TrackFitResult* trackFit = track->getTrackFitResultWithClosestMass(Const::ChargedStable(abs(
60 daughter->getPDGCode())));
62 double nHitsBeforeRemoval = trackFit->getHitPatternCDC().getNHits()
63 + trackFit->getHitPatternVXD().getNSVDHits()
64 + trackFit->getHitPatternVXD().getNPXDHits();
65 double nHitsAfterRemoval = trackNVXDHits(daughter) + trackNCDCHits(daughter);
66 return nHitsBeforeRemoval - nHitsAfterRemoval;
69 double v0DaughterD0(
const Particle* particle,
const std::vector<double>& daughterID)
74 ROOT::Math::XYZVector v0Vertex = particle->getVertex();
76 const Particle* daug = particle->getDaughter(daughterID[0]);
78 const TrackFitResult* trackFit = daug->getTrackFitResult();
81 UncertainHelix helix = trackFit->getUncertainHelix();
82 helix.passiveMoveBy(v0Vertex);
87 double v0DaughterD0Diff(
const Particle* particle)
89 return v0DaughterD0(particle, {0}) - v0DaughterD0(particle, {1});
92 double v0DaughterZ0(
const Particle* particle,
const std::vector<double>& daughterID)
97 ROOT::Math::XYZVector v0Vertex = particle->getVertex();
99 const Particle* daug = particle->getDaughter(daughterID[0]);
101 const TrackFitResult* trackFit = daug->getTrackFitResult();
104 UncertainHelix helix = trackFit->getUncertainHelix();
105 helix.passiveMoveBy(v0Vertex);
107 return helix.getZ0();
110 double v0DaughterZ0Diff(
const Particle* particle)
112 return v0DaughterZ0(particle, {0}) - v0DaughterZ0(particle, {1});
117 double getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(
const Particle* particle,
const double daughterID,
122 const int dID = int(std::lround(daughterID));
125 const MCParticle* mcparticle_v0 = particle->getMCParticle();
130 const MCParticle* mcparticle = particle->getDaughter(dID)->getMCParticle();
133 const TrackFitResult* trackFit = particle->getDaughter(dID)->getTrackFitResult();
137 const ROOT::Math::XYZVector mcProdVertex = mcparticle->getVertex();
138 const ROOT::Math::XYZVector mcMomentum = mcparticle->getMomentum();
139 const double mcParticleCharge = mcparticle->getCharge();
141 Helix mcHelix = Helix(mcProdVertex, mcMomentum, mcParticleCharge, BzAtProdVertex);
142 mcHelix.passiveMoveBy(mcProdVertex);
143 const std::vector<double> mcHelixPars = { mcHelix.getD0(), mcHelix.getPhi0(), mcHelix.getOmega(),
144 mcHelix.getZ0(), mcHelix.getTanLambda()
148 UncertainHelix measHelix = trackFit->getUncertainHelix();
149 measHelix.passiveMoveBy(mcProdVertex);
150 const TMatrixDSym measCovariance = measHelix.getCovariance();
151 const std::vector<double> measHelixPars = {measHelix.getD0(), measHelix.getPhi0(), measHelix.getOmega(),
152 measHelix.getZ0(), measHelix.getTanLambda()
154 const std::vector<double> measErrSquare = {measCovariance[0][0], measCovariance[1][1], measCovariance[2][2],
155 measCovariance[3][3], measCovariance[4][4]
158 if (measErrSquare.at(tauIndex) > 0)
159 return (mcHelixPars.at(tauIndex) - measHelixPars.at(tauIndex)) / std::sqrt(measErrSquare.at(tauIndex));
164 double v0DaughterHelixWithTrueVertexAsPivotD0Pull(
const Particle* part,
const std::vector<double>& daughterID)
166 return getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(part, daughterID[0], 0);
169 double v0DaughterHelixWithTrueVertexAsPivotPhi0Pull(
const Particle* part,
const std::vector<double>& daughterID)
171 return getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(part, daughterID[0], 1);
174 double v0DaughterHelixWithTrueVertexAsPivotOmegaPull(
const Particle* part,
const std::vector<double>& daughterID)
176 return getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(part, daughterID[0], 2);
179 double v0DaughterHelixWithTrueVertexAsPivotZ0Pull(
const Particle* part,
const std::vector<double>& daughterID)
181 return getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(part, daughterID[0], 3);
184 double v0DaughterHelixWithTrueVertexAsPivotTanLambdaPull(
const Particle* part,
const std::vector<double>& daughterID)
186 return getHelixParameterPullOfV0DaughterWithTrueVertexAsPivotAtIndex(part, daughterID[0], 4);
189 double v0DaughterTrackParam5AtIPPerigee(
const Particle* part,
const std::vector<double>& params)
191 auto daughter = part->getDaughter(params[0]);
195 auto trackFit = daughter->getTrackFitResult();
200 const int paramID = int(std::lround(params[1]));
201 if (not(0 <= paramID && paramID < 5))
204 std::vector<float> tau = trackFit->getTau();
208 double v0DaughterTrackParamCov5x5AtIPPerigee(
const Particle* part,
const std::vector<double>& params)
210 auto daughter = part->getDaughter(params[0]);
214 auto trackFit = daughter->getTrackFitResult();
219 const int paramID = int(std::lround(params[1]));
220 if (not(0 <= paramID && paramID < 15))
223 std::vector<float> cov = trackFit->getCov();
227 int convertedPhotonErrorChecks(
const Particle* gamma,
const std::vector<double>& daughterIndices)
230 if (daughterIndices.size() != 2) {
231 B2ERROR(
"Invalid number of daughter indices. Please specify exactly two valid daughter indices.");
236 int daughterIndex1 = int(daughterIndices[0]);
237 int daughterIndex2 = int(daughterIndices[1]);
238 if (
int(gamma->getNDaughters()) <= std::max(daughterIndex1, daughterIndex2)) {
239 B2ERROR(
"Invalid daughter indices provided. Particle does not have that many daughters.");
244 if (!gamma->getDaughter(daughterIndex1)->getTrack()) {
245 B2ERROR(
"There is no track associated with daughter index " << daughterIndex1);
248 if (!gamma->getDaughter(daughterIndex2)->getTrack()) {
249 B2ERROR(
"There is no track associated with daughter index " << daughterIndex2);
254 if (fabs(gamma->getDaughter(daughterIndex1)->getPDGCode()) != 11) {
255 B2INFO(
"The first track provided has not been reconstructed as an electron/positron. It has PDG code " << gamma->getDaughter(
256 daughterIndex1)->getPDGCode() <<
". However, this is still fully admissible.");
258 if (fabs(gamma->getDaughter(daughterIndex2)->getPDGCode()) != 11) {
259 B2INFO(
"The second track provided has not been reconstructed as an electron/positron. It has PDG code " << gamma->getDaughter(
260 daughterIndex1)->getPDGCode() <<
".However, this is still fully admissible.");
267 int convertedPhotonLoadHelixParams(
const Particle* gamma,
int daughterIndex1,
int daughterIndex2,
double& Phi01,
double& D01,
268 double& Omega1,
double& Z01,
double& TanLambda1,
double& Phi02,
double& D02,
double& Omega2,
double& Z02,
273 const TrackFitResult* e1TrackFit = gamma->getDaughter(daughterIndex1)->getTrackFitResult();
274 if (!e1TrackFit)
return -1;
275 Helix e1Helix = e1TrackFit->getHelix();
277 Phi01 = e1Helix.getPhi0();
278 D01 = e1Helix.getD0() ;
279 Omega1 = e1Helix.getOmega();
280 Z01 = e1Helix.getZ0();
281 TanLambda1 = e1Helix.getTanLambda();
284 const TrackFitResult* e2TrackFit = gamma->getDaughter(daughterIndex2)->getTrackFitResult();
285 if (!e2TrackFit)
return -2;
286 Helix e2Helix = e2TrackFit->getHelix();
288 Phi02 = e2Helix.getPhi0();
289 D02 = e2Helix.getD0() ;
290 Omega2 = e2Helix.getOmega();
291 Z02 = e2Helix.getZ0();
292 TanLambda2 = e2Helix.getTanLambda();
295 if (Omega1 == 0) {
return -1;}
296 else if (Omega2 == 0) {
return -2;}
301 double convertedPhotonInvariantMass(
const Particle* gamma,
const std::vector<double>& daughterIndices)
304 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
308 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
309 int daughterIndex1 = int(daughterIndices[0]);
310 int daughterIndex2 = int(daughterIndices[1]);
311 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
312 Omega2, Z02, TanLambda2);
317 double sinlam1 = TanLambda1 / sqrt(1 + (TanLambda1 * TanLambda1));
318 double coslam1 = 1 / sqrt(1 + (TanLambda1 * TanLambda1));
319 double sinlam2 = TanLambda2 / sqrt(1 + (TanLambda2 * TanLambda2));
320 double coslam2 = 1 / sqrt(1 + (TanLambda2 * TanLambda2));
324 double p1 = gamma->getDaughter(daughterIndex1)->getMomentumMagnitude();
325 double pt1 = p1 * coslam1, pz1 = p1 * sinlam1;
328 double p2 = gamma->getDaughter(daughterIndex2)->getMomentumMagnitude();
329 double pt2 = p2 * coslam2, pz2 = p2 * sinlam2;
333 double vtxMass = sqrt(pow(e1 + e2, 2.0) - pow(pt1 + pt2, 2.0) - pow(pz1 + pz2, 2.0));
337 double convertedPhotonDelTanLambda(
const Particle* gamma,
const std::vector<double>& daughterIndices)
340 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
344 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
345 int daughterIndex1 = int(daughterIndices[0]);
346 int daughterIndex2 = int(daughterIndices[1]);
347 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
348 Omega2, Z02, TanLambda2);
352 return (TanLambda2 - TanLambda1);
355 double convertedPhotonDelR(
const Particle* gamma,
const std::vector<double>& daughterIndices)
358 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
362 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
363 int daughterIndex1 = int(daughterIndices[0]);
364 int daughterIndex2 = int(daughterIndices[1]);
365 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
366 Omega2, Z02, TanLambda2);
368 B2ERROR(
"First track provided has curvature zero. Calculation of convertedPhotonDelR failed.");
372 B2ERROR(
"Second track provided has curvature zero. Calculation of convertedPhotonDelR failed.");
377 double radius1 = 1 / Omega1;
378 double radius2 = 1 / Omega2;
380 ROOT::Math::XYVector center1((radius1 + D01) * sin(Phi01), -1 * (radius1 + D01) * cos(Phi01));
381 ROOT::Math::XYVector center2((radius2 + D02) * sin(Phi02), -1 * (radius2 + D02) * cos(Phi02));
382 ROOT::Math::XYVector cenDiff = center1 - center2;
384 double delR = fabs(radius1) + fabs(radius2) - cenDiff.R();
388 std::pair<double, double> convertedPhotonZ1Z2(
const Particle* gamma,
const std::vector<double>& daughterIndices)
391 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
395 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
396 int daughterIndex1 = int(daughterIndices[0]);
397 int daughterIndex2 = int(daughterIndices[1]);
398 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
399 Omega2, Z02, TanLambda2);
401 B2ERROR(
"First track provided has curvature zero. Calculation of convertedPhotonZ1Z2 failed.");
405 B2ERROR(
"Second track provided has curvature zero. Calculation of convertedPhotonZ1Z2 failed.");
411 double radius1 = 1 / Omega1;
412 double radius2 = 1 / Omega2;
414 ROOT::Math::XYVector center1((radius1 + D01) * sin(Phi01), -1 * (radius1 + D01) * cos(Phi01));
415 ROOT::Math::XYVector center2((radius2 + D02) * sin(Phi02), -1 * (radius2 + D02) * cos(Phi02));
417 ROOT::Math::XYVector n1 = center1 - center2; n1 = n1.Unit();
418 ROOT::Math::XYVector n2 = -1 * n1;
419 n1 = copysign(1.0, Omega1) * n1;
420 n2 = copysign(1.0, Omega2) * n2;
423 double phiN1 = atan2(n1.X(), -n1.Y());
424 double phiN2 = atan2(n2.X(), -n2.Y());
425 double Phi01Intersect = phiN1 - Phi01;
426 double Phi02Intersect = phiN2 - Phi02;
428 double z1 = Z01 - (radius1 * TanLambda1 * Phi01Intersect);
429 double z2 = Z02 - (radius2 * TanLambda2 * Phi02Intersect);
430 std::pair<double, double> z1z2(z1, z2);
434 double convertedPhotonDelZ(
const Particle* gamma,
const std::vector<double>& daughterIndices)
436 std::pair<double, double> z1z2 = convertedPhotonZ1Z2(gamma, daughterIndices);
437 double z1 = z1z2.first;
double z2 = z1z2.second;
441 double convertedPhotonZ(
const Particle* gamma,
const std::vector<double>& daughterIndices)
443 std::pair<double, double> z1z2 = convertedPhotonZ1Z2(gamma, daughterIndices);
444 double z1 = z1z2.first;
double z2 = z1z2.second;
445 return (z1 + z2) * 0.5;
448 ROOT::Math::XYVector convertedPhotonXY(
const Particle* gamma,
const std::vector<double>& daughterIndices)
451 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
455 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
456 int daughterIndex1 = int(daughterIndices[0]);
457 int daughterIndex2 = int(daughterIndices[1]);
458 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
459 Omega2, Z02, TanLambda2);
461 B2ERROR(
"First track provided has curvature zero. Calculation of convertedPhotonXY failed.");
465 B2ERROR(
"Second track provided has curvature zero. Calculation of convertedPhotonXY failed.");
470 double radius1 = 1 / Omega1;
471 double radius2 = 1 / Omega2;
473 ROOT::Math::XYVector center1((radius1 + D01) * sin(Phi01), -1 * (radius1 + D01) * cos(Phi01));
474 ROOT::Math::XYVector center2((radius2 + D02) * sin(Phi02), -1 * (radius2 + D02) * cos(Phi02));
475 ROOT::Math::XYVector cenDiff = center2 - center1;
476 double delR = fabs(radius1) + fabs(radius2) - cenDiff.R();
479 ROOT::Math::XYVector n1 = cenDiff.Unit();
480 ROOT::Math::XYVector vtxXY = center1 + ((fabs(radius1) - (delR / 2)) * n1);
484 double convertedPhotonX(
const Particle* gamma,
const std::vector<double>& daughterIndices)
486 auto vtxXY = convertedPhotonXY(gamma, daughterIndices);
490 double convertedPhotonY(
const Particle* gamma,
const std::vector<double>& daughterIndices)
492 auto vtxXY = convertedPhotonXY(gamma, daughterIndices);
496 double convertedPhotonRho(
const Particle* gamma,
const std::vector<double>& daughterIndices)
498 auto vtxXY = convertedPhotonXY(gamma, daughterIndices);
502 ROOT::Math::XYZVector convertedPhoton3Momentum(
const Particle* gamma,
const std::vector<double>& daughterIndices)
505 int errFlag = convertedPhotonErrorChecks(gamma, daughterIndices);
509 double Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02, Omega2, Z02, TanLambda2;
510 int daughterIndex1 = int(daughterIndices[0]);
511 int daughterIndex2 = int(daughterIndices[1]);
512 errFlag = convertedPhotonLoadHelixParams(gamma, daughterIndex1, daughterIndex2, Phi01, D01, Omega1, Z01, TanLambda1, Phi02, D02,
516 B2ERROR(
"First track provided has curvature zero. Calculation of convertedPhoton3Momentum failed.");
520 B2ERROR(
"Second track provided has curvature zero. Calculation of convertedPhoton3Momentum failed.");
526 double radius1 = 1 / Omega1;
527 double radius2 = 1 / Omega2;
529 ROOT::Math::XYVector center1((radius1 + D01) * sin(Phi01), -1 * (radius1 + D01) * cos(Phi01));
530 ROOT::Math::XYVector center2((radius2 + D02) * sin(Phi02), -1 * (radius2 + D02) * cos(Phi02));
531 ROOT::Math::XYVector n1 = center1 - center2; n1 = n1.Unit();
532 ROOT::Math::XYVector n2 = -1 * n1;
533 n1 = copysign(1.0, Omega1) * n1;
534 n2 = copysign(1.0, Omega2) * n2;
537 double phiN1 = atan2(n1.X(), -n1.Y());
538 double phiN2 = atan2(n2.X(), -n2.Y());
541 double sinlam1 = TanLambda1 / sqrt(1 + (TanLambda1 * TanLambda1));
542 double coslam1 = 1 / sqrt(1 + (TanLambda1 * TanLambda1));
543 double sinlam2 = TanLambda2 / sqrt(1 + (TanLambda2 * TanLambda2));
544 double coslam2 = 1 / sqrt(1 + (TanLambda2 * TanLambda2));
547 double p1 = gamma->getDaughter(daughterIndex1)->getMomentumMagnitude();
548 ROOT::Math::XYZVector e1Momentum(coslam1 * cos(phiN1), coslam1 * sin(phiN1), sinlam1);
549 double p2 = gamma->getDaughter(daughterIndex2)->getMomentumMagnitude();
550 ROOT::Math::XYZVector e2Momentum(coslam2 * cos(phiN2), coslam2 * sin(phiN2), sinlam2);
551 ROOT::Math::XYZVector gammaMomentum = (e1Momentum * p1) + (e2Momentum * p2);
553 return gammaMomentum;
556 double convertedPhotonPx(
const Particle* gamma,
const std::vector<double>& daughterIndices)
558 auto gammaMomentum = convertedPhoton3Momentum(gamma, daughterIndices);
559 return gammaMomentum.X();
562 double convertedPhotonPy(
const Particle* gamma,
const std::vector<double>& daughterIndices)
564 auto gammaMomentum = convertedPhoton3Momentum(gamma, daughterIndices);
565 return gammaMomentum.Y();
568 double convertedPhotonPz(
const Particle* gamma,
const std::vector<double>& daughterIndices)
570 auto gammaMomentum = convertedPhoton3Momentum(gamma, daughterIndices);
571 return gammaMomentum.Z();
574 int v0DaughtersShareInnermostHit(
const Particle* part)
578 auto daughterPlus = part->getDaughter(0);
579 auto daughterMinus = part->getDaughter(1);
580 if (!daughterPlus || !daughterMinus)
582 auto trackFitPlus = daughterPlus->getTrackFitResult();
583 auto trackFitMinus = daughterMinus->getTrackFitResult();
584 if (!trackFitPlus || !trackFitMinus)
586 int flagPlus = trackFitPlus->getHitPatternVXD().getInnermostHitShareStatus();
587 int flagMinus = trackFitMinus->getHitPatternVXD().getInnermostHitShareStatus();
588 if (flagPlus != flagMinus)
593 bool v0DaughtersShareInnermostUHit(
const Particle* part)
595 return ((v0DaughtersShareInnermostHit(part) / 2) == 1);
598 bool v0DaughtersShareInnermostVHit(
const Particle* part)
600 return ((v0DaughtersShareInnermostHit(part) % 2) == 1);
603 VARIABLE_GROUP(
"V0Daughter");
605 REGISTER_VARIABLE(
"v0DaughterNRemovedHits(i)", v0DaughterTrackNRemovedHits,
606 "The number of the i-th daughter track hits removed in V0Finder. Returns 0 if called for something other than V0 daughters.");
608 REGISTER_VARIABLE(
"V0d0(id)", v0DaughterD0,
609 "Return the d0 impact parameter of a V0's daughter with daughterID index with the V0 vertex point as a pivot for the track.\n\n",
611 REGISTER_VARIABLE(
"V0Deltad0", v0DaughterD0Diff,
612 "Return the difference between d0 impact parameters of V0's daughters with the V0 vertex point as a pivot for the track.\n\n",
614 REGISTER_VARIABLE(
"V0z0(id)", v0DaughterZ0,
615 "Return the z0 impact parameter of a V0's daughter with daughterID index with the V0 vertex point as a pivot for the track.\n\n",
617 REGISTER_VARIABLE(
"V0Deltaz0", v0DaughterZ0Diff,
618 "Return the difference between z0 impact parameters of V0's daughters with the V0 vertex point as a pivot for the track.\n\n",
622 REGISTER_VARIABLE(
"v0DaughterD0PullWithTrueVertexAsPivot(i)", v0DaughterHelixWithTrueVertexAsPivotD0Pull,
623 "d0 pull of the i-th daughter track with the true V0 vertex as the track pivot");
624 REGISTER_VARIABLE(
"v0DaughterPhi0PullWithTrueVertexAsPivot(i)", v0DaughterHelixWithTrueVertexAsPivotPhi0Pull,
625 "phi0 pull of the i-th daughter track with the true V0 vertex as the track pivot");
626 REGISTER_VARIABLE(
"v0DaughterOmegaPullWithTrueVertexAsPivot(i)", v0DaughterHelixWithTrueVertexAsPivotOmegaPull,
627 "omega pull of the i-th daughter track with the true V0 vertex as the track pivot");
628 REGISTER_VARIABLE(
"v0DaughterZ0PullWithTrueVertexAsPivot(i)", v0DaughterHelixWithTrueVertexAsPivotZ0Pull,
629 "z0 pull of the i-th daughter track with the true V0 vertex as the track pivot");
630 REGISTER_VARIABLE(
"v0DaughterTanLambdaPullWithTrueVertexAsPivot(i)", v0DaughterHelixWithTrueVertexAsPivotTanLambdaPull,
631 "tan(lambda) pull of the i-th daughter track with the true V0 vertex as the track pivot");
633 REGISTER_VARIABLE(
"v0DaughterTau(i,j)", v0DaughterTrackParam5AtIPPerigee,
634 "j-th track parameter (at IP perigee) of the i-th daughter track. "
635 "j: 0:d0, 1:phi0, 2:omega, 3:z0, 4:tanLambda\n\n",
"cm, rad, :math:`\\text{cm}^{-1}`, cm, unitless");
636 REGISTER_VARIABLE(
"v0DaughterCov(i,j)", v0DaughterTrackParamCov5x5AtIPPerigee,
637 "j-th element of the 15 covariance matrix elements (at IP perigee) of the i-th daughter track. "
638 "(0,0), (0,1) ... (1,1), (1,2) ... (2,2) ..."
639 "index order is: 0:d0, 1:phi0, 2:omega, 3:z0, 4:tanLambda\n\n",
"cm, rad, :math:`\\text{cm}^{-1}`, cm, unitless");
641 REGISTER_VARIABLE(
"convertedPhotonInvariantMass(i,j)", convertedPhotonInvariantMass,
642 "Invariant mass of the i-j daughter system as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
643 "GeV/:math:`\\text{c}^2`");
644 REGISTER_VARIABLE(
"convertedPhotonDelTanLambda(i,j)", convertedPhotonDelTanLambda,
645 "Discriminating variable Delta-TanLambda calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon");
646 REGISTER_VARIABLE(
"convertedPhotonDelR(i,j)", convertedPhotonDelR,
647 "Discriminating variable Delta-R calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
649 REGISTER_VARIABLE(
"convertedPhotonDelZ(i,j)", convertedPhotonDelZ,
650 "Discriminating variable Delta-Z calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
652 REGISTER_VARIABLE(
"convertedPhotonX(i,j)", convertedPhotonX,
653 "Estimate of vertex X coordinate calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
655 REGISTER_VARIABLE(
"convertedPhotonY(i,j)", convertedPhotonY,
656 "Estimate of vertex Y coordinate calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
658 REGISTER_VARIABLE(
"convertedPhotonZ(i,j)", convertedPhotonZ,
659 "Estimate of vertex Z coordinate calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
661 REGISTER_VARIABLE(
"convertedPhotonRho(i,j)", convertedPhotonRho,
662 "Estimate of vertex Rho calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
664 REGISTER_VARIABLE(
"convertedPhotonPx(i,j)", convertedPhotonPx,
665 "Estimate of x-component of photon momentum calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
667 REGISTER_VARIABLE(
"convertedPhotonPy(i,j)", convertedPhotonPy,
668 "Estimate of y-component of photon momentum calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
670 REGISTER_VARIABLE(
"convertedPhotonPz(i,j)", convertedPhotonPz,
671 "Estimate of z-component of photon momentum calculated for daughters (i,j) as defined in https://indico.belle2.org/event/3644/contributions/18622/attachments/9401/14443/Photon_vertexin_B2GM.pdf, assuming it's a converted photon\n\n",
674 REGISTER_VARIABLE(
"v0DaughtersShare1stHit", v0DaughtersShareInnermostHit,
675 "flag for V0 daughters sharing the first(innermost) VXD hit. 0x1(0x2) bit represents V/z(U/r-phi)-hit share.");
676 REGISTER_VARIABLE(
"v0DaughtersShare1stUHit", v0DaughtersShareInnermostUHit,
677 "flag for V0 daughters sharing the first(innermost) VXD U-side hit.");
678 REGISTER_VARIABLE(
"v0DaughtersShare1stVHit", v0DaughtersShareInnermostVHit,
679 "flag for V0 daughters sharing the first(innermost) VXD V-side hit.");
static ROOT::Math::XYZVector getFieldInTesla(const ROOT::Math::XYZVector &pos)
return the magnetic field at a given position in Tesla.
EDetector
Enum for identifying the detector components (detector and subdetector).
static const double electronMass
electron mass
static const double doubleNaN
quiet_NaN
Abstract base class for different kinds of events.