Skip to content

Commit d7ef392

Browse files
authored
[ALICE3] A3RICH: add table for signal availability (#12037)
- streamline parameter setting - fetch the magnetic field from the tracking task - improve variable management - improve CPU efficiency
1 parent ecdcd98 commit d7ef392

File tree

3 files changed

+348
-250
lines changed

3 files changed

+348
-250
lines changed

ALICE3/DataModel/OTFRICH.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ DECLARE_SOA_DYNAMIC_COLUMN(NSigmaRich, nSigmaRich, //! General f
5555
}
5656
});
5757

58+
DECLARE_SOA_COLUMN(HasSig, hasSig, bool); //! Has signal in the barrel rich (is particle over threshold)
59+
DECLARE_SOA_COLUMN(HasSigEl, hasSigEl, bool); //! Has nSigma electron BarrelRich (is electron over threshold)
60+
DECLARE_SOA_COLUMN(HasSigMu, hasSigMu, bool); //! Has nSigma muon BarrelRich (is muon over threshold)
61+
DECLARE_SOA_COLUMN(HasSigPi, hasSigPi, bool); //! Has nSigma pion BarrelRich (is pion over threshold)
62+
DECLARE_SOA_COLUMN(HasSigKa, hasSigKa, bool); //! Has nSigma kaon BarrelRich (is kaon over threshold)
63+
DECLARE_SOA_COLUMN(HasSigPr, hasSigPr, bool); //! Has nSigma proton BarrelRich (is proton over threshold)
64+
5865
} // namespace upgrade_rich
5966
DECLARE_SOA_TABLE(UpgradeRichs, "AOD", "UPGRADERICH",
6067
upgrade_rich::NSigmaElectronRich,
@@ -70,6 +77,16 @@ DECLARE_SOA_TABLE(UpgradeRichs, "AOD", "UPGRADERICH",
7077

7178
using UpgradeRich = UpgradeRichs::iterator;
7279

80+
DECLARE_SOA_TABLE(UpgradeRichSignals, "AOD", "UPGRADERICHSIG",
81+
upgrade_rich::HasSig,
82+
upgrade_rich::HasSigEl,
83+
upgrade_rich::HasSigMu,
84+
upgrade_rich::HasSigPi,
85+
upgrade_rich::HasSigKa,
86+
upgrade_rich::HasSigPr);
87+
88+
using UpgradeRichSignal = UpgradeRichSignals::iterator;
89+
7390
} // namespace o2::aod
7491

7592
#endif // ALICE3_DATAMODEL_OTFRICH_H_

0 commit comments

Comments
 (0)