33 ic.
options().
get<std::string>(
"its-vertex-infile"));
39 auto ent =
mTree->GetReadEntry() + 1;
40 assert(ent < mTree->GetEntries());
43 <<
" ROFs at entry " << ent;
47 if (
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
64 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
69 std::vector<OutputSpec> outputSpec;
70 outputSpec.emplace_back(
"IT3",
"VERTICES", 0, Lifetime::Timeframe);
71 outputSpec.emplace_back(
"IT3",
"VERTICESROF", 0, Lifetime::Timeframe);
79 {
"its3-vertex-infile", VariantType::String,
"o2trac_its3.root", {
"Name of the input ITS3 vertex file"}},
80 {
"input-dir", VariantType::String,
"none", {
"Input directory"}}}};
Definition of the Names Generator class.
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.
std::string mVertexTreeName
std::string mVertexBranchName
void connectTree(const std::string &filename)
std::unique_ptr< TFile > mFile
std::string mVertexROFBranchName
std::vector< Vertex > * mVerticesPtr
std::unique_ptr< TTree > mTree
void init(o2::framework::InitContext &ic) final
std::vector< Vertex > mVertices
std::vector< o2::itsmft::ROFRecord > mVerticesROFRec
void run(o2::framework::ProcessingContext &pc) final
std::vector< o2::itsmft::ROFRecord > * mVerticesROFRecPtr
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
DataProcessorSpec getITS3VertexReaderSpec()
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"