// -*- mode: c++ -*- // $Id: BrDbPlatformPosition.h,v 1.2 2001/10/08 10:51:57 cholm Exp $ // $Author: cholm $ // $Date: 2001/10/08 10:51:57 $ // $Copyright: 2001 Brahms Collaboration // #ifndef BRAT_BrDbPlatformPosition #define BRAT_BrDbPlatformPosition #ifndef ROOT_TObjArray #include "TObjArray.h" #endif #ifndef ROOT_TSQLServer #include "TSQLServer.h" #endif #ifndef ROOT_TSQLResult #include "TSQLResult.h" #endif #ifndef ROOT_TSQLRow #include "TSQLRow.h" #endif #ifndef BRAT_BrDbTable #include "BrDbTable.h" #endif #ifndef BRAT_BrDbQuery #include "BrDbQuery.h" #endif class BrDbPlatformPosition : public BrDbTable { friend class BrGeometriesDb; friend class BrRdbmGeometriesDb; private: Char_t fName[64]; // Platform name Int_t fRunNo; // Run # for this position Float_t fAngle; // Angle of platform (relative to beam) Float_t fPosX; // Platform position x (relative to nominal vertex) Float_t fPosY; // Platform position y (relative to nominal vertex) Float_t fPosZ; // Platform position z (relative to nominal vertex) Int_t fRevisionId; // revision void SetRunNo(Int_t run) {fRunNo = run;} void SetName(const Char_t *name); void SetPosition(Float_t x, Float_t y, Float_t z); void SetRevisionId(Int_t revision) {fRevisionId = revision;} public: BrDbPlatformPosition(); BrDbPlatformPosition(const Char_t *name, Int_t runno, Float_t angle); BrDbPlatformPosition(const Char_t *name, Int_t runno, Float_t angle, Float_t posX, Float_t posY, Float_t posZ); static const Char_t* kTableName; static BrDbQuery* Create(void); static BrDbPlatformPosition* SingleInstance(TSQLRow*); static TObjArray* MultipleInstance(TSQLResult*); virtual BrDbQuery* Insert(void); const Char_t *GetName() const {return (const Char_t*)fName;} Int_t GetRunNo() const {return fRunNo;} Float_t GetAngle() const {return fAngle;} Float_t GetPosX() const {return fPosX;} Float_t GetPosY() const {return fPosY;} Float_t GetPosZ() const {return fPosZ;} Int_t GetRevisionId() const {return fRevisionId;} ClassDef(BrDbPlatformPosition,1) // Run Class for BRAHMS database } ; #endif // // $Log: BrDbPlatformPosition.h,v $ // Revision 1.2 2001/10/08 10:51:57 cholm // Some small changes mostly (I'm not sure that Kris has finished this yet). // Implmented the MySQL implmentation of the BrGeometriesDb access class. // The ROOT implmentation must wait until it's clear what the status of this // part of BRAT is (I'm not all that happy with the current implmentation, and // it doesn't help not to have some documentation). // // Revision 1.1.1.1 2001/06/21 14:55:18 hagel // Initial revision of brat2 // // Revision 1.2 2001/06/05 18:38:52 cholm // Removed BrDbInc.h an all references to it // // Revision 1.1 2001/03/07 16:53:01 hagel // Initial revision, probably needs more iterations //