9 #ifndef NAIA_SINGLETREECHAIN_H
10 #define NAIA_SINGLETREECHAIN_H
140 int Add(
const std::string &filePath);
223 void SetEntryList(TEntryList *entryList, Option_t *option);
293 return !(lhs == rhs);
SkimTreeHandle< SingleTreeChain > CreateSkimTree(const std::string &filename, const std::string &exclBranches)
Create a new SkimTree handle object and setup all internal branches.
SkimTreeHandle class description.
Event & GetEvent(unsigned long long iEv)
Get the Event object.
Helper class to ease skimming operations.
TChain * GetRTITree()
Get the RTIInfo TTree object.
unsigned long long m_entry
void SetDirectory(TDirectory *directory)
Set the TDirectory for the trees.
MCFileInfo * m_fileInfoMCPtr
needed for SetBranchAddress
bool operator==(const SingleTreeChain::EventItr &lhs, const SingleTreeChain::EventItr &rhs)
needed for SetBranchAddress
int FillRTI()
Fill the RTI data.
const FileInfo & GetEventFileInfo()
Get the FileInfo object associated with this event.
Event & GetEventWithIndex(unsigned int run, unsigned int eventno)
Get the Event object using the underlying index.
void Clear()
Clear all containers.
TChain * GetFileInfoTree()
Get the FileInfo TTree object.
void Clear()
Clear all the event information.
void SetEntryList(TEntryList *entryList, Option_t *option)
Set an entry list for this tree.
SingleTreeChain(AccessMode mode=AccessMode::Read)
Construct a new Single Tree Chain object.
int Write()
Write the trees to disk.
EventItr(unsigned long long entry, SingleTreeChain *chain)
int Add(const std::string &filePath)
Add a file to the chain.
FileInfo container class description.
Container class for processed File information.
const RTIInfo & GetEventRTIInfo()
Get the RTIInfo object associated with this event.
bool IsMC()
Check if this file is a MC file.
SingleTreeChain::EventItr end(SingleTreeChain &chain)
friend bool operator==(const EventItr &lhs, const EventItr &rhs)
Container class for additional MC File information.
AccessMode
Simple enum to express whether we are in read or write mode.
SingleTreeChain * m_chain
RTIInfo * m_rtiInfoPtr
needed for SetBranchAddress
SingleTreeChain::EventItr begin(SingleTreeChain &chain)
int FillFileInfo()
Fill the FileInfo data.
unsigned long int GetEntries()
Get the total number of events.
const MCFileInfo & GetEventMCFileInfo()
Get the MCFileInfo object associated with this event.
static const std::string BranchName
int Fill()
Fill the event data.
RTIInfo container class description.
void SetupBranches(bool isMC=false)
Set all branch addresses for reading operations, or create all branches for writing operation...
bool operator!=(const SingleTreeChain::EventItr &lhs, const SingleTreeChain::EventItr &rhs)
Container class for RTI info.
void Print()
Print all the chains.