CbmRoot
CbmStsModule.h
Go to the documentation of this file.
1 
6 #ifndef CBMSTSMODULE_H
7 #define CBMSTSMODULE_H 1
8 
9 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
10 #include <RtypesCore.h> // for Double_t, UShort_t, Bool_t, Int_t, kTRUE
11 #include <TString.h> // for TString
12 
13 #include <string> // for string
14 
15 #include "CbmStsElement.h" // for CbmStsElement
16 #include "CbmStsParModule.h" // for CbmStsParModule
17 
18 class CbmStsParAsic;
19 class TGeoPhysicalNode;
20 
21 
31 class CbmStsModule : public CbmStsElement {
32 
33 public:
39  CbmStsModule(UInt_t address = 0,
40  TGeoPhysicalNode* node = nullptr,
41  CbmStsElement* mother = nullptr);
42 
43 
45  virtual ~CbmStsModule();
46 
47 
52  static Int_t GetAddressFromName(TString name);
53 
54 
58  const CbmStsParModule* GetParameters() const { return fParams; }
59 
60 
64  void SetParameters(const CbmStsParModule& par) { fParams = &par; }
65 
66 
68  std::string ToString() const;
69 
70 
71 private:
73  virtual void InitDaughters();
74 
75 
76 private:
77  const CbmStsParModule* fParams = nullptr;
78 
79 
81 };
82 
83 #endif /* CBMSTSMODULE_H */
CbmStsModule::ToString
std::string ToString() const
Definition: CbmStsModule.cxx:100
CbmStsModule::SetParameters
void SetParameters(const CbmStsParModule &par)
Set module parameters.
Definition: CbmStsModule.h:64
CbmStsModule
Class representing an instance of a readout unit in the CBM-STS.
Definition: CbmStsModule.h:31
CbmStsModule::InitDaughters
virtual void InitDaughters()
Initialise daughters from geometry.
Definition: CbmStsModule.cxx:65
CbmStsParAsic
Parameters of the STS readout ASIC.
Definition: CbmStsParAsic.h:25
CbmStsParModule
Parameters for one STS module.
Definition: CbmStsParModule.h:28
CbmStsParModule.h
CbmStsModule::GetAddressFromName
static Int_t GetAddressFromName(TString name)
Get the address from the module name (static)
Definition: CbmStsModule.cxx:39
CbmStsElement.h
CbmStsModule::ClassDef
ClassDef(CbmStsModule, 3)
Module parameters.
CbmStsModule::~CbmStsModule
virtual ~CbmStsModule()
Destructor.
Definition: CbmStsModule.cxx:34
CbmStsModule::fParams
const CbmStsParModule * fParams
Definition: CbmStsModule.h:77
CbmStsModule::GetParameters
const CbmStsParModule * GetParameters() const
Module parameters.
Definition: CbmStsModule.h:58
CbmStsElement
Class representing an element of the STS setup.
Definition: CbmStsElement.h:32
CbmStsModule::CbmStsModule
CbmStsModule(UInt_t address=0, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr)
Standard constructor.
Definition: CbmStsModule.cxx:26