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 Oct 10, 2024
1 parent 598c4a0 commit 2f9998f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
2 changes: 1 addition & 1 deletion PWGLF/DataModel/LFStrangenessTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace o2::aod
// for DF name follow-up and debug
namespace straorigin
{
DECLARE_SOA_COLUMN(DataframeID, dataframeID, uint64_t); //! Data frame ID (what is usually found in directory name in the AO2D.root, i.e.
DECLARE_SOA_COLUMN(DataframeID, dataframeID, uint64_t); //! Data frame ID (what is usually found in directory name in the AO2D.root, i.e.
} // namespace straorigin

DECLARE_SOA_TABLE(StraOrigins, "AOD", "STRAORIGIN", //! Table which contains the IDs of all dataframes merged into this dataframe
Expand Down
3 changes: 1 addition & 2 deletions PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ struct strangederivedbuilder {
// Debug
Produces<aod::StraOrigins> straOrigin;


// histogram registry for bookkeeping
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};

Expand Down Expand Up @@ -873,7 +872,7 @@ struct strangederivedbuilder {

void processDataframeIDs(aod::Origins const& origins)
{
auto origin = origins.begin();
auto origin = origins.begin();
straOrigin(origin.dataframeID());
}

Expand Down
44 changes: 22 additions & 22 deletions PWGLF/Tasks/QC/strangederivedqa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,28 @@ struct strangederivedqa {
bool ordered = true;
int previousIndex = -100;
for (auto const& v0 : fullV0s) {
if(v0.collisionId() < previousIndex){
if (v0.collisionId() < previousIndex) {
ordered = false;
}
previousIndex = v0.collisionId();
previousIndex = v0.collisionId();
}
if(ordered){
if (ordered) {
histos.fill(HIST("hEventCounter"), 0.0f, 1.0f, collisions.size());
histos.fill(HIST("hEventsPerDF"), collisions.size(), 1.0f);
histos.fill(HIST("hV0sPerDF"), fullV0s.size(), 1.0f);

if(verbose){
auto origin = origins.begin();
LOGF(info, "Sorted DF ID: %lld collisions: %i V0s: %i", origin.dataframeID(), collisions.size(), fullV0s.size());
if (verbose) {
auto origin = origins.begin();
LOGF(info, "Sorted DF ID: %lld collisions: %i V0s: %i", origin.dataframeID(), collisions.size(), fullV0s.size());
}
}else{
} else {
histos.fill(HIST("hEventCounter"), 0.0f, 2.0f, collisions.size());
histos.fill(HIST("hEventsPerDF"), collisions.size(), 2.0f);
histos.fill(HIST("hV0sPerDF"), fullV0s.size(), 2.0f);

if(verbose){
auto origin = origins.begin();
LOGF(info, "Unsorted DF ID: %lld collisions: %i V0s: %i", origin.dataframeID(), collisions.size(), fullV0s.size());
if (verbose) {
auto origin = origins.begin();
LOGF(info, "Unsorted DF ID: %lld collisions: %i V0s: %i", origin.dataframeID(), collisions.size(), fullV0s.size());
}
}
}
Expand All @@ -117,31 +117,31 @@ struct strangederivedqa {
bool ordered = true;
int previousIndex = -100;
for (auto const& v0 : fullV0s) {
if(v0.straCollisionId() < previousIndex){
if (v0.straCollisionId() < previousIndex) {
ordered = false;
}
previousIndex = v0.straCollisionId();
previousIndex = v0.straCollisionId();
}
if(ordered){
if (ordered) {
histos.fill(HIST("hEventCounter"), 0.0f, 1.0f, collisions.size());
histos.fill(HIST("hEventsPerDF"), collisions.size(), 1.0f);
histos.fill(HIST("hV0sPerDF"), fullV0s.size(), 1.0f);

if(verbose){
auto origin = origins.begin();
LOGF(info, "Sorted DF ID: %lld collisions: %i V0s: %i Origins size: %i", origin.dataframeID(), collisions.size(), fullV0s.size(), origins.size());
if (verbose) {
auto origin = origins.begin();
LOGF(info, "Sorted DF ID: %lld collisions: %i V0s: %i Origins size: %i", origin.dataframeID(), collisions.size(), fullV0s.size(), origins.size());
}
}else{
} else {
histos.fill(HIST("hEventCounter"), 0.0f, 2.0f, collisions.size());
histos.fill(HIST("hEventsPerDF"), collisions.size(), 2.0f);
histos.fill(HIST("hV0sPerDF"), fullV0s.size(), 2.0f);

if(verbose){
auto origin = origins.begin();
LOGF(info, "Unsorted DF ID: %lld collisions: %i V0s: %i Origins size: %i", origin.dataframeID(), collisions.size(), fullV0s.size(), origins.size());
if (verbose) {
auto origin = origins.begin();
LOGF(info, "Unsorted DF ID: %lld collisions: %i V0s: %i Origins size: %i", origin.dataframeID(), collisions.size(), fullV0s.size(), origins.size());
uint64_t directoryName = origin.dataframeID();
for(auto const& orig : origins){
LOGF(info, "Unsorted DF ID: %lld separate origin: %lld", directoryName, orig.dataframeID());
for (auto const& orig : origins) {
LOGF(info, "Unsorted DF ID: %lld separate origin: %lld", directoryName, orig.dataframeID());
}
}
}
Expand Down

0 comments on commit 2f9998f

Please sign in to comment.