BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDbDetectorVolume


class description - source file - inheritance tree

class BrDbDetectorVolume : public BrDbTable

    private:
void ReadAsciiFile(const Char_t* file) void SetAngles(Double_t theta, Double_t phi, Double_t psi) void SetName(const Char_t* name) void SetParentName(const Char_t* parent) void SetPlatformType(Int_t type) void SetPosition(Double_t x, Double_t y, Double_t z) void SetRevisionId(Int_t revision) void SetSize(Double_t x, Double_t y, Double_t z) void WriteAsciiFile(const Char_t* file) public:
BrDbDetectorVolume BrDbDetectorVolume() BrDbDetectorVolume BrDbDetectorVolume(const Char_t* name, const Char_t* parentName, Int_t specAngle, Int_t validstart, Int_t validstop, Int_t fromstart, Int_t fromend, Int_t date, Double_t posX, Double_t posY, Double_t posZ, Double_t theta, Double_t phi, Double_t psi, Double_t sizeX, Double_t sizeY, Double_t sizeZ, BrDbDetectorVolume::ERunTypes runType = kTypeData) BrDbDetectorVolume BrDbDetectorVolume(const Char_t* file) BrDbDetectorVolume BrDbDetectorVolume(BrDbDetectorVolume&) void ~BrDbDetectorVolume() static TClass* Class() static BrDbQuery* Create() Int_t GetDate() const virtual const Char_t* GetName() const const Char_t* GetParentName() const Double_t GetPhi() const Int_t GetPlatformType() const Double_t GetPosX() const Double_t GetPosY() const Double_t GetPosZ() const Double_t GetPsi() const Int_t GetRevisionId() const Double_t GetSizeX() const Double_t GetSizeY() const Double_t GetSizeZ() const Int_t GetSpectrometerAngle() const Double_t GetTheta() const Int_t GetValidStart() const virtual BrDbQuery* Insert() virtual TClass* IsA() const static TObjArray* MultipleInstance(TSQLResult*) virtual void ShowMembers(TMemberInspector& insp, char* parent) static BrDbDetectorVolume* SingleInstance(TSQLRow*) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Char_t fName[64] Detector name Int_t fSpectrometerAngle 100x absolute angle of spectrometer for index Int_t fValidStart Start time that these values are valid (UNIX time) Int_t fValidStop Stop time for these values to be valid (UNIX time) Int_t fFromStart Start time for basis for revsion Int_t fFromEnd End time for basis for revsion Int_t fDate Date of creation Double_t fSizeX Detector size x Double_t fSizeY Detector size y Double_t fSizeZ Detector size z Double_t fTheta Detector angle theta (relative to parent volume) Double_t fPhi Detector angle phi (relative to parent volume) Double_t fPsi Detector angle psi (relative to parent volume) Double_t fPosX Detector position x (relative to platform) Double_t fPosY Detector position y (relative to platform) Double_t fPosZ Detector position z (relative to platform) Char_t fParentName[64] Parent volume name Int_t fPlatformType Platform it sits on Int_t fRunType Type of run this entry used for, ie data or simul. Int_t fRevisionId revision id public:
static const BrDbDetectorVolume::ERunTypes kTypeNotSpecified static const BrDbDetectorVolume::ERunTypes kTypeData static const BrDbDetectorVolume::ERunTypes kTypeSimulation static const Char_t* kTableName

Class Description

 BrDbDectectorVolume is a class that maps onto the BRAHMS DB
 detector volume tables.
 The values in this table are meant to be relative to the
 platform that the detectors are sitting on.




BrDbDetectorVolume(void)
 Empty default constructor.

BrDbDetectorVolume(const Char_t *name,const Char_t *parentName, Int_t specAngle, Int_t validstart, Int_t validstop, Int_t fromstart, Int_t fromend, Int_t date,Double_t posX, Double_t posY, Double_t posZ, Double_t theta,Double_t phi, Double_t psi, Double_t sizeX, Double_t sizeY, Double_t sizeZ,ERunTypes runType)
 Constructor for detectors; (set front and back edge = 0)

BrDbDetectorVolume(const Char_t *file)
Constructor for reading from an ascii file

Create(void)
 Returns a SQL query string suitable for creation of this table in
 a database.

SingleInstance(TSQLRow* row)
 Returns an instance of a BrDbDetectorVolume. User needs to store this
 object immediately.

MultipleInstance(TSQLResult* res)
 Returns an (1D) array of BrDbDetectorVolume's matching Query that made
 the TSQLResult. User need to store this immediately.

Insert(void)

void SetName(const Char_t *name)
Set the detector name

void SetParentName(const Char_t *parent)
Set the platform name that this detector sits on

void SetSize(Double_t x, Double_t y, Double_t z)
Set the size parameters

void SetPosition(Double_t x, Double_t y, Double_t z)
Set the position parameters (relative to parent volume)

void SetAngles(Double_t theta, Double_t phi, Double_t psi)
Set euler angles (relative to parent volume)

void ReadAsciiFile(const Char_t *file)
Adopt convention to read from GBRAHMS type ASCII file
We will read: position, orientation and size

void WriteAsciiFile(const Char_t *file)
Adopt convention to write ASCII file
We will write: position, orientation and size



Inline Functions


                      void SetPlatformType(Int_t type)
                      void SetRevisionId(Int_t revision)
             const Char_t* GetName() const
                     Int_t GetValidStart() const
                     Int_t GetDate() const
                  Double_t GetSizeX() const
                  Double_t GetSizeY() const
                  Double_t GetSizeZ() const
                  Double_t GetTheta() const
                  Double_t GetPhi() const
                  Double_t GetPsi() const
                  Double_t GetPosX() const
                  Double_t GetPosY() const
                  Double_t GetPosZ() const
             const Char_t* GetParentName() const
                     Int_t GetPlatformType() const
                     Int_t GetRevisionId() const
                     Int_t GetSpectrometerAngle() const
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
        BrDbDetectorVolume BrDbDetectorVolume(BrDbDetectorVolume&)
                      void ~BrDbDetectorVolume()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/04/23 15:37:34 $ by videbaek $

Validate HTML
Validate CSS