NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Event.h
Go to the documentation of this file.
1 
8 #ifndef NAIA_EVENT_H
9 #define NAIA_EVENT_H
10 
11 #include "Containers/Containers.h"
12 
13 namespace NAIA {
20 class Event {
21 public:
28  void BranchAll(TTree *tree);
29 
36  void SetAllBranchAddress(TTree *tree);
37 
44  void MirrorBranches(TTree *tree, const Event &sourceEvent);
45 
50  void Clear();
51 
57  void LinkContainers();
58 
64  void SetEventNumber(unsigned long long iEv);
65 
72  bool CheckMask(Category mask) { return MatchAllBits(header->Mask(), mask); }
73 
80 
86  void SetMC(bool isMC) { m_isMC = isMC; }
87 
93  bool IsMC() const { return m_isMC; }
94 
100  void ForceReadAllBranches();
101 
102  // data structures
105 
107 
110 
113 
116 
119 
121 
123 
126 
129 
131 
134 
135 private:
136  bool m_isMC = false;
137 };
138 } // namespace NAIA
139 #endif
UnbExtHitBase extHitBase
Definition: Event.h:130
void SetMaskCategory(Category cat)
Set the event mask (used only internally)
Definition: Header.h:42
TofBase tofBase
Definition: Event.h:108
Accessor class for base TrdK info.
Definition: TrdK.h:166
void MirrorBranches(TTree *tree, const Event &sourceEvent)
Set all branch addresses for skimming, creates all branches reading from outside Event.
Definition: Event.cpp:74
Accessor class for base Tof info.
Definition: Tof.h:167
Accessor class for MCTruthPlus info.
Definition: MCTruth.h:165
Category
Definition: Utils.h:60
void BranchAll(TTree *tree)
Forwards this tree to all containers so that each one can create its own branch.
Definition: Event.cpp:4
Accessor class for base Tof info (standalone reconstruction)
Definition: Tof.h:196
void SetAllBranchAddress(TTree *tree)
Forwards this tree to all containers so that each one can create its own branch address for reading o...
Definition: Event.cpp:39
bool CheckMask(Category mask)
Check the event mask against a predefined mask.
Definition: Event.h:72
Accessor class for base unbiased external hits info.
Definition: UnbExtHit.h:132
Accessor class for event Header info.
Definition: Header.h:86
EcalPlus ecalPlus
Definition: Event.h:115
RichPlus richPlus
Definition: Event.h:128
void Clear()
Clear all containers.
Definition: Event.cpp:179
TofPlusStandalone tofPlusSt
Definition: Event.h:112
Accessor class for EcalPlus info.
Definition: Ecal.h:179
TrTrackBase trTrackBase
Definition: Event.h:117
Event object.
Definition: Event.h:20
MCTruthBase mcTruthBase
Definition: Event.h:132
TrTrackBaseStandalone trTrackBaseSt
Definition: Event.h:122
void LinkContainers()
Setup dependencies between containers. E.g: TrTrackPlus needs info from TrTrackBase, and so on...
Definition: Event.cpp:216
void ForceReadAllBranches()
Force data reading for all branches. Don't use unless you need it. Rely on read-on-demand instead...
Definition: Event.cpp:109
TrdKBaseStandalone trdKBaseSt
Definition: Event.h:125
std::enable_if< EnableBitMaskOperators< Enum >::enable, bool >::type MatchAllBits(const Enum test, const Enum ones, const Enum zeroes=static_cast< Enum >(0))
Definition: bitmask.h:89
EventSummary evSummary
Definition: Event.h:104
DAQ daq
Definition: Event.h:106
Accessor class for base Rich info.
Definition: Rich.h:153
void SetMaskCategory(Category cat)
Set the given gategory bit to 1 in the event mask.
Definition: Event.h:79
SecondTrTrackBase secondTrTrackBase
Definition: Event.h:120
void SetEventNumber(unsigned long long iEv)
Set the Event Number for all containers. The corresponding entry will be loaded upon the first read r...
Definition: Event.cpp:144
Header header
Definition: Event.h:103
TrdKBase trdKBase
Definition: Event.h:124
TrTrackPlus trTrackPlus
Definition: Event.h:118
EcalBase ecalBase
Definition: Event.h:114
Accessor class for additional Tof info.
Definition: Tof.h:182
Accessor class for MCTruthBase info.
Definition: MCTruth.h:150
Accessor class for additional Tof info (standalone reconstruction)
Definition: Tof.h:210
Accessor class for additional TrTrack info.
Definition: TrTrack.h:232
Accessor class for EventSummary info.
Definition: EventSummary.h:101
MCTruthPlus mcTruthPlus
Definition: Event.h:133
Accessor class for base TrTrack info.
Definition: TrTrack.h:217
Accessor class for base TrTrack info reconstructed without Tof information.
Definition: TrTrack.h:262
TofBaseStandalone tofBaseSt
Definition: Event.h:111
void SetMC(bool isMC)
Set wether this is a MC event or not.
Definition: Event.h:86
bool IsMC() const
Check if this is an MC event or not.
Definition: Event.h:93
Accessor class for DAQ info.
Definition: DAQ.h:79
bool m_isMC
Definition: Event.h:136
RichBase richBase
Definition: Event.h:127
Accessor class for additional Rich info.
Definition: Rich.h:252
Category Mask() const
Get the event Mask.
Definition: Header.h:49
Global header for all containers.
Accessor class for EcalBase info.
Definition: Ecal.h:164
TofPlus tofPlus
Definition: Event.h:109
Accessor class for base TrdK info (standalone reconstruction)
Definition: TrdK.h:180
Accessor class for base TrTrack info about the second track.
Definition: TrTrack.h:247