34 ic.
options().
get<std::string>(
"filtered-tf-infile"));
42 auto ent =
mTree->GetReadEntry() + 1;
43 assert(ent < mTree->GetEntries());
58 if (
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
73 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
79 std::vector<OutputSpec> outputSpec;
81 outputSpec.emplace_back(
"ITS",
"ITSTrackROF", 0, Lifetime::Timeframe);
82 outputSpec.emplace_back(
"ITS",
"TRACKS", 0, Lifetime::Timeframe);
83 outputSpec.emplace_back(
"ITS",
"TRACKCLSID", 0, Lifetime::Timeframe);
85 outputSpec.emplace_back(
"ITS",
"TRACKSMCTR", 0, Lifetime::Timeframe);
88 outputSpec.emplace_back(
"ITS",
"CLUSTERSROF", 0, Lifetime::Timeframe);
89 outputSpec.emplace_back(
"ITS",
"COMPCLUSTERS", 0, Lifetime::Timeframe);
90 outputSpec.emplace_back(
"ITS",
"PATTERNS", 0, Lifetime::Timeframe);
93 "filtered-reco-tf-reader",
98 {
"filtered-tf-infile", VariantType::String,
"o2_filtered_tf.root", {
"Name of the input file"}},
99 {
"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 PrimaryVertex 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"