Virtual base class for event loops.
More...
#include "NAGASH/LoopEvent.h"
|
| static std::recursive_mutex | DefaultMutex = std::recursive_mutex() |
| | Default mutex, for multi-thread usage.
|
| |
Virtual base class for event loops.
Example of usage of LoopEvent can be found in topic Analysis Classes.
Definition at line 25 of file LoopEvent.h.
◆ LoopEvent()
| NAGASH::LoopEvent::LoopEvent |
( |
const ConfigTool & |
c | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 30 of file LoopEvent.h.
◆ ~LoopEvent()
| LoopEvent::~LoopEvent |
( |
| ) |
|
|
virtual |
◆ CurrentEntry()
| int NAGASH::LoopEvent::CurrentEntry |
( |
| ) |
|
|
inlineprotected |
Get the current entry number in the Root TTree.
Definition at line 68 of file LoopEvent.h.
◆ EventVectorUser()
| std::shared_ptr< EventVector > NAGASH::LoopEvent::EventVectorUser |
( |
| ) |
|
|
inlineprotected |
◆ Execute()
Execute this function for each event.
◆ Finalize()
| virtual StatusCode NAGASH::LoopEvent::Finalize |
( |
| ) |
|
|
pure virtual |
you can do something here after the loop for this file.
◆ InitializeData()
| virtual StatusCode NAGASH::LoopEvent::InitializeData |
( |
| ) |
|
|
pure virtual |
Initialize the input data. Most times, this function can be automatically generated using NAGASHMakeClass command.
◆ InitializeUser()
| virtual StatusCode NAGASH::LoopEvent::InitializeUser |
( |
| ) |
|
|
pure virtual |
Initialize user-defined variables.
◆ InputRootFileName()
| const TString & NAGASH::LoopEvent::InputRootFileName |
( |
| ) |
|
|
inlineprotected |
Get the input root file name.
Definition at line 72 of file LoopEvent.h.
◆ OpenRootFile()
| StatusCode LoopEvent::OpenRootFile |
( |
const TString & |
filename | ) |
|
open the ROOT file with the given filename
Definition at line 12 of file LoopEvent.cxx.
◆ Process()
The function used by Analysis to process the event loop.
- Template Parameters
-
- Parameters
-
- Returns
- the status of this event loop.
Definition at line 82 of file LoopEvent.h.
◆ RootFileUser()
| TFile * NAGASH::LoopEvent::RootFileUser |
( |
| ) |
|
|
inlineprotected |
Get the pointer to the used Root TFile.
Definition at line 66 of file LoopEvent.h.
◆ RootTreeUser()
| TTree *& NAGASH::LoopEvent::RootTreeUser |
( |
| ) |
|
|
inlineprotected |
Get the pointer to the used Root TTree.
Definition at line 64 of file LoopEvent.h.
◆ Run()
◆ SetEventVector()
| void NAGASH::LoopEvent::SetEventVector |
( |
std::shared_ptr< EventVector > |
ev | ) |
|
|
inline |
◆ entry
| int NAGASH::LoopEvent::entry = -1 |
|
private |
◆ eventvector
| std::shared_ptr<EventVector> NAGASH::LoopEvent::eventvector |
|
private |
◆ fChain
| TTree* NAGASH::LoopEvent::fChain = nullptr |
|
private |
◆ infile
| TFile* NAGASH::LoopEvent::infile = nullptr |
|
private |
◆ inputrootfilename
| TString NAGASH::LoopEvent::inputrootfilename |
|
private |
◆ NEventsToLoop
| int NAGASH::LoopEvent::NEventsToLoop = 0 |
|
private |
The documentation for this class was generated from the following files: