ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SCT_ReadCalibDataCondAlg Class Reference

#include <SCT_ReadCalibDataCondAlg.h>

Inheritance diagram for SCT_ReadCalibDataCondAlg:
Collaboration diagram for SCT_ReadCalibDataCondAlg:

Public Member Functions

 SCT_ReadCalibDataCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~SCT_ReadCalibDataCondAlg ()=default
 
virtual StatusCode initialize () override final
 
virtual StatusCode execute (const EventContext &ctx) const override final
 
virtual StatusCode finalize () override final
 
virtual bool isReEntrant () const override final
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

enum  Feature { GAIN =0, NOISE =1, NFEATURES =2 }
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadCondHandleKey< CondAttrListCollectionm_readKeyGain {this, "ReadKeyGain", "/SCT/DAQ/Calibration/NPtGainDefects", "Key of input (raw) gain defect conditions folder"}
 
SG::ReadCondHandleKey< CondAttrListCollectionm_readKeyNoise {this, "ReadKeyNoise", "/SCT/DAQ/Calibration/NoiseOccupancyDefects", "Key of input (raw) noise defect conditions folder"}
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
 
SG::WriteCondHandleKey< SCT_CalibDefectDatam_writeKeyGain {this, "WriteKeyGain", "SCT_CalibDefectNPtGain", "Key of output (derived) gain defect conditions data"}
 
SG::WriteCondHandleKey< SCT_CalibDefectDatam_writeKeyNoise {this, "WriteKeyNoise", "SCT_CalibDefectNPtNoise", "Key of output (derived) noise defect conditions data"}
 
SG::WriteCondHandleKey< SCT_AllGoodStripInfom_writeKeyInfo {this, "WriteKeyInfo", "SCT_AllGoodStripInfo", "Key of output (derived) good strip information conditions data"}
 
std::map< int, std::string > m_defectMapIntToString {}
 
StringArrayProperty m_ignoreDefects {this, "IgnoreDefects", {}, "Defects to ignore"}
 
FloatArrayProperty m_ignoreDefectParameters {this, "IgnoreDefectsParameters", {}, "Limit on defect to ignore parameters"}
 
const SCT_IDm_id_sct {nullptr}
 Handle to SCT ID helper. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 28 of file SCT_ReadCalibDataCondAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ Feature

Enumerator
GAIN 
NOISE 
NFEATURES 

Definition at line 39 of file SCT_ReadCalibDataCondAlg.h.

39 {GAIN=0, NOISE=1, NFEATURES=2};

Constructor & Destructor Documentation

◆ SCT_ReadCalibDataCondAlg()

SCT_ReadCalibDataCondAlg::SCT_ReadCalibDataCondAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 29 of file SCT_ReadCalibDataCondAlg.cxx.

30  : ::AthReentrantAlgorithm(name, pSvcLocator)
31 {
32  m_ignoreDefects.value().push_back("NOISE_SLOPE");
33  m_ignoreDefectParameters.value().push_back(-1000.);
34 
35  m_ignoreDefects.value().push_back("OFFSET_SLOPE");
36  m_ignoreDefectParameters.value().push_back(-1000.);
37 
38  m_ignoreDefects.value().push_back("GAIN_SLOPE");
39  m_ignoreDefectParameters.value().push_back(-1000.);
40 
41  m_ignoreDefects.value().push_back("BAD_OPE");
42  m_ignoreDefectParameters.value().push_back(-1000.);
43 
44  m_ignoreDefects.value().push_back("NO_HI");
45  m_ignoreDefectParameters.value().push_back(1.);
46  // 1. means 100%. Only NO_HI defects with >100% are considered, i.e., all NO_HI defects are ignored.
47 
48  m_ignoreDefects.value().push_back("LO_GAIN");
49  m_ignoreDefectParameters.value().push_back(-1000.);
50 
51  m_ignoreDefects.value().push_back("HI_GAIN");
52  m_ignoreDefectParameters.value().push_back(-1000.);
53 }

◆ ~SCT_ReadCalibDataCondAlg()

