|
BrRootCalibrationsDbclass description - source file - inheritance tree class BrRootCalibrationsDb : public BrCalibrationsDbprivate: Data Membersprivate: Class DescriptionBrRootCalibrationsDb(const Char_t* name, const Char_t* title) Normal constructor. Singleton. Bool_t Connect(Option_t* option) Overloaded here, so that we can get pointers to the tables. BrCalibrationsDb* Instance(void) Returns an instance of the Calibration Database connection. Connection _must_ be constructed somewhere previous to calling this static method. void AddRevision(BrDbRevision* revision) Add a Revision to the database. Warns if there exist overlapping revsisions wiith the same type. void AddRevisionType(BrDbRevisionType* type) Add a Revision Type to the database. Fails if it allready exists in the database (throws a BrExcpetion) void AddParameter(BrDbParameter* param) Add a parameter to the database. Fails if it allready exists in the database (throws a BrExcpetion) TObjArray* GetXParameter(const Char_t* condition) Returns (unconditionally) all parameters TObjArray* GetXRevision(const Char_t* condition) Returns (unconditionally) all Revisions TObjArray* GetXRevisionType(const Char_t* condition) Returns (unconditionally) all RevisionTypes BrDbParameter* GetParameter(const Char_t* condition) Not implmented. BrDbParameter* GetParameter(const Char_t* name, Int_t detectorId) Find a parameter with name <name> belonging to detector <detectorId> BrDbRevision* GetRevision(const Char_t* condition) Not implmented. BrDbRevision* GetRevision(Int_t parameterId, Int_t start, Int_t stop, Int_t typeId, Int_t parameterPolicy) Find a single Revision in the database belonging to Parameter parameterId, inside the time period from start (inclusive) to stop (exclusive), and having type typeId. stop may be negative, in which case the database is serached for time preiod containg start. typeId, may be less then or equal to -1, in which case only standard Revision Types are searched. If typeId is zero, any revision will be searched. Default is to only search standard revisions. void RevisionSort(TObjArray& a, Bool_t asc, Int_t which) PRIVATE METHOD Sort a TObjArray containing BrDbRevision objects, and return it in itself. Parameters: a The array asc kTRUE Sort ascending kFLASE Sort descending which 0 Sort by date 1 Sort by validStart 2 Sort by validEnd The algorithm used is straight insertion BrDbRevisionType* GetRevisionType(const Char_t* condition) Not implmented. GetRevisionType(const Char_t* name, const Char_t* inComment) Query the database for a single Revision Type. The first argument is the name of the revision (mandetory), and the second is a string to search for in the comment field. The second arguement may by "", NULL, or 0, in which case no query is perfomed on the comment field. If a second argument is specified, the first argument is a substring to search for. Inline FunctionsTClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrRootCalibrationsDb BrRootCalibrationsDb(BrRootCalibrationsDb&) void ~BrRootCalibrationsDb() |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|