// -*- mode: c++ -*- // $Id: BrDbFile.h,v 1.1.1.1 2001/06/21 14:55:17 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:55:17 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDbFile #define BRAT_BrDbFile #ifndef ROOT_TObjArray #include #endif #ifndef ROOT_TSQLResult #include #endif #ifndef ROOT_TSQLRow #include #endif #ifndef BRAT_BrDbTable #include #endif #ifndef BRAT_BrDbQuery #include #endif class BrDbFile : public BrDbTable { private: Char_t fSpoolFile[256]; // File name in spool area Int_t fRunNo; // Run number Int_t fSeqNo; // Sequence number in run Int_t fFileStartTime; // Time at file start (since epoch) Int_t fFileEndTime; // Time at file end (since epoch) Int_t fSizeBytes; // Size in bytes Int_t fFirstEventNo; // First event number in file Int_t fLastEventNo; // Last event number in file Int_t fEventCount; // Events in file Int_t fHPSSStartTime; // Time of file begin on HPSS Int_t fHPSSEndTime; // Time of file begin on HPSS Char_t fHPSSFile[256]; // File name in HPSS Int_t fSummarySize; // Size of trigger summary Char_t* fTriggerSummary; //[fSummarySize] Summary of triggers void SetSpoolFile(const Char_t* x); void SetHPSSFile(const Char_t* x); void SetTriggerSummary(const Char_t* x); public: BrDbFile(); BrDbFile(const Char_t* spoolFile, Int_t runNo, Int_t seqNo, Int_t fileStartTime, Int_t fileEndTime, Int_t sizeBytes, Int_t firstEventNo, Int_t lastEventNo, Int_t eventCount, Int_t hpssStartTime, Int_t hpssEndTime, const Char_t* hpssFile, const Char_t* triggerSummary); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbFile* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); const Char_t* GetSpoolFile() const { return fSpoolFile; } Int_t GetRunNo() const { return fRunNo; } Int_t GetSeqNo() const { return fSeqNo; } Int_t GetFileStartTime() const { return fFileStartTime; } Int_t GetFileEndTime() const { return fFileEndTime; } Int_t GetSizeBytes() const { return fSizeBytes; } Int_t GetFirstEventNo() const { return fFirstEventNo; } Int_t GetLastEventNo() const { return fLastEventNo; } Int_t GetEventCount() const { return fEventCount; } Int_t GetHPSSStartTime() const { return fHPSSStartTime; } Int_t GetHPSSEndTime() const { return fHPSSEndTime; } const Char_t* GetHPSSFile() const { return fHPSSFile; } Int_t GetSummarySize() const { return fSummarySize; } const Char_t* GetTriggerSummary() const { return (const Char_t*)fTriggerSummary; } ClassDef(BrDbFile,1) // File Class for BRAHMS database } ; #endif // // $Log: BrDbFile.h,v $ // Revision 1.1.1.1 2001/06/21 14:55:17 hagel // Initial revision of brat2 // // Revision 1.2 2001/06/05 18:38:31 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/01/19 16:30:16 cholm // Revisited the Run database classes. Deleted old implemtation via BrRun, // and put in BrDbRun, BrDbFile, BrDbMagnet, BrDbConditions*, and // BrDbShiftReport. A description will be posted to brahms-dev-l soon. // //