34 ic.
options().
get<std::string>(
"filtered-tf-infile"));
42 auto ent =
mTree->GetReadEntry() + 1;
48 const bool noEntry = ent >=
mTree->GetEntries();
50 LOG(info) <<
"no entry to read, publishing empty output";
67 if (noEntry ||
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
82 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
88 std::vector<OutputSpec> outputSpec;
90 outputSpec.emplace_back(
"ITS",
"ITSTrackROF", 0, Lifetime::Timeframe);
91 outputSpec.emplace_back(
"ITS",
"TRACKS", 0, Lifetime::Timeframe);
92 outputSpec.emplace_back(
"ITS",
"TRACKCLSID", 0, Lifetime::Timeframe);
94 outputSpec.emplace_back(
"ITS",
"TRACKSMCTR", 0, Lifetime::Timeframe);
97 outputSpec.emplace_back(
"ITS",
"CLUSTERSROF", 0, Lifetime::Timeframe);
98 outputSpec.emplace_back(
"ITS",
"COMPCLUSTERS", 0, Lifetime::Timeframe);
99 outputSpec.emplace_back(
"ITS",
"PATTERNS", 0, Lifetime::Timeframe);
102 "filtered-reco-tf-reader",
107 {
"filtered-tf-infile", VariantType::String,
"o2_filtered_tf.root", {
"Name of the input file"}},
108 {
"input-dir", VariantType::String,
"none", {
"Input directory"}}}};
Reader for the reconstructed and filtered TF.
Definition of the Names Generator class.
FilteredTFReader(bool useMC=true)
std::unique_ptr< TTree > mTree
void run(o2::framework::ProcessingContext &pc) final
std::string mFTFBranchName
void init(o2::framework::InitContext &ic) final
std::string mInputFileName
o2::dataformats::FilteredRecoTF mFiltTF
std::string mInputTreeName
o2::dataformats::FilteredRecoTF * mFiltTFPtr
void connectTree(const std::string &filename)
std::unique_ptr< TFile > mFile
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.
DataProcessorSpec getFilteredTFReaderSpec(bool useMC)
Defining ITS Vertex explicitly as messageable.
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
static std::string rectifyDirectory(const std::string_view p)
static std::string concat_string(Ts const &... ts)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"