Skip to content

Commit 212e81f

Browse files
committed
FIX4
1 parent 6d987fc commit 212e81f

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

ALICE3/TableProducer/OTF/onTheFlyRichPid.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ struct OnTheFlyRichPid {
696696
{
697697
// Compute tracking contribution to timing using the error propagation formula
698698
// Uses light speed in m/ps, magnetic field in T (*0.1 for conversion kGauss -> T)
699-
const double a0 = mass * mass;
699+
const double a0 = 1.0 * mass * mass;
700700
const double a1 = refractiveIndex;
701701
const double a1Squared = a1 * a1;
702702
const float ptCoshEta = pt * std::cosh(eta);

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ struct OnTheFlyTofPid {
172172
int pdgCode;
173173
double mass;
174174
float charge;
175+
void set(const std::string_view texName_, const std::string_view name_, ParticleId type_, int pdgCode_, double mass_, float charge_)
176+
{
177+
texName = texName_;
178+
name = name_;
179+
type = type_;
180+
pdgCode = pdgCode_;
181+
mass = mass_;
182+
charge = charge_;
183+
}
175184
};
176185

177186
static constexpr ParticleInfo particleEl{.texName = "#it{e}", .name = "Elec", .type = El, .pdgCode = PDG_t::kElectron, .mass = o2::constants::physics::MassElectron, .charge = 1.f};
@@ -391,6 +400,8 @@ struct OnTheFlyTofPid {
391400
delete hHitMapInPixelBefore;
392401
}
393402

403+
TOFLayerEfficiency& operator=(const TOFLayerEfficiency&) = delete;
404+
394405
TOFLayerEfficiency(float r, float l, std::array<float, 2> pDimensions, float fIA, float m) : layerRadius(r),
395406
layerLength(l),
396407
pixelDimensionZ(pDimensions[0]),
@@ -558,7 +569,7 @@ struct OnTheFlyTofPid {
558569
};
559570

560571
std::vector<TracksWithTime> tracksWithTime;
561-
bool eventTime(std::vector<TracksWithTime>& tracks,
572+
bool eventTime(const std::vector<TracksWithTime>& tracks,
562573
std::array<float, 2>& tzero)
563574
{
564575

ALICE3/TableProducer/OTF/onTheFlyTrackerPid.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,14 @@ struct OnTheFlyTrackerPid {
336336

337337
float computeTrackLength(o2::track::TrackParCov track, float radius, float magneticField)
338338
{
339-
float length = -100;
340339
o2::math_utils::CircleXYf_t trcCircle;
341340
float sna = NAN, csa = NAN;
342341
track.getCircleParams(magneticField, trcCircle, sna, csa);
343342

344343
const float centerDistance = std::hypot(trcCircle.xC, trcCircle.yC);
345344

346345
if (centerDistance < trcCircle.rC + radius && centerDistance > std::fabs(trcCircle.rC - radius)) {
347-
length = 0.0f;
346+
float length = 0.0f;
348347
const float ux = trcCircle.xC / centerDistance;
349348
const float uy = trcCircle.yC / centerDistance;
350349
const float vx = -uy;
@@ -379,8 +378,9 @@ struct OnTheFlyTrackerPid {
379378
cosAngle /= modulus;
380379
length = trcCircle.rC * std::acos(cosAngle);
381380
length *= std::sqrt(1.0f + track.getTgl() * track.getTgl());
381+
return length;
382382
}
383-
return length;
383+
return -100.f;
384384
}
385385

386386
Produces<aod::UpgradeTrkPidSignals> tableUpgradeTrkPidSignals;

0 commit comments

Comments
 (0)