40 LOG(
debug) <<
"Init HMPID matching info reader!";
41 connectTree(mInFileName);
44void HMPMatchedReader::connectTree(
const std::string&
filename)
47 mFile.reset(TFile::Open(
filename.c_str()));
48 assert(mFile && !mFile->IsZombie());
49 mTree.reset((TTree*)mFile->Get(mInTreeName.c_str()));
51 mTree->SetBranchAddress(
"HMPMatchInfo", &mMatchesPtr);
53 mTree->SetBranchAddress(
"MatchHMPMCTruth", &mLabelHMPPtr);
55 LOG(
debug) <<
"Loaded tree from " <<
filename <<
" with " << mTree->GetEntries() <<
" entries";
60 auto currEntry = mTree->GetReadEntry() + 1;
61 assert(currEntry < mTree->GetEntries());
62 mTree->GetEntry(currEntry);
63 LOG(
debug) <<
"Pushing " << mMatches.size() <<
" HMP matchings at entry " << currEntry;
70 if (mTree->GetReadEntry() + 1 >= mTree->GetEntries()) {
78 std::vector<OutputSpec> outputs;
Global index for barrel track: provides provenance (detectors combination), index in respective array...
Definition of a container to keep Monte Carlo truth external to simulation objects.
Class to store the output of the matching to HMPID.
Defintions for the inter-detector matching type.
Definition of the Names Generator class.
void snapshot(const Output &spec, T const &object)
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.
void run(o2::framework::ProcessingContext &pc) final
void init(o2::framework::InitContext &ic) final
constexpr o2::header::DataOrigin gDataOriginHMP
Defining PrimaryVertex explicitly as messageable.
std::vector< InputSpec > Inputs
framework::DataProcessorSpec getHMPMatchedReaderSpec(bool useMC)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"