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
8 changes: 4 additions & 4 deletions PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,16 @@
LOGF(info, " Strangeness builder: basic configuration listing");
LOGF(info, "*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*");

if(doprocessRealData){
if (doprocessRealData) {
LOGF(info, " ===> process function enabled: processRealData");
}
if(doprocessRealDataRun2){
if (doprocessRealDataRun2) {
LOGF(info, " ===> process function enabled: processRealDataRun2");
}
if(doprocessMonteCarlo){
if (doprocessMonteCarlo) {
LOGF(info, " ===> process function enabled: processMonteCarlo");
}
if(doprocessMonteCarloRun2){
if (doprocessMonteCarloRun2) {
LOGF(info, " ===> process function enabled: processMonteCarloRun2");
}
for (int i = 0; i < nTables; i++) {
Expand Down Expand Up @@ -543,25 +543,25 @@
void populateCascadeInterlinks()
{
if (mEnabledTables[kCascToKFRefs]) {
for (auto& cascCore : interlinks.cascCoreToCascades) {

Check warning on line 546 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
cascToKFRefs(interlinks.cascadeToKFCascCores[cascCore]);
histos.fill(HIST("hTableBuildingStatistics"), kCascToKFRefs);
}
}
if (mEnabledTables[kCascToTraRefs]) {
for (auto& cascCore : interlinks.cascCoreToCascades) {

Check warning on line 552 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
cascToTraRefs(interlinks.cascadeToTraCascCores[cascCore]);
histos.fill(HIST("hTableBuildingStatistics"), kCascToTraRefs);
}
}
if (mEnabledTables[kKFToCascRefs]) {
for (auto& kfCascCore : interlinks.kfCascCoreToCascades) {

Check warning on line 558 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
kfToCascRefs(interlinks.cascadeToCascCores[kfCascCore]);
histos.fill(HIST("hTableBuildingStatistics"), kKFToCascRefs);
}
}
if (mEnabledTables[kTraToCascRefs]) {
for (auto& traCascCore : interlinks.traCascCoreToCascades) {

Check warning on line 564 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
traToCascRefs(interlinks.cascadeToCascCores[traCascCore]);
histos.fill(HIST("hTableBuildingStatistics"), kTraToCascRefs);
}
Expand All @@ -577,7 +577,7 @@
v0Map.clear();
v0Map.resize(v0s.size(), -2); // marks not used
if (mEnabledTables[kStoredCascCores]) {
for (auto& cascade : cascades) {

Check warning on line 580 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (v0Map[cascade.v0Id()] == -2) {
v0sUsedInCascades++;
}
Expand Down Expand Up @@ -657,7 +657,7 @@
straHelper.v0.daughterDCA,
straHelper.v0.positiveDCAxy,
straHelper.v0.negativeDCAxy,
TMath::Cos(straHelper.v0.pointingAngle),

Check warning on line 660 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
straHelper.v0.dcaXY,
v0.v0Type());
v0dataLink(v0cores.lastIndex(), -1);
Expand Down Expand Up @@ -844,7 +844,7 @@
if (mcParticleIsReco[mcParticle.globalIndex()] == true)
continue; // skip if already created in list

if (TMath::Abs(mcParticle.y()) > v0BuilderOpts.mc_rapidityWindow)

Check warning on line 847 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue; // skip outside midrapidity

if (
Expand Down Expand Up @@ -1233,7 +1233,7 @@
if (mcParticleIsReco[mcParticle.globalIndex()] == true)
continue; // skip if already created in list

if (TMath::Abs(mcParticle.y()) > cascadeBuilderOpts.mc_rapidityWindow)

Check warning on line 1236 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
continue; // skip outside midrapidity

if (
Expand All @@ -1258,7 +1258,7 @@
if (dau.getProcess() != 4) // check whether the daughter comes from a decay
continue;

if (TMath::Abs(dau.pdgCode()) == 211 || TMath::Abs(dau.pdgCode()) == 321) {

Check warning on line 1261 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
thisCascInfo.pdgCodeBachelor = dau.pdgCode();
thisCascInfo.bachP[0] = dau.px();
thisCascInfo.bachP[1] = dau.py();
Expand All @@ -1268,7 +1268,7 @@
thisCascInfo.xyz[2] = dau.vz();
thisCascInfo.mcParticleBachelor = dau.globalIndex();
}
if (TMath::Abs(dau.pdgCode()) == 2212) {

Check warning on line 1271 in PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
thisCascInfo.pdgCodeV0 = dau.pdgCode();

for (auto& v0Dau : dau.template daughters_as<aod::McParticles>()) {
Expand Down
14 changes: 7 additions & 7 deletions PWGLF/TableProducer/Strangeness/strangenessbuilderfindable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -459,16 +459,16 @@ struct StrangenessBuilder {
LOGF(info, " Strangeness builder: basic configuration listing");
LOGF(info, "*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*");

if(doprocessRealData){
if (doprocessRealData) {
LOGF(info, " ===> process function enabled: processRealData");
}
if(doprocessRealDataRun2){
if (doprocessRealDataRun2) {
LOGF(info, " ===> process function enabled: processRealDataRun2");
}
if(doprocessMonteCarlo){
if (doprocessMonteCarlo) {
LOGF(info, " ===> process function enabled: processMonteCarlo");
}
if(doprocessMonteCarloRun2){
if (doprocessMonteCarloRun2) {
LOGF(info, " ===> process function enabled: processMonteCarloRun2");
}

Expand Down Expand Up @@ -970,12 +970,12 @@ struct StrangenessBuilder {
}
}
}
// we should now be done!
} // end findable mode check
// we should now be done!
} // end findable mode check
} // end soa::is_table<TMCCollisions>

// we need to allow for sorted use of cascadeList
sorted_cascade.clear();
sorted_cascade.clear();
sorted_cascade = sort_indices(cascadeList);
}

Expand Down
Loading