30namespace globaltracking
56 ic.
options().
get<std::string>(
"irframe-infile"));
62 auto ent =
mTree->GetReadEntry() + 1;
63 assert(ent < mTree->GetEntries());
65 LOG(
debug) <<
"Pushing " <<
mIRF.size() <<
" IR-frames in at entry " << ent;
68 if (
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
84 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
89 std::vector<OutputSpec> outputSpec;
94 Outputs{{origin,
"IRFRAMES", subSpec, Lifetime::Timeframe}},
95 AlgorithmSpec{adaptFromTask<IRFrameReaderSpec>(origin, subSpec)},
97 {
"irframe-infile", VariantType::String, defFileName, {
"Name of the input IRFrames file"}},
98 {
"input-dir", VariantType::String,
"none", {
"Input directory"}}}};
Class to delimit start and end IR of certain time period.
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.
IRFrameReaderSpec(o2::header::DataOrigin origin, uint32_t subSpec)
void run(o2::framework::ProcessingContext &pc) final
std::unique_ptr< TFile > mFile
std::unique_ptr< TTree > mTree
void init(o2::framework::InitContext &ic) final
~IRFrameReaderSpec() override=default
o2::header::DataOrigin mDataOrigin
void connectTree(const std::string &filename)
std::string mInputFileName
std::vector< o2::dataformats::IRFrame > mIRF
std::vector< o2::dataformats::IRFrame > * mIRFInp
constexpr o2::header::DataOrigin gDataOriginInvalid
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
framework::DataProcessorSpec getIRFrameReaderSpec(o2::header::DataOrigin origin, uint32_t subSpec, const std::string &devName, const std::string &defFileName)
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"