HSUDummyRec
class description - source file - inheritance tree (.pdf)
protected:
void setDefault()
public:
HSUDummyRec(Bool_t bVerbose = kTRUE)
HSUDummyRec(const char* pOutFileName, Bool_t bVerbose = kTRUE)
HSUDummyRec(Text_t* name, Text_t* title, Bool_t bVerbose = kTRUE)
HSUDummyRec(const char* pOutFileName, Text_t* name, Text_t* title, Bool_t bVerbose = kTRUE)
~HSUDummyRec()
void addObjectToWrite(TObject* pObj, Bool_t bDelete = kTRUE)
static TClass* Class()
virtual Int_t execute()
virtual Bool_t finalize()
static HCategory* getCategory(Cat_t cat, Bool_t bRaport = kTRUE)
static HCategory* getCategory(const char* pName, Bool_t bRaport = kTRUE)
Int_t getEvents() const
Bool_t getInitOk()
HIterator* getIterator(Cat_t cat, Bool_t bDelete = kTRUE)
HIterator* getIterator(const char* pName, Bool_t bDelete = kTRUE)
TFile* getOutFile() const
const TString& getOutFileName() const
Bool_t getVerbose() const
Bool_t getWriteEvents() const
void incEvents()
virtual Bool_t init()
virtual TClass* IsA() const
TFile* openOutFile(const char* pName = "0", Bool_t bRecr = kTRUE)
virtual void Print(Option_t* option) const
virtual void print() const
virtual Bool_t reinit()
Bool_t removeIterator(HIterator* pI)
Bool_t removeObject(TObject* pObj)
void setEvents(Int_t i)
void setInitOk(Bool_t b = kTRUE)
Bool_t setOutFile(TFile* pFile, Bool_t bCloseOld = kFALSE)
void setOutFileName(const char* pName)
void setVerbose(Bool_t b = kTRUE)
void setWriteEvents(Bool_t b = kTRUE)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Bool_t writeAndCloseOutFile()
Int_t writeObjects(TFile* pFile)
Int_t writeObjects(const char* pFileName, Bool_t bRecreate = kTRUE)
protected:
TList lToDelete list of allocated objects
TList lToWrite list of objects for writing
Bool_t bVerbose report any warnings
Bool_t bInitOk flag if init was ok
TFile* pOutFile output file
TString sOutFileName name of the output file
Int_t iEvents number of events
Bool_t bWriteEvents write number of entries
HSUDummyRec
Dummy reconstructor which calls user defined functions
HSUDummyRec(Bool_t bVerbose)
: HReconstructor("SuDummyRec", "Dummy reconstructor")
Default constructor.
HSUDummyRec(const char *pOutFileName, Bool_t bVerbose)
: HReconstructor("SuDummyRec", "Dummy reconstructor")
Constructor with the file name
HSUDummyRec(Text_t name[], Text_t title[], Bool_t bVerbose)
: HReconstructor(name, title)
Constructor with names
HSUDummyRec(const char *pOutFileName,
Text_t name[], Text_t title[], Bool_t bVerbose)
: HReconstructor(name, title)
Constructor with all names
~HSUDummyRec(void)
Delete all objects stored in lToDelete list
Done automaticaly by the destructor of the TList
Delete the output file
void setDefault(void)
Called in constructors to set default valuest to the members
Bool_t reinit(void)
HCategory* getCategory(Cat_t cat, Bool_t bRaport)
Static function which returns pointer to a category by its id
bRaport true indicates warning message where the category is not found
HCategory* getCategory(const char* pName, Bool_t bRaport)
Static function which returns pointer to a category by its name
bRaport true indicates warning message where the category is not found.
The search is done from cat = 0 to 1000
HIterator* getIterator(Cat_t cat, Bool_t bDelete)
Return pointer to iterator over category cat
If bDetele is true (default), then the iterator will be automaticly deleted
in the HSUDummyRec destructor
HIterator* getIterator(const char* pName, Bool_t bDelete)
Return pointer to iterator over category cat
If bDetele is true (default), then the iterator will be automaticly deleted
in the HSUDummyRec destructor
void addObjectToWrite(TObject *pObj, Bool_t bDelete)
Add the object to the list of objects being written in writeObjects()
If bDetele is true (default), then the object will be automaticly deleted
in the HSUDummyRec destructor
Bool_t removeObject(TObject *pObj)
Remove the object from the lists for writing and deleting.
Returns kTRUE if the object was on any list
Bool_t removeIterator(HIterator *pI)
Remove the iterator created by the getIterator() method.
The iteraror is no deleted !!!
Int_t writeObjects(TFile *pFile)
Writes the object from lToWrite list into pFile file
If pFile == NULL then the gFile is used.
Int_t writeObjects(const char *pFileName, Bool_t bRecreate)
Writes the object from lToWrite list into pFileName file.
If bRecreate is true the file is "RECREATE"d, otherwise "UPDATE"d.
If the file is already used and bRecreate is true the file is recreated
as well.
If pFileName == NULL then the gFile is used and bRecreated flag is ignored.
void print(void) const
Print information about the class and its members
Bool_t setOutFile(TFile *pFile, Bool_t bCloseOld)
Set new output file (must be writable)
If bCloseOld flag is on, then the old file is closed before
TFile* openOutFile(const char *pName, Bool_t bRecr)
Open a new file for writing. The old file is closed.
If bRecr is set, the file is recreated, otherwise updated.
Bool_t writeAndCloseOutFile(void)
Write and close the output file
Inline Functions
void setVerbose(Bool_t b = kTRUE)
Bool_t getVerbose() const
TFile* getOutFile() const
const TString& getOutFileName() const
void setOutFileName(const char* pName)
void Print(Option_t* option) const
Int_t execute()
Bool_t init()
Bool_t finalize()
Bool_t getInitOk()
void setInitOk(Bool_t b = kTRUE)
void setEvents(Int_t i)
void incEvents()
Int_t getEvents() const
void setWriteEvents(Bool_t b = kTRUE)
Bool_t getWriteEvents() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Marcin Jaskula 02/11/2002
Last update: Fri Jan 26 12:32:04 2007
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.