CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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 
132 
135 
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
169 
171 
175 };
176 
177 #endif
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)
std::map< DTSectCollId, DTConfigSectColl > SectCollMap
TSThetaMap my_tsthetamap
std::map< DTChamberId, DTConfigTSPhi > TSPhiMap
DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
std::map< DTBtiId, DTConfigBti > innerBtiMap
int getBXOffset() const
Get BX Offset for a given vdrift config.
DTConfigPedestals * getDTConfigPedestals() const
Get desired Pedestals configuration.
DTConfigPedestals my_pedestals
DTConfigSectColl * getDTConfigSectColl(DTSectCollId) const
Get desired SectorCollector configuration.
void setDTConfigTraco(DTTracoId, DTConfigTraco)
Set DTConfigTraco for desired chip.
std::map< DTChamberId, innerTracoMap > TracoMap
void setDTConfigBti(DTBtiId, DTConfigBti)
Set DTConfigBti for desired chip.
DTConfigTrigUnit * getDTConfigTrigUnit(DTChamberId) const
Get desired Trigger Unit 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.
DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
DTConfigTraco * getDTConfigTraco(DTTracoId) const
Get desired TRACO configuration.
tuple conf
Definition: dbtoconf.py:185
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.
void setDTConfigPedestals(DTConfigPedestals pedestals)
Set DTConfigPedestals configuration.
void setDTConfigSectColl(DTSectCollId sectcollid, DTConfigSectColl conf)
Set DTConfigSectColl for desired chip.
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.
~DTConfigManager()
Destructor.
std::map< DTChamberId, DTConfigTrigUnit > TrigUnitMap
void setDTConfigTrigUnit(DTChamberId chambid, DTConfigTrigUnit conf)
Set DTConfigTrigUnit for desired chamber.
#define debug
Definition: MEtoEDMFormat.h:34
SectCollMap my_sectcollmap
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
DTConfigBti * getDTConfigBti(DTBtiId) const
Get desired BTI configuration.
DTConfigTSPhi * getDTConfigTSPhi(DTChamberId) const
Get desired Trigger Server Phi configuration.