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
5 changes: 4 additions & 1 deletion PWGLF/DataModel/LFStrangenessTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,14 @@ DECLARE_SOA_TABLE(StraFT0CQVsEv, "AOD", "STRAFT0CQVSEv", //! events used to comp
epcalibrationtable::TriggerEventEP);
DECLARE_SOA_TABLE(StraZDCSP, "AOD", "STRAZDCSP", //! events used to compute the ZDC spectator plane
spcalibrationtable::TriggerEventSP, spcalibrationtable::PsiZDCA, spcalibrationtable::PsiZDCC);
DECLARE_SOA_TABLE(StraStamps, "AOD", "STRASTAMPS", //! information for ID-ing mag field if needed
DECLARE_SOA_TABLE(StraStamps_000, "AOD", "STRASTAMPS", //! information for ID-ing mag field if needed
bc::RunNumber, timestamp::Timestamp);
DECLARE_SOA_TABLE_VERSIONED(StraStamps_001, "AOD", "STRASTAMPS", 1, //! information for ID-ing mag field if needed
bc::RunNumber, timestamp::Timestamp, bc::GlobalBC);

using StraRawCents = StraRawCents_004;
using StraEvSels = StraEvSels_003;
using StraStamps = StraStamps_001;
using StraCollision = StraCollisions::iterator;
using StraCent = StraCents::iterator;

Expand Down
5 changes: 5 additions & 0 deletions PWGLF/TableProducer/Strangeness/Converters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,9 @@ o2physics_add_dpl_workflow(v0mlscoresconverter
o2physics_add_dpl_workflow(stramccollisionconverter
SOURCES stramccollisionconverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(strastampsconverter
SOURCES strastampsconverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
#include "PWGLF/DataModel/LFStrangenessTables.h"

using namespace o2;
using namespace o2::framework;

// Converts Stra Stamps from 000 to 001
struct strastampsconverter {
Produces<aod::StraStamps_001> straStamps_001;

void process(aod::StraStamps_000 const& straStamps_000)
{
for (auto& values : straStamps_000) {
straStamps_001(values.runNumber(),
values.timestamp(),
0 /*dummy globalBC value*/);
}
}
};

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{
adaptAnalysisTask<strastampsconverter>(cfgc)};
}
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ struct strangederivedbuilder {
energyCommonZNA, energyCommonZNC,
// Collision flags
collision.flags());
strangeStamps(bc.runNumber(), bc.timestamp());
strangeStamps(bc.runNumber(), bc.timestamp(), bc.globalBC());
}
for (const auto& v0 : V0Table_thisColl)
V0CollIndices[v0.globalIndex()] = strangeColl.lastIndex();
Expand Down
Loading