38 ic.
options().
get<std::string>(
"mft-tracks-infile"));
44 auto ent =
mTree->GetReadEntry() + 1;
50 const bool noEntry = ent >=
mTree->GetEntries();
52 LOG(info) <<
"no entry to read, publishing empty output";
56 LOG(info) <<
"Pushing " <<
mTracks.size() <<
" track in " <<
mROFRec.size() <<
" ROFs at entry " << ent;
64 if (noEntry ||
mTree->GetReadEntry() + 1 >=
mTree->GetEntries()) {
87 LOG(warning) <<
"MC-truth is missing, message will be empty";
90 LOG(info) <<
"Loaded tree from " <<
filename <<
" with " <<
mTree->GetEntries() <<
" entries";
95 std::vector<OutputSpec> outputSpec;
96 outputSpec.emplace_back(
"MFT",
"MFTTrackROF", 0, Lifetime::Timeframe);
97 outputSpec.emplace_back(
"MFT",
"TRACKS", 0, Lifetime::Timeframe);
98 outputSpec.emplace_back(
"MFT",
"TRACKCLSID", 0, Lifetime::Timeframe);
100 outputSpec.emplace_back(
"MFT",
"TRACKSMCTR", 0, Lifetime::Timeframe);
109 {
"mft-tracks-infile", VariantType::String,
"mfttracks.root", {
"Name of the input track file"}},
110 {
"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::vector< int > * mClusIndInp
std::string mTrackMCTruthBranchName
void init(o2::framework::InitContext &ic) final
TrackReader(bool useMC=true)
std::vector< o2::itsmft::ROFRecord > mROFRec
std::string mInputFileName
std::vector< o2::mft::TrackMFT > mTracks
void run(o2::framework::ProcessingContext &pc) final
std::unique_ptr< TTree > mTree
std::vector< o2::MCCompLabel > mMCTruth
std::string mTrackBranchName
std::vector< int > mClusInd
std::vector< o2::MCCompLabel > * mMCTruthInp
std::unique_ptr< TFile > mFile
std::string mTrackTreeName
std::string mClusIdxBranchName
std::vector< o2::itsmft::ROFRecord > * mROFRecInp
std::vector< o2::mft::TrackMFT > * mTracksInp
o2::header::DataOrigin mOrigin
void connectTree(const std::string &filename)
std::string mROFBranchName
Defining ITS Vertex explicitly as messageable.
std::vector< ConfigParamSpec > Options
std::vector< InputSpec > Inputs
framework::DataProcessorSpec getMFTTrackReaderSpec(bool useMC=true)
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"