Skip to content

Commit 743f19c

Browse files
authored
[PWGEM/Dilepton] move out flags declaration to avoid including datamodel in a dictionary (#16879)
1 parent f71cd19 commit 743f19c

3 files changed

Lines changed: 43 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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
#ifndef PWGEM_DILEPTON_CORE_EVSELFLAGS_H
13+
#define PWGEM_DILEPTON_CORE_EVSELFLAGS_H
14+
15+
namespace o2::aod::emevsel
16+
{
17+
// Event selection criteria. See O2Physics/Common/CCDB/EventSelectionParams.h
18+
enum EventSelectionFlags {
19+
kIsTriggerTVX = 0, // FT0 vertex (acceptable FT0C-FT0A time difference) at trigger level
20+
kNoITSROFrameBorder, // bunch crossing is far from ITS RO Frame border
21+
kNoTimeFrameBorder, // bunch crossing is far from Time Frame borders
22+
kNoSameBunchPileup, // reject collisions in case of pileup with another collision in the same foundBC
23+
kIsGoodZvtxFT0vsPV, // small difference between z-vertex from PV and from FT0
24+
kIsVertexITSTPC, // at least one ITS-TPC track (reject vertices built from ITS-only tracks)
25+
kIsVertexTOFmatched, // at least one of vertex contributors is matched to TOF
26+
kIsVertexTRDmatched, // at least one of vertex contributors is matched to TRD
27+
kNoCollInTimeRangeNarrow, // no other collisions in specified time range (narrower than Strict)
28+
kNoCollInTimeRangeStrict, // no other collisions in specified time range
29+
kNoCollInTimeRangeStandard, // no other collisions in specified time range with per-collision multiplicity above threshold
30+
kNoCollInRofStrict, // no other collisions in this Readout Frame
31+
kNoCollInRofStandard, // no other collisions in this Readout Frame with per-collision multiplicity above threshold
32+
kNoHighMultCollInPrevRof, // veto an event if FT0C amplitude in previous ITS ROF is above threshold
33+
kIsGoodITSLayer3, // number of inactive chips on ITS layer 3 is below maximum allowed value
34+
kIsGoodITSLayer0123, // numbers of inactive chips on ITS layers 0-3 are below maximum allowed values
35+
kIsGoodITSLayersAll, // numbers of inactive chips on all ITS layers are below maximum allowed values
36+
kNsel // counter
37+
};
38+
} // namespace o2::aod::emevsel
39+
40+
#endif // PWGEM_DILEPTON_CORE_EVSELFLAGS_H

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)