Skip to content

Commit ec2eb2a

Browse files
committed
PWGEM/Dilepton: move out flags declaration to avoid including datamodel in a dictionary
1 parent 22dfa17 commit ec2eb2a

2 files changed

Lines changed: 3 additions & 24 deletions

File tree

PWGEM/Dilepton/Core/EMEventCut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef PWGEM_DILEPTON_CORE_EMEVENTCUT_H_
1717
#define PWGEM_DILEPTON_CORE_EMEVENTCUT_H_
1818

19-
#include "PWGEM/Dilepton/DataModel/dileptonTables.h"
19+
#include "PWGEM/Dilepton/DataModel/EvSelFlags.h"
2020

2121
#include <TNamed.h>
2222

PWGEM/Dilepton/DataModel/dileptonTables.h

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12+
#include "EvSelFlags.h"
13+
1214
#include "Common/CCDB/EventSelectionParams.h"
1315
#include "Common/Core/RecoDecay.h"
1416
#include "Common/DataModel/Centrality.h"
@@ -66,28 +68,6 @@ namespace o2::aod
6668

6769
namespace emevsel
6870
{
69-
// Event selection criteria. See O2Physics/Common/CCDB/EventSelectionParams.h
70-
enum EventSelectionFlags {
71-
kIsTriggerTVX = 0, // FT0 vertex (acceptable FT0C-FT0A time difference) at trigger level
72-
kNoITSROFrameBorder, // bunch crossing is far from ITS RO Frame border
73-
kNoTimeFrameBorder, // bunch crossing is far from Time Frame borders
74-
kNoSameBunchPileup, // reject collisions in case of pileup with another collision in the same foundBC
75-
kIsGoodZvtxFT0vsPV, // small difference between z-vertex from PV and from FT0
76-
kIsVertexITSTPC, // at least one ITS-TPC track (reject vertices built from ITS-only tracks)
77-
kIsVertexTOFmatched, // at least one of vertex contributors is matched to TOF
78-
kIsVertexTRDmatched, // at least one of vertex contributors is matched to TRD
79-
kNoCollInTimeRangeNarrow, // no other collisions in specified time range (narrower than Strict)
80-
kNoCollInTimeRangeStrict, // no other collisions in specified time range
81-
kNoCollInTimeRangeStandard, // no other collisions in specified time range with per-collision multiplicity above threshold
82-
kNoCollInRofStrict, // no other collisions in this Readout Frame
83-
kNoCollInRofStandard, // no other collisions in this Readout Frame with per-collision multiplicity above threshold
84-
kNoHighMultCollInPrevRof, // veto an event if FT0C amplitude in previous ITS ROF is above threshold
85-
kIsGoodITSLayer3, // number of inactive chips on ITS layer 3 is below maximum allowed value
86-
kIsGoodITSLayer0123, // numbers of inactive chips on ITS layers 0-3 are below maximum allowed values
87-
kIsGoodITSLayersAll, // numbers of inactive chips on all ITS layers are below maximum allowed values
88-
kNsel // counter
89-
};
90-
9171
DECLARE_SOA_BITMAP_COLUMN(Selection, selection, 32); //! Bitmask of selection flags
9272
DECLARE_SOA_DYNAMIC_COLUMN(Sel8, sel8, [](uint32_t selection_bit) -> bool { return (selection_bit & BIT(o2::aod::emevsel::kIsTriggerTVX)) && (selection_bit & BIT(o2::aod::emevsel::kNoTimeFrameBorder)) && (selection_bit & BIT(o2::aod::emevsel::kNoITSROFrameBorder)); });
9373

@@ -149,7 +129,6 @@ uint32_t reduceSelectionBit(TBC const& bc)
149129
}
150130
return bitMap;
151131
}
152-
153132
} // namespace emevsel
154133

155134
namespace emevent

0 commit comments

Comments
 (0)