CbmRoot
CbmTrdParSetAsic.h
Go to the documentation of this file.
1 #ifndef CBMTRDPARSETASIC_H
2 #define CBMTRDPARSETASIC_H
3 
4 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
5 #include <RtypesCore.h> // for Int_t, Bool_t, Option_t, UChar_t
6 
7 #include <map> // for map
8 #include <vector> // for vector
9 
10 #include "CbmTrdParSet.h" // for CbmTrdParSet
11 
12 class CbmTrdParAsic;
13 class FairParamList;
14 
19 public:
21  CbmTrdParSetAsic(const char* name = "CbmTrdParSetAsic",
22  const char* title = "TRD ASIC parameters",
23  const char* context = "Default");
24 
26  virtual ~CbmTrdParSetAsic();
27 
29  virtual void clear() { ; }
30  void AddParameters(
31  CbmTrdParSetAsic*); // (VF) renamed to avoid shadowing of virtual method
32  Bool_t getParams(FairParamList*);
33  void putParams(FairParamList*);
34  virtual void GetAsicAddresses(std::vector<Int_t>* a) const;
39  virtual Int_t GetAsicAddress(Int_t chAddress) const;
40  virtual const CbmTrdParAsic* GetAsicPar(Int_t address) const {
41  return (CbmTrdParAsic*) GetModulePar(address);
42  }
43  virtual CbmTrdParAsic* GetAsicPar(Int_t address) {
44  return (CbmTrdParAsic*) GetModulePar(address);
45  }
46  virtual Int_t GetAsicType() const { return fType; }
47  virtual const CbmTrdParSet* GetModuleSet(Int_t detId) const;
48  virtual Int_t GetNofAsics() const { return GetNrOfModules(); }
49  virtual void Print(Option_t* opt = "") const;
50  virtual void SetAsicPar(Int_t address, CbmTrdParAsic* p);
51  virtual void SetAsicType(Int_t t) { fType = t; }
52 
53 private:
56 
57  UChar_t fType;
58  std::map<Int_t, CbmTrdParSetAsic*>
61  1); // The set of ASIC settings for all TRD modules
62 };
63 #endif
CbmTrdParSetAsic::GetModuleSet
virtual const CbmTrdParSet * GetModuleSet(Int_t detId) const
Definition: CbmTrdParSetAsic.cxx:238
CbmTrdParSetAsic::Print
virtual void Print(Option_t *opt="") const
Definition: CbmTrdParSetAsic.cxx:248
CbmTrdParAsic
Definition of ASIC parameters.
Definition: CbmTrdParAsic.h:15
CbmTrdParSetAsic::ClassDef
ClassDef(CbmTrdParSetAsic, 1)
CbmTrdParSetAsic::fType
UChar_t fType
type of ASIC for current se
Definition: CbmTrdParSetAsic.h:57
CbmTrdParSetAsic::GetNofAsics
virtual Int_t GetNofAsics() const
Definition: CbmTrdParSetAsic.h:48
CbmTrdParSetAsic::putParams
void putParams(FairParamList *)
Definition: CbmTrdParSetAsic.cxx:103
CbmTrdParSetAsic::CbmTrdParSetAsic
CbmTrdParSetAsic(const char *name="CbmTrdParSetAsic", const char *title="TRD ASIC parameters", const char *context="Default")
Definition: CbmTrdParSetAsic.cxx:22
CbmTrdParSetAsic::GetAsicPar
virtual const CbmTrdParAsic * GetAsicPar(Int_t address) const
Definition: CbmTrdParSetAsic.h:40
CbmTrdParSetAsic
Describe TRD module ASIC settings (electronic gain, delays, etc)
Definition: CbmTrdParSetAsic.h:18
CbmTrdParSetAsic::GetAsicAddress
virtual Int_t GetAsicAddress(Int_t chAddress) const
Look for the ASIC which operates on a specific channel.
Definition: CbmTrdParSetAsic.cxx:209
CbmTrdParSetAsic::GetAsicPar
virtual CbmTrdParAsic * GetAsicPar(Int_t address)
Definition: CbmTrdParSetAsic.h:43
CbmTrdParSetAsic::~CbmTrdParSetAsic
virtual ~CbmTrdParSetAsic()
Destructor.
Definition: CbmTrdParSetAsic.cxx:28
CbmTrdParSetAsic::CbmTrdParSetAsic
CbmTrdParSetAsic(const CbmTrdParSetAsic &ref)
CbmTrdParSetAsic::clear
virtual void clear()
Reset all parameters.
Definition: CbmTrdParSetAsic.h:29
CbmTrdParSet::GetNrOfModules
virtual Int_t GetNrOfModules() const
Definition: CbmTrdParSet.h:34
CbmTrdParSet
Definition: CbmTrdParSet.h:19
CbmTrdParSet::GetModulePar
virtual const CbmTrdParMod * GetModulePar(Int_t detId) const
Definition: CbmTrdParSet.cxx:45
CbmTrdParSetAsic::AddParameters
void AddParameters(CbmTrdParSetAsic *)
Definition: CbmTrdParSetAsic.cxx:201
CbmTrdParSetAsic::fModPar
std::map< Int_t, CbmTrdParSetAsic * > fModPar
module wise list of ASIC sets
Definition: CbmTrdParSetAsic.h:59
CbmTrdParSetAsic::getParams
Bool_t getParams(FairParamList *)
Definition: CbmTrdParSetAsic.cxx:39
CbmTrdParSetAsic::SetAsicPar
virtual void SetAsicPar(Int_t address, CbmTrdParAsic *p)
Definition: CbmTrdParSetAsic.cxx:273
CbmTrdParSet.h
CbmTrdParSetAsic::GetAsicAddresses
virtual void GetAsicAddresses(std::vector< Int_t > *a) const
Definition: CbmTrdParSetAsic.cxx:224
CbmTrdParSetAsic::GetAsicType
virtual Int_t GetAsicType() const
Definition: CbmTrdParSetAsic.h:46
CbmTrdParSetAsic::operator=
const CbmTrdParSetAsic & operator=(const CbmTrdParSetAsic &ref)
CbmTrdParSetAsic::SetAsicType
virtual void SetAsicType(Int_t t)
Definition: CbmTrdParSetAsic.h:51