Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed May 30, 2024
1 parent 5de9184 commit 9d9c5af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions PWGHF/TableProducer/candidateCreator3Prong.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ struct HfCandidateCreator3ProngExpressions {
const auto McParticleRejectionMask = hfEvSelMc.getHfMcCollisionRejectionMask<BCsInfo>(mcCollision);
if (McParticleRejectionMask != 0) {
/// at least one event selection not satisfied --> reject the gen particle
rowMcMatchGen(flag, origin, channel);
continue;
}
rowMcMatchGen(flag, origin, channel);
continue;
}

// D± → π± K∓ π±
if (createDplus) {
Expand Down
54 changes: 27 additions & 27 deletions PWGHF/Utils/utilsEvSelHf.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,38 +207,38 @@ enum McCollisionRejection {

struct HfEventSelectionMc {
// event selection parameters (in chronological order of application)
bool useSel8Trigger{false}; // Apply the ITS RO frame border cut
bool useSel8Trigger{false}; // Apply the ITS RO frame border cut
bool useTimeFrameBorderCut{true}; // Apply TF border cut
float zPvPosMin{-1000.f}; // Minimum PV posZ (cm)
float zPvPosMax{1000.f}; // Maximum PV posZ (cm)

/// \brief Function to apply event selections in HF analyses
/// \param mcCollision is the analysed mc collision
/// \return a bitmask with the event selections not satisfied by the analysed collision
template <typename TBc, typename TMcColl>
uint16_t getHfMcCollisionRejectionMask(TMcColl const& mcCollision)
{
float zPvPosMin{-1000.f}; // Minimum PV posZ (cm)
float zPvPosMax{1000.f}; // Maximum PV posZ (cm)

/// \brief Function to apply event selections in HF analyses
/// \param mcCollision is the analysed mc collision
/// \return a bitmask with the event selections not satisfied by the analysed collision
template <typename TBc, typename TMcColl>
uint16_t getHfMcCollisionRejectionMask(TMcColl const& mcCollision)
{

uint8_t rejectionMask{0};
uint8_t rejectionMask{0};

float zPv = mcCollision.posZ();
auto bc = mcCollision.template bc_as<TBc>();
float zPv = mcCollision.posZ();
auto bc = mcCollision.template bc_as<TBc>();

/// ITS RO frame border cut
if (useSel8Trigger && !bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
SETBIT(rejectionMask, McCollisionRejection::ITSROFrameBorderCut);
}
/// time frame border cut
if (useTimeFrameBorderCut && !bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
SETBIT(rejectionMask, McCollisionRejection::TimeFrameBorderCut);
}
/// primary vertex z
if (zPv < zPvPosMin || zPv > zPvPosMax) {
SETBIT(rejectionMask, McCollisionRejection::PositionZ);
}
/// ITS RO frame border cut
if (useSel8Trigger && !bc.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
SETBIT(rejectionMask, McCollisionRejection::ITSROFrameBorderCut);
}
/// time frame border cut
if (useTimeFrameBorderCut && !bc.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
SETBIT(rejectionMask, McCollisionRejection::TimeFrameBorderCut);
}
/// primary vertex z
if (zPv < zPvPosMin || zPv > zPvPosMax) {
SETBIT(rejectionMask, McCollisionRejection::PositionZ);
}

return rejectionMask;
}
return rejectionMask;
}
};
} // namespace o2::hf_evsel_mc

Expand Down

0 comments on commit 9d9c5af

Please sign in to comment.