37 ic.
options().
get<std::string>(
"cpv-digits-infile"));
43 auto ent =
mTree->GetReadEntry() + 1;
44 assert(ent < mTree->GetEntries());
46 LOG(info) <<
"Pushing " <<
mDigits.size() <<
" Digits in " <<
mTRs.size() <<
" TriggerRecords at entry " << ent;
53 if (
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
74 LOG(warning) <<
"MC-truth is missing, message will be empty";
77 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
82 std::vector<OutputSpec> outputSpec;
83 outputSpec.emplace_back(
"CPV",
"DIGITS", 0, Lifetime::Timeframe);
84 outputSpec.emplace_back(
"CPV",
"DIGITTRIGREC", 0, Lifetime::Timeframe);
86 outputSpec.emplace_back(
"CPV",
"DIGITSMCTR", 0, Lifetime::Timeframe);
95 {
"cpv-digits-infile", VariantType::String,
"cpvdigits.root", {
"Name of the input Digit file"}},
96 {
"input-dir", VariantType::String,
"none", {
"Input directory"}}}};
Definition of the Names Generator class.
std::vector< o2::cpv::TriggerRecord > mTRs
std::string mDigitBranchName
std::vector< o2::cpv::Digit > * mDigitsInp
o2::dataformats::MCTruthContainer< o2::MCCompLabel > mMCTruth
o2::header::DataOrigin mOrigin
std::string mDigitTreeName
std::vector< o2::cpv::Digit > mDigits
std::string mInputFileName
void connectTree(const std::string &filename)
std::vector< o2::cpv::TriggerRecord > * mTRsInp
std::string mTRBranchName
std::unique_ptr< TFile > mFile
DigitReader(bool useMC=true)
std::string mDigitMCTruthBranchName
void init(o2::framework::InitContext &ic) final
void run(o2::framework::ProcessingContext &pc) final
o2::dataformats::MCTruthContainer< o2::MCCompLabel > * mMCTruthInp
std::unique_ptr< TTree > mTree
T get(const char *key) const
void snapshot(const Output &spec, T const &object)
ConfigParamRegistry const & options()
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
ServiceRegistryRef services()
The services registry associated with this processing context.
virtual void endOfStream(EndOfStreamContext &context)
This is invoked whenever we have an EndOfStream event.
framework::DataProcessorSpec getCPVDigitReaderSpec(bool useMC=true)
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static std::string rectifyDirectory(const std::string_view p)
static std::string concat_string(Ts const &... ts)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"