class HRootSource: public HDataSource

_HADES_CLASS_DESCRIPTION

 HRootSource

 This data source can read data from a ROOT file generated by
 HYDRA, this includes both the reconstruction and simulation software.

 The data source takes care of instantiating the appropriate classes even
 if they are non-standard. That is, if you have an input file with
 HMdcHitSim instead of HMdcHit; HRootSource will take care of using
 HMdcHitSim during the analysis.


Function Members (Methods)

public:
HRootSource(const HRootSource&)
HRootSource(Bool_t fPersistent = kTRUE, Bool_t fMerge = kFALSE)
virtual~HRootSource()
voidTObject::AbstractMethod(const char* method) const
Bool_taddFile(const Text_t* file)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
voidClear()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voiddeactivateBranch(const Text_t* branchName)
virtual voidTObject::Delete(Option_t* option = "")MENU
Bool_tdisableCategory(Cat_t aCat)
Bool_tdisablePartialEvent(Cat_t aCat)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual Bool_tfinalize()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual const Text_t*getCurrentFileName()
virtual Int_tgetCurrentRefId()
virtual Int_tgetCurrentRunId()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Bool_tgetEvent(Int_t eventN)
Int_tgetGlobalRefId()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual EDsStategetNextEvent(Bool_t doUnpack = kTRUE)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tgetSplitLevel()
virtual const char*TObject::GetTitle() const
TTree*getTree()
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Bool_tinit()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
HRootSource&operator=(const HRootSource&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidPrint()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual Bool_treinit()
voidreplaceHeaderVersion(Int_t vers, Bool_t replace = kTRUE)
voidTObject::ResetBit(UInt_t f)
virtual Bool_trewind()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidsetCursorToPreviousEvent()
voidsetDirectory(const Text_t* dirName)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidHDataSource::setEventAddress(HEvent** ev)
voidsetEventList(TEventList* el)
voidsetGlobalRefId(Int_t refId)
Bool_tsetInput(const Text_t* fileName, const Text_t* treeName)
static voidTObject::SetObjectStat(Bool_t stat)
voidsetRefId(Int_t runId, Int_t refId)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual EDsStateskipEvents(Int_t nEv)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Bool_tfileExists(const TString& name)
virtual TFile*getFile(TString name)
virtual TStringgetFileName(const Text_t* file)
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tfCurrentRefId
Int_tfCurrentRunId
Int_tfCursorNumber of next event.
TStringfDirectory
Stat_tfEntries
HEvent**HDataSource::fEventAddr! Address of the event to fill
HEvent*fEventInFile! Pointer to the event structure in file
TEventList*fEventList
Int_tfGlobalRefId
TChain*fInputTTree to be read.
Int_tfLastRunId! last run number (needed to detect switch to new run)
Bool_tfMerge
Bool_tfPersistency
map<Int_t,Int_t>fRefIds!
Int_tfSplitLevelSplit level of input tree
Bool_toverwriteVersion! flag for modifying version
Int_treplaceVersion! value for replacing version is overwriteVersion=kTRUE

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HRootSource(Bool_t fPersistent = kTRUE, Bool_t fMerge = kFALSE)
 for fPers==kFALSE, input cats are suppressed in output
 for fMerg==kTRUE, partial events in input tree are merged into current
 event, if it exists already at init().
~HRootSource(void)
Class destructor, it clears the data source.
Text_t const * getCurrentFileName(void)
Bool_t init(void)
 Initializes the data source connecting the parts of the input tree in
 the input ROOT file to the event structure used for the analysis. If
 no event structure has been set by the user, HRootSource::init() will
 set one read from the input file. If it exists, it will be used as such
 (fMerge==kFALSE) or merged with the one in the input file (fMerge==kTRUE).
EDsState getNextEvent(Bool_t doUnpack = kTRUE)
Retrieves next event in the input file.
void setCursorToPreviousEvent()
 Rewinds the file cursour read by 1 event
 The cursor does not point to next event as usual
 but to the current event. This feature is needed
 for the event embedding if a event is skipped
 by the first data source or any task. The same
 event (from second data source) will be read for
 the next event from first data source.
Bool_t getEvent(Int_t eventN)
Retrieves event in position eventN in the input file, copying the
information to the event structure.
void Clear(void)
Closes the input file.
void setDirectory(const Text_t* dirName)
Sets the directory where to read files from.
Bool_t fileExists(const TString& name)
Checks for the existence on one file.
TString getFileName(const Text_t* file)
Bool_t addFile(const Text_t* file)
Bool_t setInput(const Text_t* fileName, const Text_t* treeName)
Sets the input file and tree. Opening the corresponding files, it also
loads in memory the input event description so the disableCategory()
method can be used.
Bool_t disableCategory(Cat_t aCat)
Disables the category aCat so it is not read even if it is stored in
the input file. This method shouldn't be called after init()
Returns kTRUE if the aCat was stored in the input file and has succesfully
been disabled, otherwise the return value is kFALSE.
Bool_t disablePartialEvent(Cat_t aCat)
Int_t getSplitLevel(void)
Returns the split level of the input tree.
void deactivateBranch(const Text_t* branchName)
Deactivates a branch so it is not read.
This method is deprecated, use disableCategory() instead.
TTree * getTree(void)
Returns the input tree.
EDsState skipEvents(Int_t nEv)
TFile * getFile(TString name)
HRootSource(Bool_t fPersistent = kTRUE, Bool_t fMerge = kFALSE)
void setEventList(TEventList* el)
{ fEventList = el; }
Bool_t rewind()
{fCursor=0; return kTRUE;}
Bool_t reinit(void)
{return kTRUE; }
Bool_t finalize(void)
{return kTRUE;}
Int_t getCurrentRunId(void)
{return fCurrentRunId;}
Int_t getCurrentRefId(void)
{return fCurrentRefId;}
Int_t getGlobalRefId(void)
{return fGlobalRefId;}
void setRefId(Int_t runId, Int_t refId)
void setGlobalRefId(Int_t refId)
void Print()
void replaceHeaderVersion(Int_t vers, Bool_t replace = kTRUE)
{replaceVersion=vers;overwriteVersion=replace;}

Last change: Sat May 22 13:10:58 2010
Last generated: 2010-05-22 13:10

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.