CMS 3D CMS Logo

DTConfigManager.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 #ifndef DT_CONFIG_MANAGER_H
17 #define DT_CONFIG_MANAGER_H
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 #include <map>
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
38 
40 
41 //------------------------------------
42 // Collaborating Class Declarations --
43 //------------------------------------
44 
45 // ---------------------
46 // -- Class Interface --
47 // ---------------------
48 
49 
51 
52  public:
53 
54  typedef std::map<DTBtiId,DTConfigBti> innerBtiMap;
55  typedef std::map<DTTracoId,DTConfigTraco> innerTracoMap;
56  typedef std::map<DTChamberId,innerBtiMap> BtiMap;
57  typedef std::map<DTChamberId,innerTracoMap> TracoMap;
58  typedef std::map<DTChamberId,DTConfigTSTheta> TSThetaMap;
59  typedef std::map<DTChamberId,DTConfigTSPhi> TSPhiMap;
60  typedef std::map<DTChamberId,DTConfigTrigUnit> TrigUnitMap;
61  typedef std::map<DTChamberId,DTConfigLUTs> LUTMap;
62  typedef std::map<DTSectCollId,DTConfigSectColl> SectCollMap;
63 
64  public:
65 
68 
71 
73  const DTConfigBti* getDTConfigBti(DTBtiId) const;
74 
76  const std::map<DTBtiId,DTConfigBti>& getDTConfigBtiMap(DTChamberId) const;
77 
80 
82  const std::map<DTTracoId,DTConfigTraco>& getDTConfigTracoMap(DTChamberId) const;
83 
86 
89 
92 
95 
98 
101 
103  inline bool getDTTPGDebug() const { return my_dttpgdebug; };
104 
106  int getBXOffset() const;
107 
109  inline bool lutFromDB() const { return my_lutfromdb; }
110 
112  inline bool useAcceptParam() const { return my_acceptparam; }
113 
115  inline bool CCBConfigValidity() const { return my_CCBvalid; }
116 
117 
120 
123 
125  inline void setDTConfigTSTheta(DTChamberId chambid ,DTConfigTSTheta conf) { my_tsthetamap[chambid] = conf; };
126 
128  inline void setDTConfigTSPhi(DTChamberId chambid,DTConfigTSPhi conf) { my_tsphimap[chambid] = conf; };
129 
131  void setDTConfigTrigUnit(DTChamberId chambid,DTConfigTrigUnit conf) { my_trigunitmap[chambid] = conf; };
132 
134  void setDTConfigLUTs(DTChamberId chambid,DTConfigLUTs conf) { my_lutmap[chambid] = conf; };
135 
137  void setDTConfigSectColl(DTSectCollId sectcollid ,DTConfigSectColl conf){ my_sectcollmap[sectcollid] = conf; };
138 
140  void setDTConfigPedestals(DTConfigPedestals pedestals) { my_pedestals = pedestals; };
141 
143  inline void setDTTPGDebug(bool debug) { my_dttpgdebug = debug; }
144 
146  inline void setLutFromDB(bool lutFromDB) { my_lutfromdb = lutFromDB; }
147 
149  inline void setUseAcceptParam(bool acceptparam) { my_acceptparam = acceptparam; }
150 
152  inline void setCCBConfigValidity(bool CCBValid) { my_CCBvalid = CCBValid; }
153 
155  void dumpLUTParam(DTChamberId &chambid) const; /* SV 091111 */
156 
157 
158  private:
159 
160  // maps for the whole config structure
161  BtiMap my_btimap;
162  TracoMap my_tracomap;
163  TSThetaMap my_tsthetamap;
164  TSPhiMap my_tsphimap;
165  TrigUnitMap my_trigunitmap;
166  LUTMap my_lutmap;
167  SectCollMap my_sectcollmap;
169 
171 
175 };
176 
177 #endif
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
void setLutFromDB(bool lutFromDB)
Set lut from DB flag.
void dumpLUTParam(DTChamberId &chambid) const
Dump luts string commands from configuration parameters.
void setDTTPGDebug(bool debug)
SetGlobalDebug flag.
void setDTConfigTSTheta(DTChamberId chambid, DTConfigTSTheta conf)
Set DTConfigTSTheta for desired chip.
void setUseAcceptParam(bool acceptparam)
Set the use of Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
const DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
std::map< DTSectCollId, DTConfigSectColl > SectCollMap
TSThetaMap my_tsthetamap
std::map< DTChamberId, DTConfigTSPhi > TSPhiMap
std::map< DTBtiId, DTConfigBti > innerBtiMap
int getBXOffset() const
Get BX Offset for a given vdrift config.
DTConfigPedestals my_pedestals
void setDTConfigTraco(DTTracoId, DTConfigTraco)
Set DTConfigTraco for desired chip.
std::map< DTChamberId, innerTracoMap > TracoMap
void setDTConfigBti(DTBtiId, DTConfigBti)
Set DTConfigBti for desired chip.
const DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
const std::map< DTBtiId, DTConfigBti > & getDTConfigBtiMap(DTChamberId) const
Get desired BTI configuration map for a given DTChamber.
void setDTConfigTSPhi(DTChamberId chambid, DTConfigTSPhi conf)
Set DTConfigTSPhi for desired chip.
std::map< DTChamberId, innerBtiMap > BtiMap
bool getDTTPGDebug() const
Get global debug flag.
bool CCBConfigValidity() const
flag for CCB configuration validity
const std::map< DTTracoId, DTConfigTraco > & getDTConfigTracoMap(DTChamberId) const
Get desired TRACO configuration map for a given DTChamber.
void setDTConfigLUTs(DTChamberId chambid, DTConfigLUTs conf)
Set DTConfigLUTs for desired chamber.
const DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
void setDTConfigPedestals(DTConfigPedestals pedestals)
Set DTConfigPedestals configuration.
void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf)
Set DTConfigSectColl for desired chip.
#define debug
Definition: HDRShower.cc:19
std::map< DTChamberId, DTConfigTSTheta > TSThetaMap
std::map< DTChamberId, DTConfigLUTs > LUTMap
bool lutFromDB() const
Lut from DB flag.
std::map< DTTracoId, DTConfigTraco > innerTracoMap
TrigUnitMap my_trigunitmap
void setCCBConfigValidity(bool CCBValid)
Set the flag for CCB configuration validity.
DTConfigManager()
Constructor.
const DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.
~DTConfigManager()
Destructor.
std::map< DTChamberId, DTConfigTrigUnit > TrigUnitMap
void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf)
Set DTConfigTrigUnit for desired chamber.
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
SectCollMap my_sectcollmap
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
const DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
const DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit configuration.