Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALICE3] OTF tracker - bump version of TracksExtra to 002 #9043

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ALICE3/TableProducer/OTF/onTheFlyTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
Produces<aod::UpgradeCascades> upgradeCascades;

// optionally produced, empty (to be tuned later)
Produces<aod::StoredTracksExtra_001> tracksExtra; // base table, extend later
Produces<aod::StoredTracksExtra_002> tracksExtra; // base table, extend later
Produces<aod::TrackSelection> trackSelection;
Produces<aod::TrackSelectionExtension> trackSelectionExtension;

Expand Down Expand Up @@ -430,11 +430,11 @@
{
double u = rand.Uniform(0, 1);
double xi_ctau = 4.91; // xi
double xi_rxyz = (-xi_ctau * log(1 - u));

Check warning on line 433 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
float sna, csa;
o2::math_utils::CircleXYf_t xi_circle;
track.getCircleParams(magneticField, xi_circle, sna, csa);
double xi_rxy = xi_rxyz / sqrt(1. + track.getTgl() * track.getTgl());

Check warning on line 437 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double theta = xi_rxy / xi_circle.rC;
double newX = ((particle.vx() - xi_circle.xC) * std::cos(theta) - (particle.vy() - xi_circle.yC) * std::sin(theta)) + xi_circle.xC;
double newY = ((particle.vy() - xi_circle.yC) * std::cos(theta) + (particle.vx() - xi_circle.xC) * std::sin(theta)) + xi_circle.yC;
Expand All @@ -453,7 +453,7 @@

double l0_ctau = 7.89; // lambda
std::vector<double> l0Daughters = {0.139570, 0.938272};
double l0_rxyz = (-l0_ctau * log(1 - u));

Check warning on line 456 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
l0DecayVertex.push_back(xiDecayVertex[0] + l0_rxyz * (xiDecay.GetDecay(0)->Px() / xiDecay.GetDecay(0)->P()));
l0DecayVertex.push_back(xiDecayVertex[1] + l0_rxyz * (xiDecay.GetDecay(0)->Py() / xiDecay.GetDecay(0)->P()));
l0DecayVertex.push_back(xiDecayVertex[2] + l0_rxyz * (xiDecay.GetDecay(0)->Pz() / xiDecay.GetDecay(0)->P()));
Expand Down Expand Up @@ -579,8 +579,8 @@
o2::track::TrackParCov xiTrackParCov;
convertMCParticleToO2Track(mcParticle, xiTrackParCov);
decayParticle(mcParticle, xiTrackParCov, decayProducts, xiDecayVertex, l0DecayVertex);
xiDecayRadius2D = sqrt(xiDecayVertex[0] * xiDecayVertex[0] + xiDecayVertex[1] * xiDecayVertex[1]);

Check warning on line 582 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
l0DecayRadius2D = sqrt(l0DecayVertex[0] * l0DecayVertex[0] + l0DecayVertex[1] * l0DecayVertex[1]);

Check warning on line 583 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
}
}

Expand All @@ -604,11 +604,11 @@
}

histos.fill(HIST("hPtGenerated"), mcParticle.pt());
if (TMath::Abs(mcParticle.pdgCode()) == 11)

Check warning on line 607 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("hPtGeneratedEl"), mcParticle.pt());
if (TMath::Abs(mcParticle.pdgCode()) == 211)

Check warning on line 609 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("hPtGeneratedPi"), mcParticle.pt());
if (TMath::Abs(mcParticle.pdgCode()) == 321)

Check warning on line 611 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("hPtGeneratedKa"), mcParticle.pt());
if (TMath::Abs(mcParticle.pdgCode()) == 2212)
histos.fill(HIST("hPtGeneratedPr"), mcParticle.pt());
Expand Down Expand Up @@ -749,7 +749,7 @@
// DCA to PV taken care of in daughter tracks already, not necessary
thisCascade.dcaV0dau = TMath::Sqrt(fitter.getChi2AtPCACandidate());
thisCascade.v0radius = std::hypot(pos[0], pos[1]);
thisCascade.mLambda = RecoDecay::m(array{array{posP[0], posP[1], posP[2]}, array{negP[0], negP[1], negP[2]}}, array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged});

Check warning on line 752 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

// go for cascade: create V0 (pseudo)track from reconstructed V0
std::array<float, 21> covV = {0.};
Expand Down Expand Up @@ -793,7 +793,7 @@
thisCascade.cascradius = std::hypot(posCascade[0], posCascade[1]);
bachelorTrackAtPCA.getPxPyPzGlo(bachP);

thisCascade.mXi = RecoDecay::m(array{array{bachP[0], bachP[1], bachP[2]}, array{posP[0] + negP[0], posP[1] + negP[1], posP[2] + negP[2]}}, array{o2::constants::physics::MassPionCharged, o2::constants::physics::MassLambda});

Check warning on line 796 in ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

// initialize cascade track
o2::track::TrackParCov cascadeTrack = fitter.createParentTrackParCov();
Expand Down Expand Up @@ -1041,7 +1041,7 @@

// populate extra tables if required to do so
if (populateTracksExtra) {
tracksExtra(0.0f, (uint32_t)0, (uint8_t)0, (uint8_t)0,
tracksExtra(0.0f, (uint32_t)0, (uint8_t)0, (uint8_t)0, (uint8_t)0,
(int8_t)0, (int8_t)0, (uint8_t)0, (uint8_t)0,
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
Expand Down Expand Up @@ -1089,7 +1089,7 @@

// populate extra tables if required to do so
if (populateTracksExtra) {
tracksExtra(0.0f, (uint32_t)0, (uint8_t)0, (uint8_t)0,
tracksExtra(0.0f, (uint32_t)0, (uint8_t)0, (uint8_t)0, (uint8_t)0,
(int8_t)0, (int8_t)0, (uint8_t)0, (uint8_t)0,
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
Expand Down
Loading