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