EEvent
#include "EEvent.hh" |
EEvent
class description - source file - inheritance tree (.pdf)
class EEvent : public TObject
Inheritance Chart: | |||||||||
|
protected:
TTree* GetTree() const public:
EEvent(Int_t = kAll) EEvent(const EEvent&) virtual ~EEvent() Bool_t BranchTree(TTree*, Bool_t link = kTRUE) void Build(Int_t, Int_t, const char* = "0") static TClass* Class() virtual void Clear(Option_t* = "") virtual void Copy(TObject&) const virtual void Delete(Option_t* = "") Bool_t Fill(EFiller& f) EAtmosphere* GetAtmosphere() const EChipTrackTrigger* GetChipTrackTrigger() const static EEvent* GetCurrent() EDetector* GetDetector() const EGeometry* GetGeometry() const EHeader* GetHeader() const ELblTrackTrigger* GetLblTrackTrigger() const ERunParameters* GetRunPars() const EShower* GetShower() const ETruth* GetTruth() const virtual TClass* IsA() const Bool_t IsLinked() const void LinkTree(TTree*) EEvent& operator=(const EEvent&) Bool_t SetBranches(TTree*, Bool_t clone = kFALSE) static void SetCurrent(EEvent* ev) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void UnlinkTree()
Data Members
private:
static EEvent* fgCurrent protected:
EHeader* fHeader event header ETruth* fTruth initial conditions EGeometry* fGeometry detector basic parameters EShower* fShower shower simulation EAtmosphere* fAtmosphere atmosphere simulation EDetector* fDetector euso detector simulation EChipTrackTrigger* fChipTrackTrigger chip track trigger simulation ELblTrackTrigger* fLblTrackTrigger Lbl track trigger simulation ERunParameters* fRunPars parameters of the detector EEvTreeLink* fTreeLink ! link to the ttree the event is attached to, if any public:
static const EEvent::EActiveBranches kShower static const EEvent::EActiveBranches kAtmosphere static const EEvent::EActiveBranches kDetector static const EEvent::EActiveBranches kChipTrackTrigger static const EEvent::EActiveBranches kLblTrackTrigger static const EEvent::EActiveBranches kNone static const EEvent::EActiveBranches kAll
Class Description
EEvent( Int_t branches ) : fTreeLink(0)
Costructor
EEvent(const EEvent& other) : TObject()
copy ctor
~EEvent()
destructor
void Copy( TObject& other) const
Copy this to other
Bool_t BranchTree(TTree *t, Bool_t link )
Branch tree on EEvent data members
Bool_t SetBranches( TTree *t, Bool_t clone )
Sets branches addresses for reading. Returns kTRUE if any of the container exists in the tree. If one of the data member is 0 and corresponding branch is found, it is automatically allocated. If clone is true, a clone of ERunParameters (and the other eventual data stored in the etree)is created and the tree is not linked.
void LinkTree( TTree* t )
void UnlinkTree()
Disconnect tree from the event. This is required before deleting the tree If the tree holds ERunParameters, they are cloned and the clone is stored in the tree
void Build(Int_t run,Int_t ev, const char* name)
build header
void Clear( Option_t* opt )
clear event
void Delete( Option_t* )
Delete all containers
Bool_t Fill( EFiller& f )
Deliver filler to its target
Inline Functions
EHeader* GetHeader() const EGeometry* GetGeometry() const ETruth* GetTruth() const EShower* GetShower() const EAtmosphere* GetAtmosphere() const EDetector* GetDetector() const EChipTrackTrigger* GetChipTrackTrigger() const ELblTrackTrigger* GetLblTrackTrigger() const ERunParameters* GetRunPars() const EEvent* GetCurrent() void SetCurrent(EEvent* ev) Bool_t IsLinked() const TTree* GetTree() const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) EEvent& operator=(const EEvent&)