CbmRoot
CbmTrdParModGeo.h
Go to the documentation of this file.
1 #ifndef CBMTRDPARMODGEO_H
2 #define CBMTRDPARMODGEO_H
3 
4 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
5 #include <RtypesCore.h> // for Double_t, Char_t
6 
7 #include "CbmTrdParMod.h" // for CbmTrdParMod
8 
9 class TGeoPhysicalNode;
10 
12 class CbmTrdParModGeo : public CbmTrdParMod {
13 public:
14  CbmTrdParModGeo(const char* name = "CbmTrdParModGeo",
15  const char* title = "TRD module geometry");
16  virtual ~CbmTrdParModGeo();
17  virtual Double_t GetDX() const;
18  virtual Double_t GetDY() const;
19  virtual Double_t GetDZ() const;
20  const Char_t* GetPath() const { return GetTitle(); }
21  virtual void GetXYZ(Double_t xyz[3]) const;
22  virtual Double_t GetX() const {
23  Double_t xyz[3];
24  GetXYZ(xyz);
25  return xyz[0];
26  }
27  virtual Double_t GetY() const {
28  Double_t xyz[3];
29  GetXYZ(xyz);
30  return xyz[1];
31  }
32  virtual Double_t GetZ() const {
33  Double_t xyz[3];
34  GetXYZ(xyz);
35  return xyz[2];
36  }
37  virtual void LocalToMaster(Double_t in[3], Double_t out[3]) const;
38 
39 private:
42 
43  TGeoPhysicalNode* fNode;
44 
45  ClassDef(
47  1) // Wrapper around the TGeoPhysicalNode containing definition of geometry parameters for one TRD module
48 };
49 
50 #endif
CbmTrdParModGeo::operator=
const CbmTrdParModGeo & operator=(const CbmTrdParModGeo &)
CbmTrdParModGeo::CbmTrdParModGeo
CbmTrdParModGeo(const char *name="CbmTrdParModGeo", const char *title="TRD module geometry")
Definition: CbmTrdParModGeo.cxx:10
CbmTrdParModGeo::GetDX
virtual Double_t GetDX() const
Definition: CbmTrdParModGeo.cxx:19
CbmTrdParModGeo::fNode
TGeoPhysicalNode * fNode
geometrical data for the module
Definition: CbmTrdParModGeo.h:43
CbmTrdParModGeo::CbmTrdParModGeo
CbmTrdParModGeo(const CbmTrdParModGeo &)
CbmTrdParModGeo::GetPath
const Char_t * GetPath() const
Definition: CbmTrdParModGeo.h:20
CbmTrdParModGeo::~CbmTrdParModGeo
virtual ~CbmTrdParModGeo()
Definition: CbmTrdParModGeo.cxx:16
CbmTrdParModGeo
Definition of geometry for one TRD module.
Definition: CbmTrdParModGeo.h:12
CbmTrdParModGeo::LocalToMaster
virtual void LocalToMaster(Double_t in[3], Double_t out[3]) const
Definition: CbmTrdParModGeo.cxx:34
CbmTrdParMod
Definition of generic parameters for one TRD module.
Definition: CbmTrdParMod.h:9
CbmTrdParModGeo::GetDY
virtual Double_t GetDY() const
Definition: CbmTrdParModGeo.cxx:24
CbmTrdParModGeo::GetDZ
virtual Double_t GetDZ() const
Definition: CbmTrdParModGeo.cxx:29
CbmTrdParModGeo::GetZ
virtual Double_t GetZ() const
Definition: CbmTrdParModGeo.h:32
CbmTrdParModGeo::GetX
virtual Double_t GetX() const
Definition: CbmTrdParModGeo.h:22
CbmTrdParMod.h
CbmTrdParModGeo::GetY
virtual Double_t GetY() const
Definition: CbmTrdParModGeo.h:27
CbmTrdParModGeo::GetXYZ
virtual void GetXYZ(Double_t xyz[3]) const
Definition: CbmTrdParModGeo.cxx:40