ATLAS Offline Software
CscCondDbData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 #include "GaudiKernel/MsgStream.h"
9 #include <atomic>
10 
11 
12 // loadParameters
13 void
15 
16  // prepare contexts
17  m_moduleContext = idHelper->module_context();
18  m_channelContext = idHelper->channel_context();
19 
20 
21  for(int stationName = 0; stationName < 2; stationName++){
22  for(int stationEta =0; stationEta <2; stationEta++){
23  for(int stationPhi = 0; stationPhi <8; stationPhi++){
24  for(int wireLayer = 0; wireLayer <4; wireLayer++){
25  for(int measuresPhi = 0; measuresPhi <2; measuresPhi++){
26  Identifier id = idHelper->channelID(
27  stationName+1,
28  (stationEta? 1:-1),
29  stationPhi+1,
30  2,//only installed chamber layer
31  wireLayer+1,
32  measuresPhi,
33  1 //channel doesn't matter. We'll just use first
34  );
35  unsigned int onlineId;
36  if(!offlineToOnlineId(idHelper, id, onlineId).isSuccess()) {
37  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
38  log << MSG::WARNING << "Failed at geting online id!" << endmsg;
39  }
40  else {
41  m_onlineChannelIdsFromLayerHash.push_back(onlineId);
42  }
43  }
44  }
45  }
46  }
47  }
48 }
49 
50 
51 // set Parameters
52 void
53 CscCondDbData::setParameters(bool onlineOfflinePhiFlip){
54  m_onlineOfflinePhiFlip = onlineOfflinePhiFlip;
55 }
56 
57 // --- writing identifiers -------
58 
59 
60 // setChannelF001
61 void
63  m_cachedChannelsF001[(unsigned int) hash] = f001;
64 }
65 
66 // setChannelNoise
67 void
69  m_cachedChannelsNoise[(unsigned int) hash] = noise;
70 }
71 
72 // setChannelPed
73 void
75  m_cachedChannelsPed[(unsigned int) hash] = ped;
76 }
77 
78 // setChannelPSlope
79 void
81  m_cachedChannelsPSlope[(unsigned int) hash] = pslope;
82 }
83 
84 // setChannelRMS
85 void
87  m_cachedChannelsRMS[(unsigned int) hash] = rms;
88 }
89 
90 // setChannelStatus
91 void
93  m_cachedChannelsStatus[(unsigned int) hash] = status;
94  if((status & 0x1) || ((status >> 1) & 0x1)) setDeadChannelHash(hash);
95 }
96 
97 // setChannelT0Base
98 void
100  m_cachedChannelsT0Base[(unsigned int) hash] = t0base;
101 }
102 
103 // setChannelT0Phase
104 void
106  m_cachedChannelsT0Phase[(unsigned int) hash] = t0phase;
107 }
108 
109 
110 
111 // --- writing dead channels -----
112 
113 // setDeadChannelHash
114 void
116  if(std::find(m_cachedDeadChannelsHash.begin(), m_cachedDeadChannelsHash.end(), (unsigned int) hash) != m_cachedDeadChannelsHash.end()) return;
117  m_cachedDeadChannelsHash.push_back((unsigned int) hash);
118 }
119 
120 // setDeadLayer
121 void
123  if(std::find(m_cachedDeadLayersId.begin(), m_cachedDeadLayersId.end(), Id)!=m_cachedDeadLayersId.end()) return;
124  m_cachedDeadLayers .push_back(std::string(name));
125  m_cachedDeadLayersId.push_back(Id );
126 }
127 
128 // setDeadStation
129 void
132  m_cachedDeadStations .push_back(std::string(name));
133  m_cachedDeadStationsId.push_back(Id );
134 }
135 
136 
137 
138 
139 
140 // --- reading identifiers -------
141 
142 // getDeadLayers
143 const
144 std::vector<std::string>& CscCondDbData::getDeadLayers() const{
145  if(m_cachedDeadLayers.size()!=0) return m_cachedDeadLayers;
146  return m_emptyNames;
147 }
148 
149 // getDeadStations
150 const
151 std::vector<std::string>& CscCondDbData::getDeadStations() const{
152  if(m_cachedDeadStations.size()!=0) return m_cachedDeadStations;
153  return m_emptyNames;
154 }
155 
156 
157 
158 // getDeadLayersId
159 const
160 std::vector<Identifier>& CscCondDbData::getDeadLayersId() const{
161  if(m_cachedDeadLayersId.size()!=0) return m_cachedDeadLayersId;
162  return m_emptyIds;
163 }
164 
165 // getDeadStationsId
166 const
167 std::vector<Identifier>& CscCondDbData::getDeadStationsId() const{
168  if(m_cachedDeadStationsId.size()!=0) return m_cachedDeadStationsId;
169  return m_emptyIds;
170 }
171 
172 
173 
174 // getDeadChannelsHashs
175 const
176 std::vector<unsigned int>& CscCondDbData::getDeadChannelsHash() const{
178  return m_emptyHashs;
179 }
180 
181 
182 
183 // --- stored info for all -------
184 
185 // hasChannelT0Phase
187  if(m_cachedChannelsT0Phase.find((unsigned int) hash)==m_cachedChannelsT0Phase.end()) return false;
188  return true;
189 }
190 
191 // getChannelF001
192 const
194  if(m_cachedChannelsF001.find((unsigned int) hash)==m_cachedChannelsF001.end()) return m_nillfloat;
195  return m_cachedChannelsF001.find((unsigned int) hash)->second;
196 }
197 
198 // getChannelNoise
199 const
201  if(m_cachedChannelsNoise.find((unsigned int) hash)==m_cachedChannelsNoise.end()) return m_nillfloat;
202  return m_cachedChannelsNoise.find((unsigned int) hash)->second;
203 }
204 
205 // getChannelPed
206 const
208  if(m_cachedChannelsPed.find((unsigned int) hash)==m_cachedChannelsPed.end()) return m_nillfloat;
209  return m_cachedChannelsPed.find((unsigned int) hash)->second;
210 }
211 
212 // getChannelPSlope
213 const
215  if(m_cachedChannelsPSlope.find((unsigned int) hash)==m_cachedChannelsPSlope.end()) return m_nillfloat;
216  return m_cachedChannelsPSlope.find((unsigned int) hash)->second;
217 }
218 
219 // getChannelRMS
220 const
222  if(m_cachedChannelsRMS.find((unsigned int) hash)==m_cachedChannelsRMS.end()) return m_nillfloat;
223  return m_cachedChannelsRMS.find((unsigned int) hash)->second;
224 }
225 
226 // getChannelStatus
227 const
229  if(m_cachedChannelsStatus.find((unsigned int) hash)==m_cachedChannelsStatus.end()) return m_nillint;
230  return m_cachedChannelsStatus.find((unsigned int) hash)->second;
231 }
232 
233 // getChannelT0Base
234 const
236  if(m_cachedChannelsT0Base.find((unsigned int) hash)==m_cachedChannelsT0Base.end()) return m_nillfloat;
237  return m_cachedChannelsT0Base.find((unsigned int) hash)->second;
238 }
239 
240 // getChannelT0Phase
241 const
243  if(m_cachedChannelsT0Phase.find((unsigned int) hash)==m_cachedChannelsT0Phase.end()) return m_nillbool;
244  return m_cachedChannelsT0Phase.find((unsigned int) hash)->second;
245 }
246 
247 // readChannelF001
250  if(val==-1) return StatusCode::FAILURE;
251  return StatusCode::SUCCESS;
252 }
253 
254 // readChannelNoise
257  if(val==-1) return StatusCode::FAILURE;
258  return StatusCode::SUCCESS;
259 }
260 
261 // readChannelPed
264  if(val==-1) return StatusCode::FAILURE;
265  return StatusCode::SUCCESS;
266 }
267 
268 // readChannelPSlope
271  if(val==-1) return StatusCode::FAILURE;
272  return StatusCode::SUCCESS;
273 }
274 
275 // readChannelRMS
278  if(val==-1) return StatusCode::FAILURE;
279  return StatusCode::SUCCESS;
280 }
281 
282 // readChannelStatus
285  if(val==-1) return StatusCode::FAILURE;
286  return StatusCode::SUCCESS;
287 }
288 
289 // readChannelT0Base
292  if(val==-1) return StatusCode::FAILURE;
293  return StatusCode::SUCCESS;
294 }
295 
296 // readChannelT0Phase
298  if(!hasChannelT0Phase(hash)) return StatusCode::FAILURE;
300  return StatusCode::SUCCESS;
301 }
302 
303 
304 
305 // --- probing identifiers -------
306 
307 // isGood
308 bool
310  // probing id in all lists
311  if(not isGoodLayer (Id)) return false;
312  if(not isGoodStation (Id)) return false;
313  return true;
314 }
315 
316 // isGoodChannelHash
317 bool
319  if(m_cachedDeadChannelsHash.size()==0) return true;
320  bool found = std::find(m_cachedDeadChannelsHash.begin(), m_cachedDeadChannelsHash.end(), (unsigned int) hash) != m_cachedDeadChannelsHash.end();
321  return !found;
322 }
323 
324 // isGoodLayer
325 bool
327  if(m_cachedDeadLayersId.size()==0) return true;
329  return !found;
330 }
331 
332 // isGoodStation
333 bool
335  if(m_cachedDeadStationsId.size()==0) return true;
337  return !found;
338 }
339 
340 
341 
342 // ID HELPER FUNCTIONS BELOW ------------------------------
343 
344 
345 // indexToStringId
346 StatusCode
347 CscCondDbData::indexToStringId(const CscIdHelper* idHelper, const unsigned int & index, const std::string & cat, std::string & idString) const {
348  // copy-paste from CscCoolStrSvc
349 
350  //There is no string id for the CSC category.
351  if(cat == "CSC") {
352  idString = "";
353  return StatusCode::SUCCESS;
354  }
355  if(cat == "ENDCAP") {
356  if(index == 0)
357  idString = "-1";
358  if(index == 1)
359  idString = "1";
360  else {
361  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
362  log << MSG::INFO << "Requested index " << index << " can't be converted to a string Id for the category " << cat << endmsg;
363  return StatusCode::RECOVERABLE;
364  }
365  }
366 
367  //remaining categories need online identifiers
368  unsigned int onlineId = 0;
369  std::stringstream ss;
370  if(cat == "CHAMBER"){
371  Identifier chamberId;
372  idHelper->get_id(IdentifierHash(index), chamberId, &m_moduleContext);
373  if(!offlineElementToOnlineId(idHelper, chamberId, onlineId).isSuccess()) {
374  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
375  log << MSG::INFO << "Failed converting chamber identifier to online id during stringId gen." << endmsg;
376  return StatusCode::RECOVERABLE;
377  }
378  }
379  else if(cat == "LAYER"){
380  unsigned int onlineId;
381  if(!layerHashToOnlineId(index, onlineId)){
382  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
383  log << MSG::INFO << "Failed at getting online id from layer hash during stringId gen." << endmsg;
384  }
385  }
386  else if(cat == "CHANNEL"){
389  if(!offlineToOnlineId(idHelper, channelId, onlineId).isSuccess()) {
390  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
391  log << MSG::INFO << "Failed converting chamber identifier to online id during stringId gen." << endmsg;
392  return StatusCode::RECOVERABLE;
393  }
394  }
395 
396  ss << std::hex << std::setfill('0') << std::setw(5) << onlineId << std::dec;
397  idString = ss.str();
398  return StatusCode::SUCCESS;
399 }
400 
401 
402 // layerHashToOnlineId
404 CscCondDbData::layerHashToOnlineId(const unsigned int & layerHash, unsigned int & onlineId) const {
405  // copy-paste from CscCoolStrSvc
406 
407  if(layerHash >= m_onlineChannelIdsFromLayerHash.size()) {
408  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
409  log << MSG::INFO << "Tried to lookup online id from layer hash " << layerHash <<". Max is " << m_onlineChannelIdsFromLayerHash.size() << endmsg;
410  return StatusCode::SUCCESS;
411  }
412  onlineId = m_onlineChannelIdsFromLayerHash[layerHash];
413  return StatusCode::SUCCESS;
414 }
415 
416 
417 // offlineElementToOnlineId
418 StatusCode
419 CscCondDbData::offlineElementToOnlineId(const CscIdHelper* idHelper, const Identifier & id, unsigned int &onlineId) const {
420  // copy-paste from CscCoolStrSvc
421 
422  onlineId = 0;
423  //Phi,wireLayer,and strip all are offset by one between the two schemes.
424  //Also, station name is 50 or 51 in Identifiers, but only 0 or 1 in
425  //the online id.
426  int stationName ((idHelper->stationName(id) -50)&0x1 ); // 0001 0000 0000 0000 0000
427  int phi = (idHelper->stationPhi(id) - 1)&0x7 ; // 0000 1110 0000 0000 0000
428  int eta = ((idHelper->stationEta(id) == 1) ? 1:0) &0x1; // 0000 0001 0000 0000 0000
429  int chamLay = 1; // 0000 0000 1000 0000 0000
430  int wireLay = 0; // 0000 0000 0110 0000 0000
431  int measuresPhi = 0; // 0000 0000 0001 0000 0000
432  int strip = 0; // 0000 0000 0000 1111 1111
433 
434  onlineId += (stationName << 16); // 0001 0000 0000 0000 0000
435  onlineId += (phi << 13) ; // 0000 1110 0000 0000 0000
436  onlineId += (eta <<12); // 0000 0001 0000 0000 0000
437  onlineId += (chamLay <<11); // 0000 0000 1000 0000 0000
438  onlineId += (wireLay << 9); // 0000 0000 0110 0000 0000
439  onlineId += (measuresPhi << 8); // 0000 0000 0001 0000 0000
440  onlineId += strip ; // 0000 0000 0000 1111 1111
441  return StatusCode::SUCCESS;
442 }
443 
444 
445 // offlineToOnlineId
446 StatusCode
447 CscCondDbData::offlineToOnlineId(const CscIdHelper* idHelper, const Identifier & id, unsigned int &onlineId) const {
448  // copy-paste from CscCoolStrSvc
449 
450  onlineId = 0;
451  //Phi,wireLayer,and strip all are offset by one between the two schemes.
452  //Also, station name is 50 or 51 in Identifiers, but only 0 or 1 in
453  //the online id.
454  int stationName ((idHelper->stationName(id) -50)&0x1 ); // 0001 0000 0000 0000 0000
455  int phi = (idHelper->stationPhi(id) - 1)&0x7 ; // 0000 1110 0000 0000 0000
456  int eta = ((idHelper->stationEta(id) == 1) ? 1:0) &0x1; // 0000 0001 0000 0000 0000
457  int chamLay = (idHelper->chamberLayer(id)-1) &0x1; // 0000 0000 1000 0000 0000
458  int wireLay = (idHelper->wireLayer(id)-1) &0x3; // 0000 0000 0110 0000 0000
459  int measuresPhi = (idHelper->measuresPhi(id) &0x1); // 0000 0000 0001 0000 0000
460  int strip; // 0000 0000 0000 1111 1111
461 
462  //Online and offline phi ids are flipped on A wheel
463  if(m_onlineOfflinePhiFlip && measuresPhi && eta == 1){
464  strip = (48 - (idHelper->strip(id))) & 0xff;
465  }
466  else {
467  strip = (idHelper->strip(id)-1) & 0xff;
468  }
469 
470 
471  onlineId += (stationName << 16); // 0001 0000 0000 0000 0000
472  onlineId += (phi << 13) ; // 0000 1110 0000 0000 0000
473  onlineId += (eta <<12); // 0000 0001 0000 0000 0000
474  onlineId += (chamLay <<11); // 0000 0000 1000 0000 0000
475  onlineId += (wireLay << 9); // 0000 0000 0110 0000 0000
476  onlineId += (measuresPhi << 8); // 0000 0000 0001 0000 0000
477  onlineId += strip ; // 0000 0000 0000 1111 1111
478  return StatusCode::SUCCESS;
479 }
480 
481 // onlineToOfflineIds
482 StatusCode
483 CscCondDbData::onlineToOfflineIds(const CscIdHelper* idHelper, const unsigned int & onlineId, Identifier &elementId, Identifier &channelId) const {
484  // copy-paste from CscCoolStrSvc
485 
486  int stationName = ((onlineId >> 16)&0x1) + 50;
487  int phi = ((onlineId >> 13)&0x7)+1;
488  int eta = ((((onlineId >> 12)&0x1) == 1) ? 1:-1);
489  int chamLay = ((onlineId>>11)&0x1) +1;
490  int wireLay = ((onlineId>>9)&0x3) +1;
491  int measuresPhi = ((onlineId >> 8)&0x1);
492  int strip;
493 
494  //Online and offline phi ids are flipped on A wheel
495  if(m_onlineOfflinePhiFlip && measuresPhi && eta == 1){
496  strip = 48 - ((onlineId)&0xff) ; //equivalent: 49 -( onlineId&0xff +1)
497  }
498  else {
499  strip = ((onlineId)&0xff) +1;
500  }
501 
502  elementId = idHelper->elementID(stationName,eta,phi);
503 
504  // The following call of channelID with check=true ensures that the identifier is checked to be physically valid.
505  // This is currently required to be checked when running with layouts which do not contain all CSCs anymore, since the
506  // CSCCool database contains still all CSCs. A clean fix would be to have a dedicated database for every layout.
507  bool isValid = true;
508  channelId = idHelper->channelID(stationName,eta,phi,chamLay,wireLay,measuresPhi,strip,isValid);
509  static std::atomic<bool> conversionFailPrinted = false;
510  if (!isValid) {
511  if (!conversionFailPrinted) {
512  MsgStream log(Athena::getMessageSvc(),"CscCondDbData");
513  log << MSG::WARNING << "Failed to retrieve offline Identifier from online Identifier " << onlineId
514  << " (station " << stationName << ", eta=" << eta << ", phi=" << phi << "). "
515  << "This is likely due to the fact that the CSCCool database contains "
516  << "more entries than the detector layout." << endmsg;
517  conversionFailPrinted = true;
518  }
519  return StatusCode::FAILURE;
520  }
521 
522  return StatusCode::SUCCESS;
523 }
524 
525 
526 
CscIdHelper.h
CscCondDbData::readChannelRMS
StatusCode readChannelRMS(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:276
CscCondDbData::getChannelPSlope
const float & getChannelPSlope(IdentifierHash) const
Definition: CscCondDbData.cxx:214
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
Muon::nsw::STGTPSegments::moduleIDBits::stationPhi
constexpr uint8_t stationPhi
station Phi 1 to 8
Definition: NSWSTGTPDecodeBitmaps.h:161
CscCondDbData::getChannelF001
const float & getChannelF001(IdentifierHash) const
Definition: CscCondDbData.cxx:193
SiliconTech::strip
@ strip
CscCondDbData::m_nillfloat
const float m_nillfloat
Definition: CscCondDbData.h:121
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
CscCondDbData::m_cachedChannelsNoise
std::map< unsigned int, float > m_cachedChannelsNoise
Definition: CscCondDbData.h:108
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
CscCondDbData::readChannelPed
StatusCode readChannelPed(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:262
MuonIdHelper::get_id
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
Definition: MuonIdHelper.cxx:70
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
CscCondDbData::setDeadChannelHash
void setDeadChannelHash(IdentifierHash)
Definition: CscCondDbData.cxx:115
CscCondDbData::readChannelT0Phase
StatusCode readChannelT0Phase(IdentifierHash, bool &) const
Definition: CscCondDbData.cxx:297
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
CscCondDbData::getDeadLayersId
const std::vector< Identifier > & getDeadLayersId() const
Definition: CscCondDbData.cxx:160
dumpTgcDigiDeadChambers.stationName
dictionary stationName
Definition: dumpTgcDigiDeadChambers.py:30
CscCondDbData::getDeadChannelsHash
const std::vector< unsigned int > & getDeadChannelsHash() const
Definition: CscCondDbData.cxx:176
MuonIdHelper::channel_context
IdContext channel_context() const
id for channel
Definition: MuonIdHelper.cxx:741
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
index
Definition: index.py:1
CscCondDbData::setChannelNoise
void setChannelNoise(IdentifierHash, float)
Definition: CscCondDbData.cxx:68
CscCondDbData::m_onlineOfflinePhiFlip
bool m_onlineOfflinePhiFlip
Definition: CscCondDbData.h:91
CscCondDbData::m_cachedDeadLayers
std::vector< std::string > m_cachedDeadLayers
Definition: CscCondDbData.h:99
CscCondDbData::getChannelStatus
const int & getChannelStatus(IdentifierHash) const
Definition: CscCondDbData.cxx:228
CscCondDbData.h
CscCondDbData::setChannelPSlope
void setChannelPSlope(IdentifierHash, float)
Definition: CscCondDbData.cxx:80
CscCondDbData::m_cachedChannelsPed
std::map< unsigned int, float > m_cachedChannelsPed
Definition: CscCondDbData.h:109
CscCondDbData::m_cachedDeadStationsId
std::vector< Identifier > m_cachedDeadStationsId
Definition: CscCondDbData.h:103
MuonIdHelper::stationName
int stationName(const Identifier &id) const
Definition: MuonIdHelper.cxx:800
CscCondDbData::m_moduleContext
IdContext m_moduleContext
Definition: CscCondDbData.h:94
isValid
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition: AtlasPID.h:620
CscCondDbData::offlineToOnlineId
StatusCode offlineToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
Definition: CscCondDbData.cxx:447
CscCondDbData::m_cachedChannelsPSlope
std::map< unsigned int, float > m_cachedChannelsPSlope
Definition: CscCondDbData.h:110
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
CscCondDbData::indexToStringId
StatusCode indexToStringId(const CscIdHelper *, const unsigned int &, const std::string &, std::string &) const
Definition: CscCondDbData.cxx:347
CscCondDbData::m_cachedDeadLayersId
std::vector< Identifier > m_cachedDeadLayersId
Definition: CscCondDbData.h:102
CscCondDbData::getDeadStations
const std::vector< std::string > & getDeadStations() const
Definition: CscCondDbData.cxx:151
CscCondDbData::readChannelT0Base
StatusCode readChannelT0Base(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:290
CscCondDbData::m_emptyNames
std::vector< std::string > m_emptyNames
Definition: CscCondDbData.h:116
CscIdHelper::wireLayer
int wireLayer(const Identifier &id) const
Definition: CscIdHelper.cxx:772
CscCondDbData::offlineElementToOnlineId
StatusCode offlineElementToOnlineId(const CscIdHelper *, const Identifier &, unsigned int &) const
Definition: CscCondDbData.cxx:419
CscCondDbData::m_emptyIds
std::vector< Identifier > m_emptyIds
Definition: CscCondDbData.h:117
CscCondDbData::setChannelRMS
void setChannelRMS(IdentifierHash, float)
Definition: CscCondDbData.cxx:86
CscCondDbData::getChannelRMS
const float & getChannelRMS(IdentifierHash) const
Definition: CscCondDbData.cxx:221
CscCondDbData::m_onlineChannelIdsFromLayerHash
std::vector< unsigned int > m_onlineChannelIdsFromLayerHash
Definition: CscCondDbData.h:96
CscCondDbData::readChannelPSlope
StatusCode readChannelPSlope(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:269
CscCondDbData::readChannelStatus
StatusCode readChannelStatus(IdentifierHash, int &) const
Definition: CscCondDbData.cxx:283
CscCondDbData::setChannelPed
void setChannelPed(IdentifierHash, float)
Definition: CscCondDbData.cxx:74
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CscCondDbData::m_nillbool
const bool m_nillbool
Definition: CscCondDbData.h:120
CscCondDbData::setChannelT0Phase
void setChannelT0Phase(IdentifierHash, bool)
Definition: CscCondDbData.cxx:105
CscCondDbData::setChannelStatus
void setChannelStatus(IdentifierHash, int)
Definition: CscCondDbData.cxx:92
CscCondDbData::m_cachedDeadChannelsHash
std::vector< unsigned int > m_cachedDeadChannelsHash
Definition: CscCondDbData.h:105
CscCondDbData::readChannelNoise
StatusCode readChannelNoise(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:255
CscCondDbData::readChannelF001
StatusCode readChannelF001(IdentifierHash, float &) const
Definition: CscCondDbData.cxx:248
CscCondDbData::setDeadStation
void setDeadStation(std::string_view, Identifier)
Definition: CscCondDbData.cxx:130
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
CscCondDbData::setDeadLayer
void setDeadLayer(std::string_view, Identifier)
Definition: CscCondDbData.cxx:122
CscCondDbData::getDeadStationsId
const std::vector< Identifier > & getDeadStationsId() const
Definition: CscCondDbData.cxx:167
MuonIdHelper::stationPhi
int stationPhi(const Identifier &id) const
Definition: MuonIdHelper.cxx:810
CscCondDbData::getChannelNoise
const float & getChannelNoise(IdentifierHash) const
Definition: CscCondDbData.cxx:200
CscCondDbData::m_cachedChannelsF001
std::map< unsigned int, float > m_cachedChannelsF001
Definition: CscCondDbData.h:107
CscIdHelper::channelID
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
Definition: CscIdHelper.cxx:706
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CscCondDbData::m_cachedDeadStations
std::vector< std::string > m_cachedDeadStations
Definition: CscCondDbData.h:100
CscCondDbData::getDeadLayers
const std::vector< std::string > & getDeadLayers() const
Definition: CscCondDbData.cxx:144
MuonIdHelper::stationEta
int stationEta(const Identifier &id) const
Definition: MuonIdHelper.cxx:805
CscCondDbData::m_nillint
const int m_nillint
Definition: CscCondDbData.h:122
CscCondDbData::setChannelF001
void setChannelF001(IdentifierHash, float)
Definition: CscCondDbData.cxx:62
CscCondDbData::m_cachedChannelsT0Base
std::map< unsigned int, float > m_cachedChannelsT0Base
Definition: CscCondDbData.h:113
CscCondDbData::m_emptyHashs
std::vector< unsigned int > m_emptyHashs
Definition: CscCondDbData.h:118
CscCondDbData::isGood
bool isGood(const Identifier &) const
Definition: CscCondDbData.cxx:309
CscIdHelper::elementID
Identifier elementID(int stationName, int stationEta, int stationPhi) const
Definition: CscIdHelper.cxx:678
Example_ReadSampleNoise.ped
ped
Definition: Example_ReadSampleNoise.py:45
CscCondDbData::m_channelContext
IdContext m_channelContext
Definition: CscCondDbData.h:93
CscCondDbData::onlineToOfflineIds
StatusCode onlineToOfflineIds(const CscIdHelper *, const unsigned int &, Identifier &, Identifier &) const
Definition: CscCondDbData.cxx:483
CscCondDbData::getChannelPed
const float & getChannelPed(IdentifierHash) const
Definition: CscCondDbData.cxx:207
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
CscCondDbData::hasChannelT0Phase
bool hasChannelT0Phase(IdentifierHash) const
Definition: CscCondDbData.cxx:186
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
CscIdHelper
Definition: CscIdHelper.h:52
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
CscIdHelper::strip
int strip(const Identifier &id) const
Definition: CscIdHelper.cxx:776
CscCondDbData::m_cachedChannelsStatus
std::map< unsigned int, int > m_cachedChannelsStatus
Definition: CscCondDbData.h:112
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonIdHelper::module_context
IdContext module_context() const
id for module
Definition: MuonIdHelper.cxx:731
beamspotnt.rms
rms
Definition: bin/beamspotnt.py:1266
CscCondDbData::isGoodStation
bool isGoodStation(const Identifier &) const
Definition: CscCondDbData.cxx:334
CscCondDbData::m_cachedChannelsT0Phase
std::map< unsigned int, bool > m_cachedChannelsT0Phase
Definition: CscCondDbData.h:114
merge.status
status
Definition: merge.py:17
CscIdHelper::measuresPhi
bool measuresPhi(const Identifier &id) const override
Definition: CscIdHelper.cxx:774
CscCondDbData::setParameters
void setParameters(bool)
Definition: CscCondDbData.cxx:53
CscCondDbData::isGoodLayer
bool isGoodLayer(const Identifier &) const
Definition: CscCondDbData.cxx:326
Muon::nsw::STGTPSegments::moduleIDBits::stationEta
constexpr uint8_t stationEta
1 to 3
Definition: NSWSTGTPDecodeBitmaps.h:159
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CscCondDbData::setChannelT0Base
void setChannelT0Base(IdentifierHash, float)
Definition: CscCondDbData.cxx:99
CscCondDbData::m_cachedChannelsRMS
std::map< unsigned int, float > m_cachedChannelsRMS
Definition: CscCondDbData.h:111
WriteCellNoiseToCool.noise
noise
Definition: WriteCellNoiseToCool.py:380
CscIdHelper::chamberLayer
int chamberLayer(const Identifier &id) const
Definition: CscIdHelper.cxx:770
CscCondDbData::layerHashToOnlineId
StatusCode layerHashToOnlineId(const unsigned int &, unsigned int &) const
Definition: CscCondDbData.cxx:404
CscCondDbData::isGoodChannelHash
bool isGoodChannelHash(const IdentifierHash &) const
Definition: CscCondDbData.cxx:318
CscCondDbData::getChannelT0Base
const float & getChannelT0Base(IdentifierHash) const
Definition: CscCondDbData.cxx:235
CscCondDbData::getChannelT0Phase
const bool & getChannelT0Phase(IdentifierHash) const
Definition: CscCondDbData.cxx:242
CscCondDbData::loadParameters
void loadParameters(const CscIdHelper *)
Definition: CscCondDbData.cxx:14
Identifier
Definition: IdentifierFieldParser.cxx:14