Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions PWGHF/HFC/DataModel/DerivedDataCorrelationTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,28 @@ DECLARE_SOA_TABLE(AssocTrackSels, "AOD", "ASSOCTRACKSEL", //! Table with associa
namespace hf_correl_charm_had_reduced
{
// Correlation columns
DECLARE_SOA_INDEX_COLUMN(HfcRedCorrColl, hfcRedCorrColl); //! ReducedCollision index
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between charm hadron and Hadrons
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between charm hadron and Hadrons
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
DECLARE_SOA_INDEX_COLUMN(HfcRedCorrColl, hfcRedCorrColl); //! ReducedCollision index
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between charm hadron and Hadrons
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between charm hadron and Hadrons
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
// General trigger particle columns
DECLARE_SOA_COLUMN(PhiTrig, phiTrig, float); //! Phi of the trigger candidate
DECLARE_SOA_COLUMN(EtaTrig, etaTrig, float); //! Eta of the trigger candidate
DECLARE_SOA_COLUMN(PtTrig, ptTrig, float); //! Pt of the trigger candidate
DECLARE_SOA_COLUMN(PhiTrig, phiTrig, float); //! Phi of the trigger candidate
DECLARE_SOA_COLUMN(EtaTrig, etaTrig, float); //! Eta of the trigger candidate
DECLARE_SOA_COLUMN(PtTrig, ptTrig, float); //! Pt of the trigger candidate
// Charm trigger particle selection columns
DECLARE_SOA_COLUMN(InvMassTrig, invMassTrig, float); //! Invariant mass of Charm trigger candidate
DECLARE_SOA_COLUMN(BdtScore0Trig, bdtScore0Trig, float); //! First BDT output score
DECLARE_SOA_COLUMN(BdtScore1Trig, bdtScore1Trig, float); //! Second BDT output score
DECLARE_SOA_COLUMN(InvMassTrig, invMassTrig, float); //! Invariant mass of Charm trigger candidate
DECLARE_SOA_COLUMN(BdtScore0Trig, bdtScore0Trig, float); //! First BDT output score
DECLARE_SOA_COLUMN(BdtScore1Trig, bdtScore1Trig, float); //! Second BDT output score
// Hadron trigger particle selection columns
DECLARE_SOA_COLUMN(NTpcCrossedRowsTrig, nTpcCrossedRowsTrig, int); //! Number of crossed TPC Rows
DECLARE_SOA_COLUMN(ItsClsMapTrig, itsClsMapTrig, int); //! ITS cluster map, one bit per a layer, starting from the innermost
DECLARE_SOA_COLUMN(ItsNClsTrig, itsNClsTrig, int); //! Number of ITS clusters
DECLARE_SOA_COLUMN(DcaXYTrig, dcaXYTrig, float); //! Impact parameter in XY of the track to the primary vertex
DECLARE_SOA_COLUMN(DcaZTrig, dcaZTrig, float); //! Impact parameter in Z of the track to the primary vertex
DECLARE_SOA_COLUMN(NTpcCrossedRowsTrig, nTpcCrossedRowsTrig, int); //! Number of crossed TPC Rows
DECLARE_SOA_COLUMN(ItsClsMapTrig, itsClsMapTrig, int); //! ITS cluster map, one bit per a layer, starting from the innermost
DECLARE_SOA_COLUMN(ItsNClsTrig, itsNClsTrig, int); //! Number of ITS clusters
DECLARE_SOA_COLUMN(DcaXYTrig, dcaXYTrig, float); //! Impact parameter in XY of the track to the primary vertex
DECLARE_SOA_COLUMN(DcaZTrig, dcaZTrig, float); //! Impact parameter in Z of the track to the primary vertex
// General associated particle columns
DECLARE_SOA_COLUMN(EtaAssoc, etaAssoc, float); //! Eta of the associated candidate
DECLARE_SOA_COLUMN(PhiAssoc, phiAssoc, float); //! Phi of the associated candidate
DECLARE_SOA_COLUMN(PtAssoc, ptAssoc, float); //! Pt of the associated candidate
DECLARE_SOA_COLUMN(EtaAssoc, etaAssoc, float); //! Eta of the associated candidate
DECLARE_SOA_COLUMN(PhiAssoc, phiAssoc, float); //! Phi of the associated candidate
DECLARE_SOA_COLUMN(PtAssoc, ptAssoc, float); //! Pt of the associated candidate
// Hadron associated particle selection columns
DECLARE_SOA_COLUMN(NTpcCrossedRowsAssoc, nTpcCrossedRowsAssoc, int); //! Number of crossed TPC Rows
DECLARE_SOA_COLUMN(ItsClsMapAssoc, itsClsMapAssoc, int); //! ITS cluster map, one bit per a layer, starting from the innermost
Expand Down
14 changes: 7 additions & 7 deletions PWGHF/HFC/TableProducer/correlatorFlowCharmHadronsReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ double getPhi(const TTrack& track)
}

struct HfCorrelatorFlowCharmHadronsReduced {
Produces<aod::HfcRedSEChHads> rowPairSECharmHads; //! Correlation pairs information Same Event
Produces<aod::HfcRedMEChHads> rowPairMECharmHads; //! Correlation pairs information Mixed Event
Produces<aod::HfcRedSEHadHads> rowPairSEHadHads; //! Correlation pairs information Same Event
Produces<aod::HfcRedMEHadHads> rowPairMEHadHads; //! Correlation pairs information Mixed Event
Produces<aod::HfcRedSEChHads> rowPairSECharmHads; //! Correlation pairs information Same Event
Produces<aod::HfcRedMEChHads> rowPairMECharmHads; //! Correlation pairs information Mixed Event
Produces<aod::HfcRedSEHadHads> rowPairSEHadHads; //! Correlation pairs information Same Event
Produces<aod::HfcRedMEHadHads> rowPairMEHadHads; //! Correlation pairs information Mixed Event

Configurable<bool> fillSparses{"fillSparses", true, "Fill sparse histograms"};
Configurable<bool> fillTables{"fillTables", false, "Fill tables"};
Expand Down Expand Up @@ -157,7 +157,7 @@ struct HfCorrelatorFlowCharmHadronsReduced {
if (!fillSparses && !fillTables) {
LOGP(fatal, "At least one of fillSparses or fillTables must be true!");
}
if (binsPtTrig.value.size() != (bkgScoresPtMaxs.value.size() + 1) ) {
if (binsPtTrig.value.size() != (bkgScoresPtMaxs.value.size() + 1)) {
LOGP(fatal, "The size of binsPtTrig must be the one of bkgScorePtMaxs plus one!");
}

Expand Down Expand Up @@ -244,10 +244,10 @@ struct HfCorrelatorFlowCharmHadronsReduced {
/// Apply pT-differential ML BDT bkg score cut
/// \param ptTrig is the pT of the charm candidate
template <typename TCand>
bool applyMlBkgScoreCut(TCand const& cand,
bool applyMlBkgScoreCut(TCand const& cand,
double ptTrig)
{
for (size_t iPt = 0; iPt < binsPtTrig.value.size()-1; iPt++) {
for (size_t iPt = 0; iPt < binsPtTrig.value.size() - 1; iPt++) {
if (ptTrig >= binsPtTrig.value[iPt] && ptTrig < binsPtTrig.value[iPt + 1]) {
return cand.bdtScore0Trig() < bkgScoresPtMaxs.value[iPt];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ enum CandType {

/// Code to select collisions with at least one Ds meson
struct HfDerivedDataCreatorCorrelationsReduced {
Produces<aod::HfcRedCorrColls> rowCollisions; // Table with reduced collision info
Produces<aod::HfcRedSEBases> rowSEPairs; // Table with same-event pairs info
Produces<aod::HfcRedAssBases> rowAssocBases; // Table with associated candidate base info
Produces<aod::HfcRedAssTracks> rowAssocTrkSels; // Table with associated track selection info
Produces<aod::HfcRedTrigBases> rowTrigBases; // Table with base trigger candidate info
Produces<aod::HfcRedTrigCharms> rowTrigCharms; // Table with charm trigger candidate selection info
Produces<aod::HfcRedTrigTracks> rowTrigHads; // Table with hadron trigger candidate selection info
Produces<aod::HfcRedCorrColls> rowCollisions; // Table with reduced collision info
Produces<aod::HfcRedSEBases> rowSEPairs; // Table with same-event pairs info
Produces<aod::HfcRedAssBases> rowAssocBases; // Table with associated candidate base info
Produces<aod::HfcRedAssTracks> rowAssocTrkSels; // Table with associated track selection info
Produces<aod::HfcRedTrigBases> rowTrigBases; // Table with base trigger candidate info
Produces<aod::HfcRedTrigCharms> rowTrigCharms; // Table with charm trigger candidate selection info
Produces<aod::HfcRedTrigTracks> rowTrigHads; // Table with hadron trigger candidate selection info

Configurable<int> centEstimator{"centEstimator", 2, "Centrality estimation (FT0A: 1, FT0C: 2, FT0M: 3, FV0A: 4)"};
Configurable<int> selectionFlag{"selectionFlag", 15, "Selection Flag for hadron (ML score tables are required to run the task)"};
Expand Down
Loading