// -*- mode: c++ -*- // $Id: BrDbRun.h,v 1.2 2001/07/17 13:48:31 cholm Exp $ // $Author: cholm $ // $Date: 2001/07/17 13:48:31 $ // $Copyright: 2000 Brahms Collaboration // #ifndef BRAT_BrDbRun #define BRAT_BrDbRun #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 BrDbRun : public BrDbTable { private: Int_t fRunNo; // Run number Char_t fRunType[256]; // Type string Int_t fEvents; // Number of events in run Int_t fErrors; // Number of errors in run Int_t fDebug; // Debug flag Int_t fSpool; // Spool flag Int_t fHPSS; // HPSS flag Char_t fPartitions[256]; // Partition description Char_t fStartComment[256]; // Comment set at start of run Char_t fEndState[256]; // The state at end of run Int_t fStartTime; // Time of start (since Unix epoch) Int_t fEndTime; // Time of end (since Unix epoch) Char_t fSupervisor[256]; // Supervisor of this run Float_t fMRSAngle; // Angle setting of MRS Float_t fFFSAngle; // Angle setting of FFS Float_t fBFSAngle; // Angle setting of BFS Char_t fD1Pol[256]; // Polarity of D1 Int_t fD1Set; // Current in D1 Char_t fD2Pol[256]; // Polarity of D2 Int_t fD2Set; // Current in D2 Char_t fD3Pol[256]; // Polarity of D3 Int_t fD3Set; // Current in D3 Char_t fD4Pol[256]; // Polarity of D4 Int_t fD4Set; // Current in D4 Char_t fD5Pol[256]; // Polarity of D5 Int_t fD5Set; // Current in D5 Int_t fTrigger1; // Number of trigger 1 events Int_t fTrigger2; // Number of trigger 2 events Int_t fTrigger3; // Number of trigger 3 events Int_t fTrigger4; // Number of trigger 4 events Int_t fTrigger5; // Number of trigger 5 events Int_t fTrigger6; // Number of trigger 6 events Int_t fTrigger7; // Number of trigger 7 events Int_t fTrigger8; // Number of trigger 8 events Int_t fScale1; // Scale down of trigger 1 events Int_t fScale2; // Scale down of trigger 2 events Int_t fScale3; // Scale down of trigger 3 events Int_t fScale4; // Scale down of trigger 4 events Int_t fScale5; // Scale down of trigger 5 events Int_t fScale6; // Scale down of trigger 6 events Int_t fScale7; // Scale down of trigger 7 events Int_t fScale8; // Scale down of trigger 8 events Int_t fMaxEvents; // Maximum of events Int_t fErrorsFrontEnd; // Number of front end errors Int_t fErrorsSync; // Number of syncronisation errors Int_t fErrorsUnpack; // Number of unpack errors Int_t fSummarySize; // Size of trigger summary Char_t* fTriggerSummary; //[fSummarySize] Int_t fCommentSize; // Size of trigger summary Char_t* fComments; //[fCommentSize] void SetRunNo(Int_t x) { fRunNo = x; } void SetRunType(const Char_t* x); void SetEvents(Int_t x) { fEvents = x; } void SetErrors(Int_t x) { fErrors = x; } void SetDebug(Int_t x) { fDebug = x; } void SetSpool(Int_t x) { fSpool = x; } void SetHPSS(Int_t x) { fHPSS = x; } void SetPartitions(const Char_t* x); void SetStartComment(const Char_t* x); void SetEndState(const Char_t* x); void SetStartTime(Int_t x) { fStartTime = x; } void SetEndTime(Int_t x) { fEndTime = x; } void SetSupervisor(const Char_t* x); void SetMRSAngle(Float_t x) { fMRSAngle = x; } void SetFFSAngle(Float_t x) { fFFSAngle = x; } void SetBFSAngle(Float_t x) { fBFSAngle = x; } void SetD1Pol(const Char_t* x); void SetD1Set(Int_t x) { fD1Set = x; } void SetD2Pol(const Char_t* x); void SetD2Set(Int_t x) { fD2Set = x; } void SetD3Pol(const Char_t* x); void SetD3Set(Int_t x) { fD3Set = x; } void SetD4Pol(const Char_t* x); void SetD4Set(Int_t x) { fD4Set = x; } void SetD5Pol(const Char_t* x); void SetD5Set(Int_t x) { fD5Set = x; } void SetTrigger1(Int_t x) { fTrigger1 = x; } void SetTrigger2(Int_t x) { fTrigger2 = x; } void SetTrigger3(Int_t x) { fTrigger3 = x; } void SetTrigger4(Int_t x) { fTrigger4 = x; } void SetTrigger5(Int_t x) { fTrigger5 = x; } void SetTrigger6(Int_t x) { fTrigger6 = x; } void SetTrigger7(Int_t x) { fTrigger7 = x; } void SetTrigger8(Int_t x) { fTrigger8 = x; } void SetScale1(Int_t x) { fScale1 = x; } void SetScale2(Int_t x) { fScale2 = x; } void SetScale3(Int_t x) { fScale3 = x; } void SetScale4(Int_t x) { fScale4 = x; } void SetScale5(Int_t x) { fScale5 = x; } void SetScale6(Int_t x) { fScale6 = x; } void SetScale7(Int_t x) { fScale7 = x; } void SetScale8(Int_t x) { fScale8 = x; } void SetMaxEvents(Int_t x) { fMaxEvents = x; } void SetErrorsFrontEnd(Int_t x) { fErrorsFrontEnd = x; } void SetErrorsSync(Int_t x) { fErrorsSync = x; } void SetErrorsUnpack(Int_t x) { fErrorsUnpack = x; } void SetTriggerSummary(const Char_t* x, ULong_t l); void SetComments(const Char_t* x, ULong_t l); public: BrDbRun(); BrDbRun(Int_t runNo, const Char_t* runType, Int_t events, Int_t errors, Int_t debug, Int_t spool, Int_t hpss, const Char_t* partitions, const Char_t* startComment, const Char_t* endState, Int_t startTime, Int_t endTime, const Char_t* supervisor, Float_t mrsAngle, Float_t ffsAngle, Float_t bfsAngle, const Char_t* d1Pol, Int_t d1Set, const Char_t* d2Pol, Int_t d2Set, const Char_t* d3Pol, Int_t d3Set, const Char_t* d4Pol, Int_t d4Set, const Char_t* d5Pol, Int_t d5Set, Int_t trigger1, Int_t trigger2, Int_t trigger3, Int_t trigger4, Int_t trigger5, Int_t trigger6, Int_t trigger7, Int_t trigger8, Int_t scale1, Int_t scale2, Int_t scale3, Int_t scale4, Int_t scale5, Int_t scale6, Int_t scale7, Int_t scale8, Int_t maxEvents, Int_t errorsFrontEnd, Int_t errorsSync, Int_t errorsUnpack, const Char_t* triggerSummary, ULong_t tl, const Char_t* comments, ULong_t cl); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbRun* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); Int_t GetRunNo() const { return fRunNo; } const Char_t* GetRunType() const { return fRunType; } Int_t GetEvents() const { return fEvents; } Int_t GetErrors() const { return fErrors; } Int_t GetDebug() const { return fDebug; } Int_t GetSpool() const { return fSpool; } Int_t GetHPSS() const { return fHPSS; } const Char_t* GetPartitions() const { return fPartitions; } const Char_t* GetStartComment() const { return fStartComment; } const Char_t* GetEndState() const { return fEndState; } Int_t GetStartTime() const { return fStartTime; } Int_t GetEndTime() const { return fEndTime; } const Char_t* GetSupervisor() const { return fSupervisor; } Float_t GetMRSAngle() const { return fMRSAngle; } Float_t GetFFSAngle() const { return fFFSAngle; } Float_t GetBFSAngle() const { return fBFSAngle; } const Char_t* GetD1Pol() const { return fD1Pol; } Int_t GetD1Set() const { return fD1Set; } const Char_t* GetD2Pol() const { return fD2Pol; } Int_t GetD2Set() const { return fD2Set; } const Char_t* GetD3Pol() const { return fD3Pol; } Int_t GetD3Set() const { return fD3Set; } const Char_t* GetD4Pol() const { return fD4Pol; } Int_t GetD4Set() const { return fD4Set; } const Char_t* GetD5Pol() const { return fD5Pol; } Int_t GetD5Set() const { return fD5Set; } Int_t GetTrigger1() const { return fTrigger1; } Int_t GetTrigger2() const { return fTrigger2; } Int_t GetTrigger3() const { return fTrigger3; } Int_t GetTrigger4() const { return fTrigger4; } Int_t GetTrigger5() const { return fTrigger5; } Int_t GetTrigger6() const { return fTrigger6; } Int_t GetTrigger7() const { return fTrigger7; } Int_t GetTrigger8() const { return fTrigger8; } Int_t GetScale1() const { return fScale1; } Int_t GetScale2() const { return fScale2; } Int_t GetScale3() const { return fScale3; } Int_t GetScale4() const { return fScale4; } Int_t GetScale5() const { return fScale5; } Int_t GetScale6() const { return fScale6; } Int_t GetScale7() const { return fScale7; } Int_t GetScale8() const { return fScale8; } Int_t GetMaxEvents() const { return fMaxEvents; } Int_t GetErrorsFrontEnd() const { return fErrorsFrontEnd; } Int_t GetErrorsSync() const { return fErrorsSync; } Int_t GetErrorsUnpack() const { return fErrorsUnpack; } Int_t GetSummarySize() const { return fSummarySize; } const Char_t* GetTriggerSummary() const { return (const Char_t*)fTriggerSummary; } Int_t GetCommentSize() const { return fCommentSize; } const Char_t* GetComments() const { return (const Char_t*)fComments; } ClassDef(BrDbRun,1) // Run Class for BRAHMS database } ; #endif // // $Log: BrDbRun.h,v $ // Revision 1.2 2001/07/17 13:48:31 cholm // See implementation file log comment // // Revision 1.1.1.1 2001/06/21 14:55:17 hagel // Initial revision of brat2 // // Revision 1.2 2001/06/05 18:39:06 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/01/19 16:30:22 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. // //