Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Common,DPG] Added time-dependent ITS dead-zone flags #9038

Merged
merged 14 commits into from
Dec 20, 2024
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
Loading