Skip to content

Commit cdd3d6e

Browse files
Add more granularity to the number of selected collisions in StraSelections
1 parent 38ef137 commit cdd3d6e

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

PWGLF/DataModel/LFStrangenessTables.h

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,32 @@ DECLARE_SOA_TABLE(StraOrigins, "AOD", "STRAORIGIN", //! Table which contains the
4747
// for keeping track of the number of selected collisions
4848
namespace straselections
4949
{
50-
DECLARE_SOA_COLUMN(TotalNbrOfCollisions, totalNbrOfCollisions, int); //! total number of analysed collisions
50+
// Event selection criteria
51+
enum EventSelectionFlags {
52+
kIsTriggerTVX = 0, // FT0 vertex (acceptable FT0C-FT0A time difference) at trigger level
53+
kNoITSROFrameBorder, // bunch crossing is far from ITS RO Frame border
54+
kNoTimeFrameBorder, // bunch crossing is far from Time Frame borders
55+
kIsGoodZvtxAcceptance, // Zvtx within detector acceptance
56+
kNoSameBunchPileup, // reject collisions in case of pileup with another collision in the same foundBC
57+
kIsGoodRCT, // Good RCT
58+
kNsel // counter
59+
};
60+
61+
DECLARE_SOA_COLUMN(TotalNbrOfCollisions, totalNbrOfCollisions, int); //! total number of analysed collisions
5162
DECLARE_SOA_COLUMN(TotalNbrOfSelCollisions, totalNbrOfSelCollisions, int); //! total number of selected collisions
63+
DECLARE_SOA_COLUMN(TotalIsTriggerTVXCollisions, totalIsTriggerTVXCollisions, int); //! N selected collisions after applying IsTriggerTVX
64+
DECLARE_SOA_COLUMN(TotalNoITSROFBorderCollisions, totalNoITSROFBorderCollisions, int); //! N selected collisions after applying IsTriggerTVX, NoITSROF
65+
DECLARE_SOA_COLUMN(TotalNoTFBorderCollisions, totalNoTFBorderCollisions, int); //! N selected collisions after applying IsTriggerTVX, NoITSROF, NoTF
66+
DECLARE_SOA_COLUMN(TotalIsGoodZvtxCollisions, totalIsGoodZvtxCollisions, int); //! N selected collisions after applying IsTriggerTVX, NoITSROF, NoTF, |Zvtx| < X cm
67+
DECLARE_SOA_COLUMN(TotalNoSBPileupCollisions, totalNoSBPileupCollisions, int); //! N selected collisions after applying IsTriggerTVX, NoITSROF, NoTF, |Zvtx| < X cm, NoSameBunchPileup
68+
DECLARE_SOA_COLUMN(TotalIsGoodRCTCollisions, totalIsGoodRCTCollisions, int); //! N selected collisions after applying IsTriggerTVX, NoITSROF, NoTF, |Zvtx| < X cm, NoSameBunchPileup, Good RCT
5269
} // namespace straselections
5370

5471
DECLARE_SOA_TABLE(StraSelections, "AOD", "STRASELECTIONS", //! keep track of the number of analysed collisions in this DF
55-
o2::soa::Index<>, straselections::TotalNbrOfCollisions, straselections::TotalNbrOfSelCollisions);
72+
o2::soa::Index<>, straselections::TotalNbrOfCollisions, straselections::TotalNbrOfSelCollisions,
73+
straselections::TotalIsTriggerTVXCollisions, straselections::TotalNoITSROFBorderCollisions,
74+
straselections::TotalNoTFBorderCollisions, straselections::TotalIsGoodZvtxCollisions,
75+
straselections::TotalNoSBPileupCollisions, straselections::TotalIsGoodRCTCollisions);
5676

5777
namespace stracollision
5878
{

0 commit comments

Comments
 (0)