CbmRoot
Loading...
Searching...
No Matches
CbmTrdParModGeo.h
Go to the documentation of this file.
1/* Copyright (C) 2018-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Alexandru Bercuci */
4
5#ifndef CBMTRDPARMODGEO_H
6#define CBMTRDPARMODGEO_H
7
8#include "CbmTrdParMod.h" // for CbmTrdParMod
9
10#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11#include <RtypesCore.h> // for Double_t, Char_t
12
13class TGeoPhysicalNode;
14
16class CbmTrdParModGeo : public CbmTrdParMod {
17 public:
18 CbmTrdParModGeo(const char* name = "CbmTrdParModGeo", const char* title = "TRD module geometry");
19 virtual ~CbmTrdParModGeo();
20 virtual Double_t GetDX() const;
21 virtual Double_t GetDY() const;
22 virtual Double_t GetDZ() const;
23 const Char_t* GetPath() const { return GetTitle(); }
24 virtual void GetXYZ(Double_t xyz[3]) const;
25 virtual Double_t GetX() const
26 {
27 Double_t xyz[3];
28 GetXYZ(xyz);
29 return xyz[0];
30 }
31 virtual Double_t GetY() const
32 {
33 Double_t xyz[3];
34 GetXYZ(xyz);
35 return xyz[1];
36 }
37 virtual Double_t GetZ() const
38 {
39 Double_t xyz[3];
40 GetXYZ(xyz);
41 return xyz[2];
42 }
43 virtual void LocalToMaster(Double_t in[3], Double_t out[3]) const;
44 bool SetNode();
45
46 TGeoPhysicalNode* GetNode() { return fNode; }
47
48 private:
51
52 TGeoPhysicalNode* fNode;
53
54 ClassDef(CbmTrdParModGeo,
55 1) // Wrapper around the TGeoPhysicalNode containing definition of geometry parameters for one TRD module
56};
57
58#endif
Definition of geometry for one TRD module.
virtual Double_t GetDY() const
virtual Double_t GetDX() const
CbmTrdParModGeo(const CbmTrdParModGeo &)
TGeoPhysicalNode * GetNode()
const Char_t * GetPath() const
virtual ~CbmTrdParModGeo()
virtual Double_t GetZ() const
const CbmTrdParModGeo & operator=(const CbmTrdParModGeo &)
TGeoPhysicalNode * fNode
geometrical data for the module
virtual Double_t GetY() const
virtual Double_t GetDZ() const
CbmTrdParModGeo(const char *name="CbmTrdParModGeo", const char *title="TRD module geometry")
virtual void LocalToMaster(Double_t in[3], Double_t out[3]) const
virtual Double_t GetX() const
virtual void GetXYZ(Double_t xyz[3]) const
Definition of generic parameters for one TRD module.