Skip to content

Commit

Permalink
Further debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobrigk committed Jan 26, 2024
1 parent a3cf28a commit 227d8ec
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 3 additions & 0 deletions PWGLF/DataModel/LFStrangenessTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "Common/Core/RecoDecay.h"
#include "CommonConstants/PhysicsConstants.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/Qvectors.h"

Expand All @@ -30,6 +31,8 @@ DECLARE_SOA_TABLE(StraCollisions, "AOD", "STRACOLLISION", //! basic collision pr
DECLARE_SOA_TABLE(StraCents, "AOD", "STRACENTS", //! centrality percentiles
cent::CentFT0M, cent::CentFT0A,
cent::CentFT0C, cent::CentFV0A);
DECLARE_SOA_TABLE(StraRawCents, "AOD", "STRARAWCENTS", //! debug information
mult::MultFT0A, mult::MultFT0C, mult::MultFV0A, mult::MultNTracksPVeta1);
DECLARE_SOA_TABLE(StraEvSels, "AOD", "STRAEVSELS", //! event selection: sel8
evsel::Sel8);
DECLARE_SOA_TABLE(StraFT0AQVs, "AOD", "STRAFT0AQVS", //! t0a Qvec
Expand Down
24 changes: 22 additions & 2 deletions PWGLF/TableProducer/strangederivedbuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct strangederivedbuilder {
// fundamental building blocks of derived data
Produces<aod::StraCollision> strangeColl; // characterises collisions
Produces<aod::StraCents> strangeCents; // characterises collisions / centrality
Produces<aod::StraRawCents> strangeRawCents; // characterises collisions / centrality
Produces<aod::StraEvSels> strangeEvSels; // characterises collisions / sel8 selection
Produces<aod::StraStamps> strangeStamps; // provides timestamps, run numbers
Produces<aod::V0CollRefs> v0collref; // references collisions from V0s
Expand Down Expand Up @@ -138,6 +139,11 @@ struct strangederivedbuilder {
Configurable<bool> roundNSigmaVariables{"roundNSigmaVariables", false, "round NSigma variables"};
Configurable<float> precisionNSigmas{"precisionNSigmas", 0.1f, "precision to keep NSigmas"};

Configurable<bool> fillRawFT0A{"fillRawFT0A", false, "Fill raw FT0A information for debug"};
Configurable<bool> fillRawFT0C{"fillRawFT0C", true, "Fill raw FT0C information for debug"};
Configurable<bool> fillRawFV0A{"fillRawFV0A", false, "Fill raw FV0A information for debug"};
Configurable<bool> fillRawNTracksEta1{"fillRawNTracksEta1", true, "Fill raw NTracks |eta|<1 information for debug"};

// For manual sliceBy
Preslice<aod::V0Datas> V0perCollision = o2::aod::v0data::collisionId;
Preslice<aod::CascDatas> CascperCollision = o2::aod::cascdata::collisionId;
Expand Down Expand Up @@ -176,7 +182,7 @@ struct strangederivedbuilder {
histos.add("h2dNVerticesVsCentrality", "h2dNVerticesVsCentrality", kTH2D, {axisCentrality, axisNVertices});
}

void processCollisionsV0sOnly(soa::Join<aod::Collisions, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::CentFV0As, aod::EvSels> const& collisions, aod::V0Datas const& V0s, aod::BCsWithTimestamps const&)
void processCollisionsV0sOnly(soa::Join<aod::Collisions, aod::FT0Mults, aod::FV0Mults, aod::PVMults, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::CentFV0As, aod::EvSels> const& collisions, aod::V0Datas const& V0s, aod::BCsWithTimestamps const&)
{
for (const auto& collision : collisions) {
const uint64_t collIdx = collision.globalIndex();
Expand All @@ -190,13 +196,20 @@ struct strangederivedbuilder {
strangeEvSels(collision.sel8());
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
strangeStamps(bc.runNumber(), bc.timestamp());

if(fillRawFT0C || fillRawFT0C || fillRawFV0A || fillRawNTracksEta1){
strangeRawCents( collision.multFT0A() * static_cast<float>(fillRawFT0A),
collision.multFT0C() * static_cast<float>(fillRawFT0C),
collision.multFT0A() * static_cast<float>(fillRawFV0A),
collision.multNTracksPVeta1() * static_cast<int>(fillRawNTracksEta1) );
}
}
for (int i = 0; i < V0Table_thisColl.size(); i++)
v0collref(strangeColl.lastIndex());
}
}

void processCollisions(soa::Join<aod::Collisions, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::CentFV0As, aod::EvSels> const& collisions, aod::V0Datas const& V0s, aod::CascDatas const& Cascades, aod::KFCascDatas const& KFCascades, aod::TraCascDatas const& TraCascades, aod::BCsWithTimestamps const&)
void processCollisions(soa::Join<aod::Collisions, aod::FT0Mults, aod::FV0Mults, aod::PVMults, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs, aod::CentFV0As, aod::EvSels> const& collisions, aod::V0Datas const& V0s, aod::CascDatas const& Cascades, aod::KFCascDatas const& KFCascades, aod::TraCascDatas const& TraCascades, aod::BCsWithTimestamps const&)
{
for (const auto& collision : collisions) {
const uint64_t collIdx = collision.globalIndex();
Expand All @@ -216,6 +229,13 @@ struct strangederivedbuilder {
strangeEvSels(collision.sel8());
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
strangeStamps(bc.runNumber(), bc.timestamp());

if(fillRawFT0C || fillRawFT0C || fillRawFV0A || fillRawNTracksEta1){
strangeRawCents( collision.multFT0A() * static_cast<float>(fillRawFT0A),
collision.multFT0C() * static_cast<float>(fillRawFT0C),
collision.multFT0A() * static_cast<float>(fillRawFV0A),
collision.multNTracksPVeta1() * static_cast<int>(fillRawNTracksEta1) );
}
}
for (int i = 0; i < V0Table_thisColl.size(); i++)
v0collref(strangeColl.lastIndex());
Expand Down
1 change: 1 addition & 0 deletions PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "Common/Core/TrackSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/PIDResponse.h"

Expand Down

0 comments on commit 227d8ec

Please sign in to comment.