CbmRoot
Loading...
Searching...
No Matches
CbmStsModule.h
Go to the documentation of this file.
1/* Copyright (C) 2013-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
10#ifndef CBMSTSMODULE_H
11#define CBMSTSMODULE_H 1
12
13#include "CbmStsElement.h" // for CbmStsElement
14#include "CbmStsParModule.h" // for CbmStsParModule
15
16#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
17#include <RtypesCore.h> // for Double_t, UShort_t, Bool_t, Int_t, kTRUE
18#include <TString.h> // for TString
19
20#include <string> // for string
21
22class CbmStsParAsic;
23class TGeoPhysicalNode;
24
25
36
37public:
43 CbmStsModule(UInt_t address = 0, TGeoPhysicalNode* node = nullptr, CbmStsElement* mother = nullptr);
44
45
47 virtual ~CbmStsModule();
48
49
54 static Int_t GetAddressFromName(TString name);
55
56
60 const CbmStsParModule* GetParameters() const { return fParams; }
61
62
66 void SetParameters(const CbmStsParModule& par) { fParams = &par; }
67
68
70 std::string ToString() const;
71
72
73private:
75 virtual void InitDaughters();
76
77
78private:
79 const CbmStsParModule* fParams = nullptr;
80
81
83};
84
85#endif /* CBMSTSMODULE_H */
Class representing an element of the STS setup.
Class representing an instance of a readout unit in the CBM-STS.
virtual void InitDaughters()
Initialise daughters from geometry.
void SetParameters(const CbmStsParModule &par)
Set module parameters.
ClassDef(CbmStsModule, 3)
Module parameters.
static Int_t GetAddressFromName(TString name)
Get the address from the module name (static)
std::string ToString() const
CbmStsModule(UInt_t address=0, TGeoPhysicalNode *node=nullptr, CbmStsElement *mother=nullptr)
Standard constructor.
virtual ~CbmStsModule()
Destructor.
const CbmStsParModule * GetParameters() const
Module parameters.
const CbmStsParModule * fParams
Parameters of the STS readout ASIC.
Parameters for one STS module.