Skip to content

Commit dd048ff

Browse files
authored
[Common,DPG] Added time-dependent ITS dead-zone flags (#9038)
1 parent d99b84e commit dd048ff

File tree

4 files changed

+283
-187
lines changed

4 files changed

+283
-187
lines changed

Common/CCDB/EventSelectionParams.cxx

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

12+
/// \file EventSelectionParams.cxx
13+
/// \brief Event selection parameters
14+
///
15+
/// \author Evgeny Kryshen <evgeny.kryshen@cern.ch> and Igor Altsybeev <Igor.Altsybeev@cern.ch>
16+
17+
// o2-linter: disable=name/workflow-file
18+
1219
#include "EventSelectionParams.h"
1320

1421
namespace o2::aod::evsel
@@ -61,7 +68,10 @@ const char* selectionLabels[kNsel] = {
6168
"kNoCollInTimeRangeVzDependent",
6269
"kNoCollInRofStrict",
6370
"kNoCollInRofStandard",
64-
"kNoHighMultCollInPrevRof"};
71+
"kNoHighMultCollInPrevRof",
72+
"kIsGoodITSLayer3",
73+
"kIsGoodITSLayer0123",
74+
"kIsGoodITSLayersAll"};
6575
} // namespace o2::aod::evsel
6676

6777
using namespace o2::aod::evsel;
@@ -166,7 +176,7 @@ EventSelectionParams::EventSelectionParams(int system, int run)
166176
}
167177
}
168178

169-
void EventSelectionParams::DisableOutOfBunchPileupCuts()
179+
void EventSelectionParams::disableOutOfBunchPileupCuts()
170180
{
171181
selectionBarrel[kNoV0MOnVsOfPileup] = 0;
172182
selectionBarrel[kNoSPDOnVsOfPileup] = 0;
@@ -184,15 +194,15 @@ void EventSelectionParams::DisableOutOfBunchPileupCuts()
184194
selectionMuonWithoutPileupCuts[kNoV0PFPileup] = 0;
185195
}
186196

187-
void EventSelectionParams::SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
197+
void EventSelectionParams::setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
188198
{
189199
fV0MOnVsOfA = newV0MOnVsOfA;
190200
fV0MOnVsOfB = newV0MOnVsOfB;
191201
fSPDOnVsOfA = newSPDOnVsOfA;
192202
fSPDOnVsOfB = newSPDOnVsOfB;
193203
}
194204

195-
bool* EventSelectionParams::GetSelection(int iSelection)
205+
bool* EventSelectionParams::getSelection(int iSelection)
196206
{
197207
if (iSelection == 0) {
198208
return selectionBarrel;

Common/CCDB/EventSelectionParams.h

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

12+
/// \file EventSelectionParams.h
13+
/// \brief Event selection parameters
14+
///
15+
/// \author Evgeny Kryshen <evgeny.kryshen@cern.ch> and Igor Altsybeev <Igor.Altsybeev@cern.ch>
16+
1217
#ifndef COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1318
#define COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1419

@@ -67,6 +72,9 @@ enum EventSelectionFlags {
6772
kNoCollInRofStrict, // no other collisions in this Readout Frame
6873
kNoCollInRofStandard, // no other collisions in this Readout Frame with per-collision multiplicity above threshold
6974
kNoHighMultCollInPrevRof, // veto an event if FT0C amplitude in previous ITS ROF is above threshold
75+
kIsGoodITSLayer3, // number of inactive chips on ITS layer 3 is below maximum allowed value
76+
kIsGoodITSLayer0123, // numbers of inactive chips on ITS layers 0-3 are below maximum allowed values
77+
kIsGoodITSLayersAll, // numbers of inactive chips on all ITS layers are below maximum allowed values
7078
kNsel // counter
7179
};
7280

@@ -77,10 +85,10 @@ extern const char* selectionLabels[kNsel];
7785
class EventSelectionParams
7886
{
7987
public:
80-
explicit EventSelectionParams(int system = 0, int run = 2);
81-
void DisableOutOfBunchPileupCuts();
82-
void SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
83-
bool* GetSelection(int iSelection);
88+
explicit EventSelectionParams(int system = 0, int run = 2); // o2-linter: disable=name/function-variable
89+
void disableOutOfBunchPileupCuts();
90+
void setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
91+
bool* getSelection(int iSelection);
8492

8593
bool selectionBarrel[o2::aod::evsel::kNsel];
8694
bool selectionMuonWithPileupCuts[o2::aod::evsel::kNsel];
@@ -154,7 +162,7 @@ class EventSelectionParams
154162
int fITSROFrameStartBorderMargin = 10; // number of bcs to cut in the beginning of ITS readout frame
155163
int fITSROFrameEndBorderMargin = 20; // number of bcs to cut in the end of ITS readout frame
156164

157-
ClassDefNV(EventSelectionParams, 6)
165+
ClassDefNV(EventSelectionParams, 7)
158166
};
159167

160168
#endif // COMMON_CCDB_EVENTSELECTIONPARAMS_H_

0 commit comments

Comments
 (0)