Skip to content

Commit

Permalink
[Common,DPG] Added time-dependent ITS dead-zone flags (AliceO2Group#9038
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ekryshen authored Dec 20, 2024
1 parent d99b84e commit dd048ff
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 187 deletions.
18 changes: 14 additions & 4 deletions Common/CCDB/EventSelectionParams.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

/// \file EventSelectionParams.cxx
/// \brief Event selection parameters
///
/// \author Evgeny Kryshen <[email protected]> and Igor Altsybeev <[email protected]>

// o2-linter: disable=name/workflow-file

#include "EventSelectionParams.h"

namespace o2::aod::evsel
Expand Down Expand Up @@ -61,7 +68,10 @@ const char* selectionLabels[kNsel] = {
"kNoCollInTimeRangeVzDependent",
"kNoCollInRofStrict",
"kNoCollInRofStandard",
"kNoHighMultCollInPrevRof"};
"kNoHighMultCollInPrevRof",
"kIsGoodITSLayer3",
"kIsGoodITSLayer0123",
"kIsGoodITSLayersAll"};
} // namespace o2::aod::evsel

using namespace o2::aod::evsel;
Expand Down Expand Up @@ -166,7 +176,7 @@ EventSelectionParams::EventSelectionParams(int system, int run)
}
}

void EventSelectionParams::DisableOutOfBunchPileupCuts()
void EventSelectionParams::disableOutOfBunchPileupCuts()
{
selectionBarrel[kNoV0MOnVsOfPileup] = 0;
selectionBarrel[kNoSPDOnVsOfPileup] = 0;
Expand All @@ -184,15 +194,15 @@ void EventSelectionParams::DisableOutOfBunchPileupCuts()
selectionMuonWithoutPileupCuts[kNoV0PFPileup] = 0;
}

void EventSelectionParams::SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
void EventSelectionParams::setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB)
{
fV0MOnVsOfA = newV0MOnVsOfA;
fV0MOnVsOfB = newV0MOnVsOfB;
fSPDOnVsOfA = newSPDOnVsOfA;
fSPDOnVsOfB = newSPDOnVsOfB;
}

bool* EventSelectionParams::GetSelection(int iSelection)
bool* EventSelectionParams::getSelection(int iSelection)
{
if (iSelection == 0) {
return selectionBarrel;
Expand Down
18 changes: 13 additions & 5 deletions Common/CCDB/EventSelectionParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

/// \file EventSelectionParams.h
/// \brief Event selection parameters
///
/// \author Evgeny Kryshen <[email protected]> and Igor Altsybeev <[email protected]>

#ifndef COMMON_CCDB_EVENTSELECTIONPARAMS_H_
#define COMMON_CCDB_EVENTSELECTIONPARAMS_H_

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

Expand All @@ -77,10 +85,10 @@ extern const char* selectionLabels[kNsel];
class EventSelectionParams
{
public:
explicit EventSelectionParams(int system = 0, int run = 2);
void DisableOutOfBunchPileupCuts();
void SetOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
bool* GetSelection(int iSelection);
explicit EventSelectionParams(int system = 0, int run = 2); // o2-linter: disable=name/function-variable
void disableOutOfBunchPileupCuts();
void setOnVsOfParams(float newV0MOnVsOfA, float newV0MOnVsOfB, float newSPDOnVsOfA, float newSPDOnVsOfB);
bool* getSelection(int iSelection);

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

ClassDefNV(EventSelectionParams, 6)
ClassDefNV(EventSelectionParams, 7)
};

#endif // COMMON_CCDB_EVENTSELECTIONPARAMS_H_
Loading

0 comments on commit dd048ff

Please sign in to comment.