diff --git a/PWGLF/Utils/strangenessBuilderModule.h b/PWGLF/Utils/strangenessBuilderModule.h index ad538a1f001..ab0ad79c7ab 100644 --- a/PWGLF/Utils/strangenessBuilderModule.h +++ b/PWGLF/Utils/strangenessBuilderModule.h @@ -10,7 +10,7 @@ // or submit itself to any jurisdiction. /// \file strangenessBuilderModule.h -/// \brief strangeness builder module +/// \brief strangeness builder module /// \author ALICE // simple checkers, but ensure 8 bit integers @@ -184,80 +184,80 @@ static constexpr float defaultOmMassWindowParameters[1][4] = {{1.43210e-03, 2.03 static constexpr float defaultLifetimeCuts[1][4] = {{20, 60, 40, 20}}; struct products : o2::framework::ProducesGroup { - //__________________________________________________ - // V0 tables - o2::framework::Produces v0indices; // standard part of V0Datas - o2::framework::Produces v0cores; // standard part of V0Datas - o2::framework::Produces v0covs; // for decay chain reco - - //__________________________________________________ - // cascade tables - o2::framework::Produces cascidx; // standard part of CascDatas - o2::framework::Produces kfcascidx; // standard part of KFCascDatas - o2::framework::Produces tracascidx; // standard part of TraCascDatas - o2::framework::Produces cascdata; // standard part of CascDatas - o2::framework::Produces kfcascdata; // standard part of KFCascDatas - o2::framework::Produces tracascdata; // standard part of TraCascDatas - o2::framework::Produces casccovs; // for decay chain reco - o2::framework::Produces kfcasccovs; // for decay chain reco - o2::framework::Produces tracasccovs; // for decay chain reco - - //__________________________________________________ - // interlink tables - o2::framework::Produces v0dataLink; // de-refs V0s -> V0Data - o2::framework::Produces cascdataLink; // de-refs Cascades -> CascData - o2::framework::Produces kfcascdataLink; // de-refs Cascades -> KFCascData - o2::framework::Produces tracascdataLink; // de-refs Cascades -> TraCascData - - //__________________________________________________ - // secondary auxiliary tables - o2::framework::Produces v0trackXs; // for decay chain reco - o2::framework::Produces cascTrackXs; // for decay chain reco - - //__________________________________________________ - // further auxiliary / optional if desired - o2::framework::Produces cascbb; - o2::framework::Produces v0daucovs; // covariances of daughter tracks - o2::framework::Produces v0daucovIUs; // covariances of daughter tracks - o2::framework::Produces v0dauPositions; // auxiliary debug information - o2::framework::Produces v0dauPositionsIU; // auxiliary debug information - o2::framework::Produces v0ivanovs; // information for Marian's tests - - //__________________________________________________ - // MC information: V0 - o2::framework::Produces v0labels; // MC labels for V0s - o2::framework::Produces v0mccores; // mc info storage - o2::framework::Produces v0CoreMCLabels; // interlink V0Cores -> V0MCCores - o2::framework::Produces v0mccollref; // references collisions from V0MCCores - - // MC information: Cascades - o2::framework::Produces casclabels; // MC labels for cascades - o2::framework::Produces kfcasclabels; // MC labels for KF cascades - o2::framework::Produces tracasclabels; // MC labels for tracked cascades - o2::framework::Produces bbtags; // bb tags (inv structure tagging in mc) - o2::framework::Produces cascmccores; // mc info storage - o2::framework::Produces cascCoreMClabels; // interlink CascCores -> CascMCCores - o2::framework::Produces cascmccollrefs; // references MC collisions from MC cascades - - //__________________________________________________ - // cascade interlinks - // FIXME: commented out until strangederivedbuilder adjusted accordingly - // o2::framework::Produces cascToTraRefs; // cascades -> tracked - // o2::framework::Produces cascToKFRefs; // cascades -> KF - // o2::framework::Produces traToCascRefs; // tracked -> cascades - // o2::framework::Produces kfToCascRefs; // KF -> cascades - - //__________________________________________________ - // Findable tags - o2::framework::Produces v0FoundTag; - o2::framework::Produces cascFoundTag; + //__________________________________________________ + // V0 tables + o2::framework::Produces v0indices; // standard part of V0Datas + o2::framework::Produces v0cores; // standard part of V0Datas + o2::framework::Produces v0covs; // for decay chain reco + + //__________________________________________________ + // cascade tables + o2::framework::Produces cascidx; // standard part of CascDatas + o2::framework::Produces kfcascidx; // standard part of KFCascDatas + o2::framework::Produces tracascidx; // standard part of TraCascDatas + o2::framework::Produces cascdata; // standard part of CascDatas + o2::framework::Produces kfcascdata; // standard part of KFCascDatas + o2::framework::Produces tracascdata; // standard part of TraCascDatas + o2::framework::Produces casccovs; // for decay chain reco + o2::framework::Produces kfcasccovs; // for decay chain reco + o2::framework::Produces tracasccovs; // for decay chain reco + + //__________________________________________________ + // interlink tables + o2::framework::Produces v0dataLink; // de-refs V0s -> V0Data + o2::framework::Produces cascdataLink; // de-refs Cascades -> CascData + o2::framework::Produces kfcascdataLink; // de-refs Cascades -> KFCascData + o2::framework::Produces tracascdataLink; // de-refs Cascades -> TraCascData + + //__________________________________________________ + // secondary auxiliary tables + o2::framework::Produces v0trackXs; // for decay chain reco + o2::framework::Produces cascTrackXs; // for decay chain reco + + //__________________________________________________ + // further auxiliary / optional if desired + o2::framework::Produces cascbb; + o2::framework::Produces v0daucovs; // covariances of daughter tracks + o2::framework::Produces v0daucovIUs; // covariances of daughter tracks + o2::framework::Produces v0dauPositions; // auxiliary debug information + o2::framework::Produces v0dauPositionsIU; // auxiliary debug information + o2::framework::Produces v0ivanovs; // information for Marian's tests + + //__________________________________________________ + // MC information: V0 + o2::framework::Produces v0labels; // MC labels for V0s + o2::framework::Produces v0mccores; // mc info storage + o2::framework::Produces v0CoreMCLabels; // interlink V0Cores -> V0MCCores + o2::framework::Produces v0mccollref; // references collisions from V0MCCores + + // MC information: Cascades + o2::framework::Produces casclabels; // MC labels for cascades + o2::framework::Produces kfcasclabels; // MC labels for KF cascades + o2::framework::Produces tracasclabels; // MC labels for tracked cascades + o2::framework::Produces bbtags; // bb tags (inv structure tagging in mc) + o2::framework::Produces cascmccores; // mc info storage + o2::framework::Produces cascCoreMClabels; // interlink CascCores -> CascMCCores + o2::framework::Produces cascmccollrefs; // references MC collisions from MC cascades + + //__________________________________________________ + // cascade interlinks + // FIXME: commented out until strangederivedbuilder adjusted accordingly + // o2::framework::Produces cascToTraRefs; // cascades -> tracked + // o2::framework::Produces cascToKFRefs; // cascades -> KF + // o2::framework::Produces traToCascRefs; // tracked -> cascades + // o2::framework::Produces kfToCascRefs; // KF -> cascades + + //__________________________________________________ + // Findable tags + o2::framework::Produces v0FoundTag; + o2::framework::Produces cascFoundTag; }; // strangenessBuilder: 1st-order configurables struct coreConfigurables : o2::framework::ConfigurableGroup { o2::framework::Configurable> enabledTables{"enabledTables", - {defaultParameters[0], nTables, nParameters, tableNames, parameterNames}, - "Produce this table: -1 for autodetect; otherwise, 0/1 is false/true"}; + {defaultParameters[0], nTables, nParameters, tableNames, parameterNames}, + "Produce this table: -1 for autodetect; otherwise, 0/1 is false/true"}; std::vector mEnabledTables; // Vector of enabled tables // first order deduplication implementation @@ -371,7 +371,7 @@ class BuilderModule // constructor } - // mass windows + // mass windows float getMassSigmaK0Short(float pt) { return preSelectOpts.massCutK0->get("constant") + pt * preSelectOpts.massCutK0->get("linear") + preSelectOpts.massCutK0->get("expoConstant") * TMath::Exp(-pt / preSelectOpts.massCutK0->get("expoRelax")); @@ -494,7 +494,7 @@ class BuilderModule std::vector ao2dV0toV0List; // index to relate v0s -> v0List std::vector v0Map; // index to relate v0List -> v0sFromCascades - // declaration of structs here + // declaration of structs here // (N.B.: will be invisible to the outside, create your own copies) o2::pwglf::strangenessbuilder::coreConfigurables baseOpts; o2::pwglf::strangenessbuilder::v0Configurables v0BuilderOpts; @@ -504,11 +504,11 @@ class BuilderModule template void init(TBaseConfigurables const& inputBaseOpts, TV0Configurables const& inputV0BuilderOpts, TCascadeConfigurables const& inputCascadeBuilderOpts, TPreSelOpts const& inputPreSelectOpts, THistoRegistry& histos, TInitContext& context) { - // read in configurations from the task where it's used + // read in configurations from the task where it's used // could be grouped even further, but should work baseOpts = inputBaseOpts; - v0BuilderOpts = inputV0BuilderOpts; - cascadeBuilderOpts = inputCascadeBuilderOpts; + v0BuilderOpts = inputV0BuilderOpts; + cascadeBuilderOpts = inputCascadeBuilderOpts; preSelectOpts = inputPreSelectOpts; // setup bookkeeping histogram @@ -773,7 +773,6 @@ class BuilderModule // } } - //__________________________________________________ template void prepareBuildingLists(THistoRegistry& histos, TCollisions const& collisions, TMCCollisions const& mcCollisions, TV0s const& v0s, TCascades const& cascades, TTracks const& tracks, TMCParticles const& mcParticles)