virtual SCT_ReadCalibDataCondAlg::~SCT_ReadCalibDataCondAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode SCT_ReadCalibDataCondAlg::execute ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 111 of file SCT_ReadCalibDataCondAlg.cxx.

111  {
112  ATH_MSG_DEBUG("execute " << name());
113 
114  // Write Cond Handle
115  bool validWriteCondHandle{true};
116  // Do we have a valid Write Cond Handle for current time?
118  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
119  if (writeHandleData[i].isValid()) {
120  ATH_MSG_DEBUG("CondHandle " << writeHandleData[i].fullKey() << " is already valid."
121  << ". In theory this should not be called, but may happen"
122  << " if multiple concurrent events are being processed out of order.");
123  } else {
124  validWriteCondHandle = false;
125  }
126  }
128  if (writeHandleInfo.isValid()) {
129  ATH_MSG_DEBUG("CondHandle " << writeHandleInfo.fullKey() << " is already valid."
130  << ". In theory this should not be called, but may happen"
131  << " if multiple concurrent events are being processed out of order.");
132  } else {
133  validWriteCondHandle = false;
134  }
135  if (validWriteCondHandle) return StatusCode::SUCCESS;
136 
137  // Read Cond Handle
139  const CondAttrListCollection* readCdo[NFEATURES]{*readHandle[GAIN], *readHandle[NOISE]};
140  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
141  if (readCdo[i]==nullptr) {
142  ATH_MSG_FATAL("Null pointer to the read conditions object " << readHandle[i].key());
143  return StatusCode::FAILURE;
144  }
145  // Add dependency
146  writeHandleData[i].addDependency(readHandle[i]);
147  writeHandleInfo.addDependency(readHandle[i]);
148  ATH_MSG_INFO("Size of CondAttrListCollection " << readHandle[i].fullKey() << " readCdo->size()= " << readCdo[i]->size());
149  ATH_MSG_INFO("Range of input is " << readHandle[i].getRange());
150  }
151 
152  // Get SCT_DetectorElementCollection
154  const InDetDD::SiDetectorElementCollection* elements{sctDetEle.retrieve()};
155  if (elements==nullptr) {
156  ATH_MSG_FATAL(m_SCTDetEleCollKey.fullKey() << " could not be retrieved");
157  return StatusCode::FAILURE;
158  }
159  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
160  writeHandleData[i].addDependency(sctDetEle);
161  }
162  writeHandleInfo.addDependency(sctDetEle);
163 
164  // Construct the output Cond Object and fill it in
165  std::unique_ptr<SCT_CalibDefectData> writeCdoData[NFEATURES]{nullptr, nullptr};
166  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
167  writeCdoData[i] = std::make_unique<SCT_CalibDefectData>();
168  }
169  std::unique_ptr<SCT_AllGoodStripInfo> writeCdoInfo{std::make_unique<SCT_AllGoodStripInfo>()};
170  // Initialize arrays and all strips to True
171  for (int w{0}; w!=NUMBER_OF_WAFERS; ++w) {
172  for (int s{0}; s!=STRIPS_PER_WAFER; ++s) {
173  (*writeCdoInfo)[w][s]=true;
174  }
175  }
176 
177 
178  // Create pointer to CalibDataDefect object
180 
181  // loop over collection
182  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
183  CondAttrListCollection::const_iterator itLoop{readCdo[i]->begin()};
184  CondAttrListCollection::const_iterator itLoop_end{readCdo[i]->end()};
185  for (; itLoop!=itLoop_end; ++itLoop) {
186  CondAttrListCollection::ChanNum chanNum{(*itLoop).first};
187  const coral::AttributeList &anAttrList{(*itLoop).second};
188 
189  // Convert chanNum=offlineID into identifier
190  Identifier moduleId{chanNum};
191  IdentifierHash hashId0{m_id_sct->wafer_hash(moduleId)};
192  IdentifierHash hashId1;
193  m_id_sct->get_other_side(hashId0, hashId1);
194 
195  // Check for PhiSwap readout
196  const InDetDD::SiDetectorElement* p_element{elements->getDetectorElement(hashId0)};
197  bool phiSwap0Present{p_element->swapPhiReadoutDirection()};
198  p_element = (elements->getDetectorElement(hashId1));
199  bool phiSwap1Present{p_element->swapPhiReadoutDirection()};
200 
201  // Clear theseDefects
202  theseDefects.begDefects.clear();
203  theseDefects.endDefects.clear();
204  theseDefects.typeOfDefect.clear();
205  theseDefects.parValue.clear();
206 
207  // Get all defect parameters from COOL attrib list
208  const std::string &gaindefectb{(anAttrList["defectBeginChannel"]).data<std::string>()};
209  const std::string &gaindefecte{(anAttrList["defectEndChannel"]).data<std::string>()};
210  const std::string &defectType{(anAttrList["defectType"]).data<std::string>()};
211  const std::string &parValue{(anAttrList["defectParameter"]).data<std::string>()};
212 
213  // Convert the defect strings to vectors
214  std::vector<unsigned int> gaindefectbvec;
215  fillEmptyVectorFromString(gaindefectb, gaindefectbvec);
216  std::vector<unsigned int> gaindefectevec;
217  fillEmptyVectorFromString(gaindefecte, gaindefectevec);
218  std::vector<unsigned int> defectTypevec;
219  fillEmptyVectorFromString(defectType, defectTypevec);
220  std::vector<double> parValuevec;
221  fillEmptyVectorFromString(parValue, parValuevec);
222 
223  // Fill the Calib defect objects
224  long unsigned int gainvec_size{gaindefectbvec.size()};
225  for (long unsigned int i{0}; i<gainvec_size; ++i) {
226  // Check existence of the defect index to avoid failure when a new defect is added in SCT DAQ.
227  if (m_defectMapIntToString.find(defectTypevec[i]) == m_defectMapIntToString.end()) {
228  ATH_MSG_DEBUG("Defect type " << defectTypevec[i] << " is not defined! This defect is ignored.");
229  } else {
230  theseDefects.typeOfDefect.push_back(m_defectMapIntToString.at(defectTypevec[i]));
231  theseDefects.begDefects.push_back(gaindefectbvec[i]);
232  theseDefects.endDefects.push_back(gaindefectevec[i]);
233  theseDefects.parValue.push_back(coerceToFloatRange(parValuevec[i]));
234  }
235  }
236  // Fill the isGoodWaferArray
237  if (not theseDefects.begDefects.empty()) {
238  for (unsigned int i{0}; i<theseDefects.begDefects.size(); ++i) { // loop over all defects
239  // Check for defects and their limits not to take into account in isGood
240  bool ignoreDefect{false};
241  unsigned int ig{0};
242  while (ig<m_ignoreDefects.value().size()) { //loop until found defect or end of ignoredefects
243  if (m_ignoreDefects.value()[ig] == theseDefects.typeOfDefect[i]) {
244  if ( m_ignoreDefectParameters.value()[ig]<-999. ) ignoreDefect = true; //no check on parameter value, defect ignored
245  else if (theseDefects.typeOfDefect[i]=="NO_HI" and m_ignoreDefectParameters.value()[ig]>theseDefects.parValue[i]) ignoreDefect = true; //noise below threshold, > 0.0005 (in DB, so default values printed here)
246  else if (theseDefects.typeOfDefect[i]=="NOISY" and m_ignoreDefectParameters.value()[ig]>theseDefects.parValue[i]) ignoreDefect = true; //noise below threshold, > 1.15* av chip average
247  else if (theseDefects.typeOfDefect[i]=="V_NOISY" and m_ignoreDefectParameters.value()[ig]>theseDefects.parValue[i]) ignoreDefect = true; //noise below threshold, > 1.25* av chip average
248  else if (theseDefects.typeOfDefect[i]=="VLO_GAIN" and m_ignoreDefectParameters.value()[ig]<theseDefects.parValue[i]) ignoreDefect = true; // gain to low, < 0.3 * chip average
249  else if (theseDefects.typeOfDefect[i]=="LO_GAIN" and m_ignoreDefectParameters.value()[ig]<theseDefects.parValue[i]) ignoreDefect = true; // gain to low < 0.75 * chip average
250  else if (theseDefects.typeOfDefect[i]=="HI_GAIN" and m_ignoreDefectParameters.value()[ig]>theseDefects.parValue[i]) ignoreDefect = true; // gain to high > 1.25 * chip average
251  else if (theseDefects.typeOfDefect[i]=="LO_OFFSET" and m_ignoreDefectParameters.value()[ig]>theseDefects.parValue[i]) ignoreDefect = true; // offset to low < -100
252  else if (theseDefects.typeOfDefect[i]=="HI_OFFSET" and m_ignoreDefectParameters.value()[ig]<theseDefects.parValue[i]) ignoreDefect = true; // offset to high > 200
253  }
254  ig++;
255  }
256  if (not ignoreDefect) {
257  //set the isGoodBool value for all strips for this defect
258  for (unsigned int strip = theseDefects.begDefects[i]; strip <= theseDefects.endDefects[i]; ++strip) {
259  // Check for phiSwap and which wafer side before filling isGood vector
260  if (strip < STRIPS_PER_WAFER) { //side 0 0->767
261  const unsigned int waferId0{hashId0};
262  SCT_WaferGoodStripInfo& thisWaferIsGoodData0{(*writeCdoInfo)[waferId0]};
263  const unsigned int side0StripNumber{phiSwap0Present ? ( STRIPS_PER_WAFER-1-strip) : strip};
264  thisWaferIsGoodData0[side0StripNumber] = false;
265  } else { // side 1 768->1535 => 0->767
266  const unsigned int waferId1{hashId1};
267  SCT_WaferGoodStripInfo& thisWaferIsGoodData1{(*writeCdoInfo)[waferId1]};
268  const unsigned int side1StripNumber{phiSwap1Present ? (2*STRIPS_PER_WAFER-1-strip) : (strip-STRIPS_PER_WAFER)};
269  thisWaferIsGoodData1[side1StripNumber] = false;
270  }
271  }
272  }
273  }
274  }
275 
276  // Fill the CalibDefectData maps with the Calib defect objects
277  if (i==GAIN) {
278  if (theseDefects.begDefects.empty()) {
279  ATH_MSG_DEBUG("No NPtGain defects for module " << moduleId);
280  continue;
281  }
282  if (not (writeCdoData[i]->addModule(moduleId, theseDefects))) {
283  ATH_MSG_ERROR("Unable to add module " << moduleId << " to NPtGain defect map");
284  return StatusCode::RECOVERABLE;
285  } else {
286  ATH_MSG_DEBUG("Defects for module " << moduleId << " added to NPG defect map");
287  }
288  } else if (i==NOISE) {
289  if (theseDefects.begDefects.empty()) {
290  ATH_MSG_DEBUG("No NoiseOccupancy defects for module " << moduleId);
291  continue;
292  }
293  if (not (writeCdoData[i]->addModule(moduleId, theseDefects))) {
294  ATH_MSG_ERROR("Unable to add module " << moduleId << " to NoiseOccupancy defect map");
295  return StatusCode::RECOVERABLE;
296  } else {
297  ATH_MSG_DEBUG("Defects for module " << moduleId << " added to NoiseOccupancy defect map");
298  }
299  }
300  }
301  }
302 
303  // Record the output cond objects
304  ATH_MSG_DEBUG("There are " << writeCdoInfo->size() << " elements in " << writeHandleInfo.key());
305  if (writeHandleInfo.record(std::move(writeCdoInfo)).isFailure()) {
306  ATH_MSG_FATAL("Could not record SCT_AllGoodStripInfo " << writeHandleInfo.key()
307  << " with EventRange " << writeHandleInfo.getRange() << " into Conditions Store");
308  return StatusCode::FAILURE;
309  }
310  ATH_MSG_INFO("recorded new CDO " << writeHandleInfo.key() << " with range " << writeHandleInfo.getRange() << " into Conditions Store");
311  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
312  ATH_MSG_DEBUG("There are " << writeCdoData[i]->size() << " elements in " << writeHandleData[i].key());
313  if (writeHandleData[i].record(std::move(writeCdoData[i])).isFailure()) {
314  ATH_MSG_FATAL("Could not record SCT_CalibDefectData " << writeHandleData[i].key()
315  << " with EventRange " << writeHandleData[i].getRange() << " into Conditions Store");
316  return StatusCode::FAILURE;
317  }
318  ATH_MSG_INFO("recorded new CDO " << writeHandleData[i].key() << " with range " << writeHandleData[i].getRange() << " into Conditions Store");
319  }
320 
321  return StatusCode::SUCCESS;
322 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode SCT_ReadCalibDataCondAlg::finalize ( )
finaloverridevirtual

