#include "hrecevent.h"

HRecEvent


class description - source file - inheritance tree (.pdf)

class HRecEvent : public HEvent

Inheritance Chart:
TObject
<-
HEvent
<-
HRecEvent

    public:
HRecEvent() HRecEvent(const HRecEvent&) ~HRecEvent() virtual void activateBranch(TTree* tree, Int_t splitLevel) virtual Bool_t addCategory(Cat_t aCat, HCategory* cat, Option_t* opt) HPartialEvent* addPartialEvent(Cat_t eventCat, const Text_t* name, const Text_t* title) void addPartialEvent(HPartialEvent*) void addTrack(HTrack& aTrack) virtual void Browse(TBrowser* b) static TClass* Class() virtual void Clear(Option_t* opt) virtual void clearAll(Int_t level) void clearTracks() virtual HCategory* getCategory(Cat_t aCat) virtual HEventHeader* getHeader() const HPartialEvent* getPartialEvent(Cat_t idx) Int_t getRecLevel() HTrack* getTrack(UInt_t aId) Bool_t hasExpandedStreamer() virtual TClass* IsA() const virtual Bool_t IsFolder() const virtual void makeBranch(TBranch* parent) void merge(HRecEvent* ev) HTrack* newTrack() HRecEvent& operator=(const HRecEvent&) virtual Bool_t removeCategory(Cat_t aCat) Bool_t removePartialEvent(Cat_t cat) void setExpandedStreamer(Bool_t t) void setRecLevel(Int_t aRecLevel) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fRecLevel Reconstruction level for this event Int_t fNTracks Number of reconstructed tracks in this event (not used!) HEventHeader* fHeader ! Event header TClonesArray* fTracks Reconstructed tracks for this event (not used!) TObjArray* fPartialEvs ! List of partial events in this event

Class Description


HRecEvent(void) : HEvent("Event","Event under Reconstruction")
 Default constructor

~HRecEvent(void)
 Destructor

void activateBranch(TTree *tree,Int_t splitLevel)
 See HEvent::activateBranch()

void makeBranch(TBranch *parent)
 See HEvent::makeBranch()

void Clear(Option_t *)
 Clears the data in the event (i.e. clears the internal buffers...)

void clearAll(Int_t level)
 Clears the data in the event and the event structure (list of subevents....)

   level == 0: delete list of partial events
   level == 1: delete only all categories in partial events
   level > 1:  clear only all categories in partial events


HTrack* newTrack(void)
 Returns a pointer to a new HTrack object.

void addTrack(HTrack &aTrack)
 Adds the track aTrack to the list of reconstructed tracks.

HTrack* getTrack(UInt_t aId)
 Returns the track identified by aId (the position in the track list)

void clearTracks(void)
 Clears the track list

Int_t getRecLevel(void)
 Returns the reconstruction level for this event.

void setRecLevel(Int_t aRecLevel)
 Sets the reconstruction level for the event.

HPartialEvent* getPartialEvent(Cat_t idx)
 Returns a pointer to the partial event with number idx.

HCategory* getCategory(Cat_t aCat)
 Returns the category identified by aCat in the correct Partial event.

Bool_t addCategory(Cat_t aCat,HCategory *cat,Option_t opt[])
 Adds a new category to the event. The partial event it belongs to is
 determined by aCat; if this partial event doesn't exist, one is created
 with the name given in opt.

Bool_t removeCategory(Cat_t aCat)
 Removes the category aCat from the event. If aCat is the last category in
 the corresponding partial event, then the partial event is also removed.

Bool_t removePartialEvent(Cat_t aCat)
 Remove partial event aCat from event.

HPartialEvent* addPartialEvent(Cat_t eventCat, const Text_t *name, const Text_t *title)
 Create and Add a new HPartialEvent to the list of HPartialEvent objects
 in the HRecEvent.

 Input:
  eventCat  ---> Base category for the event (i.e. for Mdc it is catMdc)
  name      ---> Name of the new partial event (used to build Root trees)
  title     ---> Title of the new partial event

void addPartialEvent(HPartialEvent* event)
 Add partial event by pointer.

void merge(HRecEvent *targetEv)
 Merge this event into target event, i.e. move all partial events
 with all their categories to target event.
 (needed by HRootSource in merge mode)

void Browse(TBrowser *b)
 Event browser.

void setExpandedStreamer(Bool_t t)
 If the event is in "expanded streamer" mode each partial event and category
 will go to a different directory.

void Streamer(TBuffer &R__b)
 Stream an object of class HRecEvent.



Inline Functions


        HEventHeader* getHeader() const
               Bool_t IsFolder() const
               Bool_t hasExpandedStreamer()
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void StreamerNVirtual(TBuffer& b)
            HRecEvent HRecEvent(const HRecEvent&)
           HRecEvent& operator=(const HRecEvent&)


Author: Manuel Sanchez
Last update: 03/05/2002 by R. Holzmann
Copyright GENP (Univ. Santiago de Compostela)


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.