CbmRoot
CbmStsParModule.h
Go to the documentation of this file.
1 
6 #ifndef CBMSTSPARMODULE_H
7 #define CBMSTSPARMODULE_H 1
8 
9 #include <Rtypes.h> // for THashConsistencyHolder, ClassDefNV
10 #include <RtypesCore.h> // for UInt_t
11 
12 #include <string> // for string
13 #include <vector> // for vector
14 
15 #include "CbmStsParAsic.h" // for CbmStsParAsic
16 
29 
30 public:
33 
34 
39  CbmStsParModule(UInt_t nChannels, UInt_t nAsicChannels);
40 
41 
44 
45 
50  const CbmStsParAsic& GetParAsic(UInt_t channel) const;
51 
52 
56  const std::vector<CbmStsParAsic>& GetAsicParams() const { return fAsicPars; }
57 
58 
62  UInt_t GetNofAsicChannels() const { return fNofAsicChannels; }
63 
64 
68  UInt_t GetNofAsics() const { return fAsicPars.size(); }
69 
70 
74  UInt_t GetNofChannels() const { return fNofChannels; }
75 
76 
81  Bool_t IsChannelActive(UInt_t channel) const;
82 
83 
87  void SetAllAsics(const CbmStsParAsic& asicPar);
88 
89 
91  std::string ToString() const;
92 
93 
94 private:
95  UInt_t fNofChannels = 0;
96  UInt_t fNofAsicChannels = 0.;
97  std::vector<CbmStsParAsic> fAsicPars {};
98 
99 
101 };
102 
103 #endif /* CBMSTSPARMODULE_H */
CbmStsParModule::IsChannelActive
Bool_t IsChannelActive(UInt_t channel) const
Check for a channel being active.
Definition: CbmStsParModule.cxx:40
CbmStsParModule::fAsicPars
std::vector< CbmStsParAsic > fAsicPars
ASIC parameters.
Definition: CbmStsParModule.h:97
CbmStsParModule::CbmStsParModule
CbmStsParModule()
Default constructor.
Definition: CbmStsParModule.h:32
CbmStsParModule::GetAsicParams
const std::vector< CbmStsParAsic > & GetAsicParams() const
All ASIC parameters.
Definition: CbmStsParModule.h:56
CbmStsParModule::GetNofChannels
UInt_t GetNofChannels() const
Number of channels.
Definition: CbmStsParModule.h:74
CbmStsParModule::SetAllAsics
void SetAllAsics(const CbmStsParAsic &asicPar)
Set all ASICs with the same parameter set.
Definition: CbmStsParModule.cxx:49
CbmStsParModule::GetNofAsics
UInt_t GetNofAsics() const
Number of ASICs.
Definition: CbmStsParModule.h:68
CbmStsParModule::fNofAsicChannels
UInt_t fNofAsicChannels
Number of channels per ASIC.
Definition: CbmStsParModule.h:96
CbmStsParModule::GetParAsic
const CbmStsParAsic & GetParAsic(UInt_t channel) const
ASIC parameters for a given channel.
Definition: CbmStsParModule.cxx:29
CbmStsParAsic
Parameters of the STS readout ASIC.
Definition: CbmStsParAsic.h:25
CbmStsParModule
Parameters for one STS module.
Definition: CbmStsParModule.h:28
CbmStsParModule::ClassDefNV
ClassDefNV(CbmStsParModule, 1)
CbmStsParModule::fNofChannels
UInt_t fNofChannels
Number of readout channels.
Definition: CbmStsParModule.h:95
CbmStsParModule::~CbmStsParModule
~CbmStsParModule()
Destructor.
Definition: CbmStsParModule.h:43
CbmStsParModule::ToString
std::string ToString() const
String output.
Definition: CbmStsParModule.cxx:59
CbmStsParModule::GetNofAsicChannels
UInt_t GetNofAsicChannels() const
Number of channels per ASIC.
Definition: CbmStsParModule.h:62
CbmStsParModule::CbmStsParModule
CbmStsParModule(UInt_t nChannels, UInt_t nAsicChannels)
Standard constructor.
CbmStsParAsic.h