Definition at line 324 of file SCT_ReadCalibDataCondAlg.cxx.

324  {
325  ATH_MSG_DEBUG("finalize " << name());
326  return StatusCode::SUCCESS;
327 }

◆ initialize()

StatusCode SCT_ReadCalibDataCondAlg::initialize ( )
finaloverridevirtual

Definition at line 55 of file SCT_ReadCalibDataCondAlg.cxx.

55  {
56  ATH_MSG_DEBUG("initialize " << name());
57 
58  // Get SCT helper
59  ATH_CHECK(detStore()->retrieve(m_id_sct, "SCT_ID"));
60 
61  // Read Cond Handle
65 
66  // Write Cond Handles
67  for (unsigned int i{GAIN}; i<NFEATURES; i++) {
68  SG::WriteCondHandleKey<SCT_CalibDefectData>* writeKeyData{nullptr};
69  if ( i==GAIN) writeKeyData = &m_writeKeyGain;
70  else if (i==NOISE) writeKeyData = &m_writeKeyNoise;
71  if (writeKeyData==nullptr) continue;
72  ATH_CHECK(writeKeyData->initialize());
73  }
75 
76  // Fit Defects
77  m_defectMapIntToString[0] = "UNKNOWN"; //<! Defect type not in this map, add!
78  m_defectMapIntToString[1] = "DEAD"; //<! Output always < 1%
79  m_defectMapIntToString[2] = "STUCKON"; //<! Output always > 98%
80  m_defectMapIntToString[3] = "UNDER"; //<! Occupancy never reaches max, always less than 95%
81  m_defectMapIntToString[4] = "OVER"; //<! Occcupancy greater than 100%
82  m_defectMapIntToString[5] = "BADFIT"; //<! The fit was not good for some reason - parameter is a chi2 cut
83  // NPt Gain Defects
84  m_defectMapIntToString[32] = "VLO_GAIN"; //<! Gain < 0.3 * chip average
85  m_defectMapIntToString[9] = "LO_GAIN"; //<! Gain < 0.75 * chip average
86  m_defectMapIntToString[10] = "HI_GAIN"; //<! Gain > 1.25 * chip average
87  m_defectMapIntToString[11] = "LO_OFFSET"; //<! Offset < -100
88  m_defectMapIntToString[12] = "HI_OFFSET"; //<! Offset > 200
89  m_defectMapIntToString[13] = "UNBONDED"; //<! Noise <= 750
90  m_defectMapIntToString[14] = "PARTBONDED"; //<! Noise <= 1100
91  m_defectMapIntToString[15] = "NOISY"; //<! Noise > 1.15* av chip noise
92  m_defectMapIntToString[33] = "V_NOISY"; //<! Noise > 1.25* av chip noise
93  m_defectMapIntToString[34] = "NOISE_SLOPE"; //<! Slope in noise across module, slope/chan > 1.
94  m_defectMapIntToString[35] = "OFFSET_SLOPE"; //<! Slope in offset across module, slope/chan > 0.07
95  m_defectMapIntToString[36] = "GAIN_SLOPE"; //<! Slope in gain across module, slope/chan > 0.04
96  // Noise Occupancy Defects
97  m_defectMapIntToString[19] = "NO_HI"; //<! High noise occupancy, 0.0005
98  m_defectMapIntToString[37] = "BAD_OPE"; //<! Bad occupancy per event variance/binomial variance > 2.0)
99  m_defectMapIntToString[38] = "DOUBTR_HI"; //<! High double trigger noise occupancy, > 5
100  m_defectMapIntToString[41] = "LO_GAIN_ABSOLUTE"; // <! Gain < 15 mV/fC, newly added for Run 3
101 
102  //Check ignoreDefects vectors are the same size
103  if (m_ignoreDefects.value().size() != m_ignoreDefectParameters.value().size()) {
104  ATH_MSG_FATAL("IgnoreDefect != IgnoreDefectsParameters, check job options!");
105  return StatusCode::FAILURE;
106  }
107 
108  return StatusCode::SUCCESS;
109 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ isReEntrant()

virtual bool SCT_ReadCalibDataCondAlg::isReEntrant ( ) const
inlinefinaloverridevirtual

Definition at line 36 of file SCT_ReadCalibDataCondAlg.h.

36 { return false; }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_defectMapIntToString

std::map<int, std::string> SCT_ReadCalibDataCondAlg::m_defectMapIntToString {}
private

Definition at line 49 of file SCT_ReadCalibDataCondAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_id_sct

const SCT_ID* SCT_ReadCalibDataCondAlg::m_id_sct {nullptr}
private

Handle to SCT ID helper.

Definition at line 54 of file SCT_ReadCalibDataCondAlg.h.

◆ m_ignoreDefectParameters

FloatArrayProperty SCT_ReadCalibDataCondAlg::m_ignoreDefectParameters {this, "IgnoreDefectsParameters", {}, "Limit on defect to ignore parameters"}
private

Definition at line 52 of file SCT_ReadCalibDataCondAlg.h.

◆ m_ignoreDefects

StringArrayProperty SCT_ReadCalibDataCondAlg::m_ignoreDefects {this, "IgnoreDefects", {}, "Defects to ignore"}
private

Definition at line 51 of file SCT_ReadCalibDataCondAlg.h.

◆ m_readKeyGain

SG::ReadCondHandleKey<CondAttrListCollection> SCT_ReadCalibDataCondAlg::m_readKeyGain {this, "ReadKeyGain", "/SCT/DAQ/Calibration/NPtGainDefects", "Key of input (raw) gain defect conditions folder"}
private

Definition at line 41 of file SCT_ReadCalibDataCondAlg.h.

◆ m_readKeyNoise

SG::ReadCondHandleKey<CondAttrListCollection> SCT_ReadCalibDataCondAlg::m_readKeyNoise {this, "ReadKeyNoise", "/SCT/DAQ/Calibration/NoiseOccupancyDefects", "Key of input (raw) noise defect conditions folder"}
private

Definition at line 42 of file SCT_ReadCalibDataCondAlg.h.

◆ m_SCTDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> SCT_ReadCalibDataCondAlg::m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
private

Definition at line 43 of file SCT_ReadCalibDataCondAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeKeyGain

SG::WriteCondHandleKey<SCT_CalibDefectData> SCT_ReadCalibDataCondAlg::m_writeKeyGain {this, "WriteKeyGain", "SCT_CalibDefectNPtGain", "Key of output (derived) gain defect conditions data"}
private

Definition at line 44 of file SCT_ReadCalibDataCondAlg.h.

◆ m_writeKeyInfo

SG::WriteCondHandleKey<SCT_AllGoodStripInfo> SCT_ReadCalibDataCondAlg::m_writeKeyInfo {this, "WriteKeyInfo", "SCT_AllGoodStripInfo", "Key of output (derived) good strip information conditions data"}
private

Definition at line 46 of file SCT_ReadCalibDataCondAlg.h.

◆ m_writeKeyNoise

SG::WriteCondHandleKey<SCT_CalibDefectData> SCT_ReadCalibDataCondAlg::m_writeKeyNoise {this, "WriteKeyNoise", "SCT_CalibDefectNPtNoise", "Key of output (derived) noise defect conditions data"}
private

Definition at line 45 of file SCT_ReadCalibDataCondAlg.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
SiliconTech::strip
@ strip
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SCT_ReadCalibDataCondAlg::m_writeKeyNoise
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyNoise
Definition: SCT_ReadCalibDataCondAlg.h:45
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthCommonDataStore::renounce
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
SCT_ConditionsData::STRIPS_PER_WAFER
@ STRIPS_PER_WAFER
Definition: SCT_ConditionsParameters.h:21
SCT_ReadCalibDataCondAlg::NFEATURES
@ NFEATURES
Definition: SCT_ReadCalibDataCondAlg.h:39
SCT_ReadCalibDataCondAlg::m_id_sct
const SCT_ID * m_id_sct
Handle to SCT ID helper.
Definition: SCT_ReadCalibDataCondAlg.h:54
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
isValid
bool isValid(const T &p)
Definition: AtlasPID.h:214
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
SCT_ReadCalibDataCondAlg::m_readKeyNoise
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyNoise
Definition: SCT_ReadCalibDataCondAlg.h:42
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
SCT_CalibDefectData::CalibModuleDefects::begDefects
std::vector< unsigned int > begDefects
Definition: SCT_CalibDefectData.h:33
generate::getRange
void getRange(TH1D *s, int imax, double frac, int &lowerbin, int &upperbin, double &lowerfrac, double &upperfrac)
Definition: rmsFrac.cxx:32
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
SCT_ReadCalibDataCondAlg::m_writeKeyInfo
SG::WriteCondHandleKey< SCT_AllGoodStripInfo > m_writeKeyInfo
Definition: SCT_ReadCalibDataCondAlg.h:46
SCT_ReadCalibDataCondAlg::NOISE
@ NOISE
Definition: SCT_ReadCalibDataCondAlg.h:39
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
SCT_ConditionsData::NUMBER_OF_WAFERS
@ NUMBER_OF_WAFERS
Definition: SCT_ConditionsParameters.h:19
lumiFormat.i
int i
Definition: lumiFormat.py:92
InDetDD::SiDetectorElement::swapPhiReadoutDirection
bool swapPhiReadoutDirection() const
Determine if readout direction between online and offline needs swapping.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
SCT_WaferGoodStripInfo
std::array< bool, SCT_ConditionsData::STRIPS_PER_WAFER > SCT_WaferGoodStripInfo
Class for data object used in SCT_ReadCalibDataCondAlg and SCT_AllGoodStripInfo.
Definition: SCT_WaferGoodStripInfo.h:27
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SCT_ReadCalibDataCondAlg::m_readKeyGain
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyGain
Definition: SCT_ReadCalibDataCondAlg.h:41
SCT_ID::wafer_hash
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
Definition: SCT_ID.h:492
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SCT_ID::get_other_side
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
Definition: SCT_ID.cxx:435
SCT_CalibDefectData::CalibModuleDefects::typeOfDefect
std::vector< std::string > typeOfDefect
Definition: SCT_CalibDefectData.h:35
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
SCT_ReadCalibDataCondAlg::m_writeKeyGain
SG::WriteCondHandleKey< SCT_CalibDefectData > m_writeKeyGain
Definition: SCT_ReadCalibDataCondAlg.h:44
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
SCT_CalibDefectData::CalibModuleDefects
Definition: SCT_CalibDefectData.h:32
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
SCT_ReadCalibDataCondAlg::m_ignoreDefects
StringArrayProperty m_ignoreDefects
Definition: SCT_ReadCalibDataCondAlg.h:51
SCT_CalibDefectData::CalibModuleDefects::parValue
std::vector< float > parValue
Definition: SCT_CalibDefectData.h:36
SCT_ReadCalibDataCondAlg::m_ignoreDefectParameters
FloatArrayProperty m_ignoreDefectParameters
Definition: SCT_ReadCalibDataCondAlg.h:52
SCT_ReadCalibDataCondAlg::m_defectMapIntToString
std::map< int, std::string > m_defectMapIntToString
Definition: SCT_ReadCalibDataCondAlg.h:49
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
SCT_ReadCalibDataCondAlg::GAIN
@ GAIN
Definition: SCT_ReadCalibDataCondAlg.h:39
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
SG::WriteCondHandleKey< SCT_CalibDefectData >
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
SCT_ReadCalibDataCondAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCT_ReadCalibDataCondAlg.h:43
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
SCT_CalibDefectData::CalibModuleDefects::endDefects
std::vector< unsigned int > endDefects
Definition: SCT_CalibDefectData.h:34
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37