|
BrSequenceManagerclass description - source file - inheritance tree class BrSequenceManager : public TObjectpublic: Data Membersprivate: Class DescriptionThis manager class will help the user to get events from sequential sequence files from a specific run. The (raw) data files are expected to have the standard name: runAAAAAAseqBBB.cdat, where AAAAAA and BBB are integers. Example of an event loop: ------------------------------------------------------------------- { input = new BrRawDataInput("data input"); BrSequenceManager* seqMan = BrSequenceManager::Instance(); seqMan->SetDataDirectory("foo"); seqMan->SetRunNumber(4711); while(1) { if (!input->Open(seqMan->GetNextSequenceFile(),"DISKFILE")) break; while(!input->Eof()) { BrEvent* event = new BrEvent("event", 1, 1); input->Event(event); ... delete event; } input->Close(); } } ------------------------------------------------------------------- BrSequenceManager* Instance() There can be only one! BrSequenceManager() CTOR ~BrSequenceManager() DTOR SetDataDirectory(const Char_t* directory) Set the diretory in wich the manager should look for the sequence files. GetNextSequenceFile(void) Return the name of the next sequence file with full path. It's the users responsibility to copy the string. If the next sequence number is bigger than 999 or less than 0, this method return 0. GetCurrentSequenceFile(void) Return the name of the current sequence file with full path. It's the users responsibility to copy the string. If the current sequence number is bigger than 999 or less than 0, this method return 0. SetDataType(const Char_t* type) IsDataTypeRaw(void) IsDataTypeRoot(void) IsSequence(Int_t seqNo) Checks if the sequence file corresponding to the sequence number (seqNo) is in the data directory. ALWAYS RETURNS kTRUE!!!!!!!!!!!!!!!!!!!1 Inline Functionsconst Char_t* GetDataDirectory() const void SetSequenceNumber(Int_t seqNo) void SetStartSequenceNumber(Int_t start) void SetStopSequenceNumber(Int_t stop) Int_t GetCurrentSequenceNumber() const Int_t GetStartSequenceNumber() const Int_t GetStopSequenceNumber() const void SetRunNumber(Int_t runNo) Int_t GetRunNumber() const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrSequenceManager BrSequenceManager(BrSequenceManager&) |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|