Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SCTCalibWriteTool Class Reference

Tool to test writing conditions data and reading them back. More...

#include <SCTCalibWriteTool.h>

Inheritance diagram for SCTCalibWriteTool:
Collaboration diagram for SCTCalibWriteTool:

Public Member Functions

 SCTCalibWriteTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual StatusCode initialize () override
 
std::string addDefect (const std::string &defectlist, const int defectBeginChannel, const int defectEndChannel) const
 
std::string addNumber (const std::string &numStr, const unsigned long long number) const
 
std::string createDefectString (const int defectBeginChannel, const int defectEndChannel) const
 
StatusCode createCondObjects ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const std::string &defectType, const float threshold, const std::string &defectList) const
 
StatusCode createListStrip ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const std::string &defectType, const float threshold, const std::string &defectList) const
 
StatusCode createListChip ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const std::string &defectType, const float threshold, const std::string &defectList) const
 
StatusCode createListEff ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const float eff) const
 
StatusCode createListNO ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const float noise_occ) const
 
StatusCode createListRawOccu ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const float raw_occu) const
 
StatusCode createListBSErr ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const std::string &errorList, const std::string &probList) const
 
StatusCode createListLA ATLAS_NOT_THREAD_SAFE (const Identifier &wafer_id, const SCT_ID *m_sctId, const int samplesize, const int module, const float lorentz, const float err_lorentz, const float chisq, const float fitParam_a, const float err_a, const float fitParam_b, const float err_b, const float fitParam_sigma, const float err_sigma, const float MCW, const float err_MCW) const
 
StatusCode wrapUpNoisyChannel ()
 
StatusCode wrapUpDeadStrips ()
 
StatusCode wrapUpDeadChips ()
 
StatusCode wrapUpEfficiency ()
 
StatusCode wrapUpNoiseOccupancy ()
 
StatusCode wrapUpRawOccupancy ()
 
StatusCode wrapUpBSErrors ()
 
StatusCode wrapUpLorentzAngle ()
 
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 sysInitialize () override
 Perform system initialization for an algorithm. 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

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

int stringToInt (const std::string &s) const
 
StatusCode streamOutCondObjects (const std::string &foldername)
 
StatusCode streamOutCondObjectsWithErrMsg (const std::string &foldername)
 
StatusCode registerCondObjects (const std::string &foldername, const std::string &tagname) const
 
StatusCode recordAndStream (std::unique_ptr< CondAttrListCollection > pCollection, const std::string &foldername, bool &flag)
 
StatusCode registerCondObjectsWithErrMsg (const std::string &foldername, const std::string &tagname) const
 
coral::AttributeListSpecification * createBasicDbSpec (const bool capsFormat) const
 
void setBasicValues (coral::AttributeList &attrList, const Identifier &wafer_id, const int samplesize, const SCT_ID *m_sctId, const bool capsFormat) const
 
unsigned int computeIstrip4moncond (const Identifier &elementId) const
 
const CondAttrListCollectiongetAttrListCollectionByFolder (const std::string &) const
 
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

std::mutex m_mutex {}
 
std::map< const std::string, const CondAttrListCollection * > m_attrListCollectionMap ATLAS_THREAD_SAFE
 
std::unique_ptr< CondAttrListCollectionm_attrListColl
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_deadStrip
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_deadChip
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_eff
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_no
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_RawOccu
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_BSErr
 
std::unique_ptr< CondAttrListCollectionm_attrListColl_LA
 
BooleanProperty m_writeCondObjs {this, "WriteCondObjs", true}
 
BooleanProperty m_regIOV {this, "RegisterIOV", true}
 
BooleanProperty m_readWriteCool {this, "ReadWriteCool", true}
 
BooleanProperty m_twoStepWriteReg {this, "TwoStepWriteReg", false}
 
BooleanProperty m_manualiov {this, "ManualIOV", true}
 
IntegerProperty m_version {this, "Version", 0}
 
IntegerProperty m_beginRun {this, "BeginRun", IOVTime::MINRUN}
 
IntegerProperty m_endRun {this, "EndRun", IOVTime::MAXRUN}
 
StringProperty m_streamName {this, "StreamName", "SCTCalibStream"}
 
StringProperty m_tagID4NoisyStrips {this, "TagID4NoisyStrips", ""}
 
StringProperty m_tagID4DeadStrips {this, "TagID4DeadStrips", ""}
 
StringProperty m_tagID4DeadChips {this, "TagID4DeadChips", ""}
 
StringProperty m_tagID4Efficiency {this, "TagID4Efficiency", ""}
 
StringProperty m_tagID4NoiseOccupancy {this, "TagID4NoiseOccupancy", ""}
 
StringProperty m_tagID4RawOccupancy {this, "TagID4RawOccupancy", ""}
 
StringProperty m_tagID4BSErrors {this, "TagID4BSErrors", ""}
 
StringProperty m_tagID4LorentzAngle {this, "TagID4LorentzAngle", ""}
 
ServiceHandle< IIOVRegistrationSvcm_regSvc
 
ToolHandle< IAthenaOutputStreamToolm_streamer {nullptr}
 
ServiceHandle< IIOVDbSvcm_IOVDbSvc
 
bool m_defectRecorded {false}
 
bool m_deadStripRecorded {false}
 
bool m_deadChipRecorded {false}
 
bool m_effRecorded {false}
 
bool m_noRecorded {false}
 
bool m_RawOccuRecorded {false}
 
bool m_BSErrRecorded {false}
 
bool m_LARecorded {false}
 
const SCT_IDm_pHelper {nullptr}
 
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
 

Static Private Attributes

static const std::string s_separator {"-"}
 
static const std::string s_defectFolderName {"/SCT/Derived/Monitoring"}
 
static const std::string s_deadStripFolderName {"/SCT/Derived/DeadStrips"}
 
static const std::string s_deadChipFolderName {"/SCT/Derived/DeadChips"}
 
static const std::string s_effFolderName {"/SCT/Derived/Efficiency"}
 
static const std::string s_noFolderName {"/SCT/Derived/NoiseOccupancy"}
 
static const std::string s_RawOccuFolderName {"/SCT/Derived/RawOccupancy"}
 
static const std::string s_BSErrFolderName {"/SCT/Derived/BSErrorsRun2"}
 
static const std::string s_LAFolderName {"/SCT/Derived/LorentzAngleRun2_v2"}
 

Detailed Description

Tool to test writing conditions data and reading them back.

Definition at line 51 of file SCTCalibWriteTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ SCTCalibWriteTool()

SCTCalibWriteTool::SCTCalibWriteTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 45 of file SCTCalibWriteTool.cxx.

45  :
47  m_regSvc("IOVRegistrationSvc", name),
48  m_streamer(((m_version == 0) ? "AthenaOutputStreamTool" : "AthenaPoolOutputStreamTool"), this),
49  m_IOVDbSvc("IOVDbSvc", name)
50 {
51 }

Member Function Documentation

◆ addDefect()

std::string SCTCalibWriteTool::addDefect ( const std::string &  defectlist,
const int  defectBeginChannel,
const int  defectEndChannel 
) const

Definition at line 103 of file SCTCalibWriteTool.cxx.

103  {
104  // check size of defect list,
105  // if it is empty then use createDefectString to make first entry.
106  if (defectlist.empty()) return createDefectString(defectBeginChannel, defectEndChannel);
107 
108  // adding another Defect in DefectList
109  std::ostringstream defect;
110  defect << defectlist << " " << defectBeginChannel;
111  if (defectBeginChannel==defectEndChannel) {
112  defect << " ";
113  } else {
114  defect << "-" << defectEndChannel << " ";
115  }
116  return defect.str();
117 }

◆ addNumber()

std::string SCTCalibWriteTool::addNumber ( const std::string &  numStr,
const unsigned long long  number 
) const

Definition at line 136 of file SCTCalibWriteTool.cxx.

136  {
137  std::ostringstream num_string;
138  // if it is empty then use createDefectString to make first entry.
139  if (numStr.empty()) {
140  num_string << number;
141  } else { // adding another number to numStr
142  num_string << numStr << " " << number;
143  }
144  return num_string.str();
145 }

◆ ATLAS_NOT_THREAD_SAFE() [1/8]

StatusCode createListEff SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const float  eff 
) const

◆ ATLAS_NOT_THREAD_SAFE() [2/8]

StatusCode createListNO SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const float  noise_occ 
) const

◆ ATLAS_NOT_THREAD_SAFE() [3/8]

StatusCode createListRawOccu SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const float  raw_occu 
) const

◆ ATLAS_NOT_THREAD_SAFE() [4/8]

StatusCode createListLA SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const int  module,
const float  lorentz,
const float  err_lorentz,
const float  chisq,
const float  fitParam_a,
const float  err_a,
const float  fitParam_b,
const float  err_b,
const float  fitParam_sigma,
const float  err_sigma,
const float  MCW,
const float  err_MCW 
) const

◆ ATLAS_NOT_THREAD_SAFE() [5/8]

StatusCode createCondObjects SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const std::string &  defectType,
const float  threshold,
const std::string &  defectList 
) const

◆ ATLAS_NOT_THREAD_SAFE() [6/8]

StatusCode createListStrip SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const std::string &  defectType,
const float  threshold,
const std::string &  defectList 
) const

◆ ATLAS_NOT_THREAD_SAFE() [7/8]

StatusCode createListChip SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const std::string &  defectType,
const float  threshold,
const std::string &  defectList 
) const

◆ ATLAS_NOT_THREAD_SAFE() [8/8]

StatusCode createListBSErr SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE ( const Identifier wafer_id,
const SCT_ID m_sctId,
const int  samplesize,
const std::string &  errorList,
const std::string &  probList 
) const

◆ computeIstrip4moncond()

unsigned int SCTCalibWriteTool::computeIstrip4moncond ( const Identifier elementId) const
private

Definition at line 90 of file SCTCalibWriteTool.cxx.

90  {
91  unsigned int iiside{static_cast<unsigned int>(m_pHelper->side(elementId))};
92  unsigned int iistrip{static_cast<unsigned int>(m_pHelper->strip(elementId))};
93  return 768*iiside + iistrip;
94 }

◆ createBasicDbSpec()

coral::AttributeListSpecification * SCTCalibWriteTool::createBasicDbSpec ( const bool  capsFormat) const
private

Definition at line 634 of file SCTCalibWriteTool.cxx.

634  {
635  coral::AttributeListSpecification* attrSpec{new coral::AttributeListSpecification{}};
636  const std::string becName{capsFormat?"BarrelEndcap":"barrel_endcap"};
637  attrSpec->extend("SampleSize", "int");
638  attrSpec->extend(becName, "int");
639  attrSpec->extend("Layer", "int");
640  attrSpec->extend("Eta", "int");
641  attrSpec->extend("Phi", "int");
642  return attrSpec;
643 }

◆ createDefectString()

std::string SCTCalibWriteTool::createDefectString ( const int  defectBeginChannel,
const int  defectEndChannel 
) const

Definition at line 122 of file SCTCalibWriteTool.cxx.

122  {
123  std::ostringstream defect;
124  defect << " " << defectBeginChannel;
125  if (defectBeginChannel!=defectEndChannel) {
126  defect << "-" << defectEndChannel;
127  }
128  defect << " ";
129  return defect.str();
130 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ getAttrListCollectionByFolder()

const CondAttrListCollection * SCTCalibWriteTool::getAttrListCollectionByFolder ( const std::string &  foldername) const
private

Definition at line 413 of file SCTCalibWriteTool.cxx.

413  {
414  std::lock_guard<std::mutex> lock{m_mutex};
415  // trying to find the pointer in the hashmap
416  // if it exists, return it, otherwise put it in.
417  const CondAttrListCollection* attrListCollection{nullptr};
418  if (m_attrListCollectionMap.count(foldername) == 0) {
419  if (detStore()->retrieve(attrListCollection, foldername).isFailure()) {
420  ATH_MSG_ERROR("Could not retrieve " << foldername);
421  return nullptr;
422  }
423  m_attrListCollectionMap.insert(make_pair(foldername, attrListCollection));
424  } else {
425  attrListCollection = m_attrListCollectionMap[foldername];
426  }
427  return attrListCollection;
428 }

◆ initialize()

StatusCode SCTCalibWriteTool::initialize ( )
overridevirtual

Definition at line 56 of file SCTCalibWriteTool.cxx.

57 {
58 
59  ATH_MSG_DEBUG("in SCTCalibWriteTool::initialize start");
60 
61  ATH_CHECK( detStore()->retrieve(m_pHelper,"SCT_ID") );
62 
63  // ------------------------------------------------------------
64  // The following is required for writing out something to COOL
65 
66  // CondAttrListCollection to store table temporarily
67  m_attrListColl = std::make_unique<CondAttrListCollection>(true);
68  m_attrListColl_deadStrip = std::make_unique<CondAttrListCollection>(true);
69  m_attrListColl_deadChip = std::make_unique<CondAttrListCollection>(true);
70  m_attrListColl_eff = std::make_unique<CondAttrListCollection>(true);
71  m_attrListColl_no = std::make_unique<CondAttrListCollection>(true);
72  m_attrListColl_RawOccu = std::make_unique<CondAttrListCollection>(true);
73  m_attrListColl_BSErr = std::make_unique<CondAttrListCollection>(true);
74  m_attrListColl_LA = std::make_unique<CondAttrListCollection>(true);
75 
76  // Get the IOVRegistrationSvc when needed
77  if (m_regIOV) {
78  ATH_CHECK( m_regSvc.retrieve() );
79  }
80 
81  // Retrieve IOVDb service
82  ATH_CHECK( m_IOVDbSvc.retrieve() );
83 
84  return StatusCode::SUCCESS;
85 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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.

◆ recordAndStream()

StatusCode SCTCalibWriteTool::recordAndStream ( std::unique_ptr< CondAttrListCollection pCollection,
const std::string &  foldername,
bool &  flag 
)
private

Definition at line 618 of file SCTCalibWriteTool.cxx.

618  {
619  ATH_MSG_DEBUG("recordAndStream start " << foldername);
620  if (m_writeCondObjs) {
621  if (detStore()->record(std::move(pCollection), foldername).isFailure()) {
622  ATH_MSG_ERROR("Could not record "<<foldername);
623  return StatusCode::FAILURE;
624  }
625  flag=true;
626  if (streamOutCondObjectsWithErrMsg(s_defectFolderName).isFailure()) return StatusCode::FAILURE;
627  }
628  return StatusCode::SUCCESS;
629 }

◆ registerCondObjects()

StatusCode SCTCalibWriteTool::registerCondObjects ( const std::string &  foldername,
const std::string &  tagname 
) const
private

Definition at line 551 of file SCTCalibWriteTool.cxx.

551  {
552  // Register the IOV DB with the conditions data written out
553  ATH_MSG_DEBUG("registerCondObjects start");
554  if (m_readWriteCool) {
555  // Can only write out AttrList's if this is NOT write and reg in two steps
556  if (!m_twoStepWriteReg) {
557  // Using COOL, write out attrlist and collection of attrlists
558  // attrlist collection
559  StatusCode sc;
560  unsigned int beginRun;
561  unsigned int endRun;
562  if (!m_manualiov) {
563 
564  const EventContext& ctx = Gaudi::Hive::currentContext();
565  beginRun = ctx.eventID().run_number();
566  endRun = beginRun;
567 
568  } else {
569  beginRun = m_beginRun;
570  if ( m_endRun != -1 ) endRun = m_endRun;
571  else endRun = IOVTime::MAXRUN;
572  }
573 
574  unsigned int beginLB{IOVTime::MINEVENT};
575  unsigned int endLB{IOVTime::MAXEVENT};
576 
577  ATH_MSG_DEBUG("registerCondObjects: registerCondObjects middle");
578 
579  if (not tagname.empty()) {
580  ATH_MSG_DEBUG("registerCondObjects: registerCondObjects before registerIOV 1");
581  ATH_MSG_DEBUG("registerCondObjects: foldername, tagname, beginRun, endRun, beginLB, endLB: " << foldername << ", " << tagname << ", " << beginRun << ", " << endRun << ", " << beginLB << ", " << endLB);
582  sc = m_regSvc->registerIOV("CondAttrListCollection", foldername, tagname, beginRun, endRun, beginLB, endLB);
583  ATH_MSG_DEBUG("registerCondObjects after registerIOV 1");
584  } else {
585  ATH_MSG_DEBUG("registerCondObjects before registerIOV 2");
586  ATH_MSG_DEBUG("registerCondObjects: foldername, beginRun, endRun, beginLB, endLB: " << foldername << ", " << beginRun << ", " << endRun << ", " << beginLB << ", " << endLB);
587  sc = m_regSvc->registerIOV("CondAttrListCollection", foldername, "", beginRun, endRun, beginLB, endLB);
588  ATH_MSG_DEBUG("registerCondObjects after registerIOV 2");
589  }
590  if (sc.isFailure()) {
591  ATH_MSG_ERROR("registerCondObjects: Could not register in IOV DB for CondAttrListCollection");
592  return StatusCode::FAILURE;
593  }
594  }
595  }
596 
597  ATH_MSG_DEBUG("registerCondObjects end");
598 
599  return StatusCode::SUCCESS;
600 }

◆ registerCondObjectsWithErrMsg()

StatusCode SCTCalibWriteTool::registerCondObjectsWithErrMsg ( const std::string &  foldername,
const std::string &  tagname 
) const
private

Definition at line 605 of file SCTCalibWriteTool.cxx.

605  {
606  if (m_regIOV) {
607  if (registerCondObjects(foldername,tagname).isFailure()) {
608  ATH_MSG_ERROR("registerCondObjectsWithErrMsg: Could not register " << foldername);
609  return StatusCode::FAILURE;
610  }
611  }
612  return StatusCode::SUCCESS;
613 }

◆ 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< AlgTool > >::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< AlgTool > >::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  }

◆ setBasicValues()

void SCTCalibWriteTool::setBasicValues ( coral::AttributeList &  attrList,
const Identifier wafer_id,
const int  samplesize,
const SCT_ID m_sctId,
const bool  capsFormat 
) const
private

Definition at line 648 of file SCTCalibWriteTool.cxx.

648  {
649  int eta{sctId->eta_module(wafer_id)};
650  int phi{sctId->phi_module(wafer_id)};
651  int barrel_ec{sctId->barrel_ec(wafer_id)};
652  int layer{sctId->layer_disk(wafer_id)};
653  //
654  const std::string becName{capsFormat?"BarrelEndcap":"barrel_endcap"};
655  attrList["SampleSize"].setValue(static_cast<int>(samplesize));
656  attrList[becName].setValue(static_cast<int>(barrel_ec));
657  attrList["Layer"].setValue(static_cast<int>(layer));
658  attrList["Eta"].setValue(static_cast<int>(eta));
659  attrList["Phi"].setValue(static_cast<int>(phi));
660 
661  return;
662 }

◆ streamOutCondObjects()

StatusCode SCTCalibWriteTool::streamOutCondObjects ( const std::string &  foldername)
private

Definition at line 512 of file SCTCalibWriteTool.cxx.

512  {
513  ATH_MSG_DEBUG("streamOutCondObjects start");
514  if (m_streamer->connectOutput(m_streamName).isFailure()) {
515  ATH_MSG_ERROR("Could not connect stream to output");
516  return( StatusCode::FAILURE);
517  }
519  if (m_readWriteCool) {
520  IAthenaOutputStreamTool::TypeKeyPair attrCollPair{"CondAttrListCollection", foldername};
521  typeKeys[0] = attrCollPair;
522  }
523 
524  if (m_streamer->streamObjects(typeKeys).isFailure()) {
525  ATH_MSG_ERROR("Could not stream out AttributeLists");
526  return StatusCode::FAILURE;
527  }
528 
529  if (m_streamer->commitOutput().isFailure()) {
530  ATH_MSG_ERROR("Could not commit output stream");
531  return StatusCode::FAILURE;
532  }
533  return StatusCode::SUCCESS;
534 }

◆ streamOutCondObjectsWithErrMsg()

StatusCode SCTCalibWriteTool::streamOutCondObjectsWithErrMsg ( const std::string &  foldername)
private

Definition at line 539 of file SCTCalibWriteTool.cxx.

539  {
540  ATH_MSG_DEBUG("streamOutCondObjectsWithErrMsg: foldername " << foldername);
541  if (streamOutCondObjects(foldername).isFailure()) {
542  ATH_MSG_ERROR("Could not create conditions object " << foldername);
543  return StatusCode::FAILURE;
544  }
545  return StatusCode::SUCCESS;
546 }

◆ stringToInt()

int SCTCalibWriteTool::stringToInt ( const std::string &  s) const
private

Definition at line 433 of file SCTCalibWriteTool.cxx.

433  {
434  return atoi(s.c_str());
435 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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  }

◆ wrapUpBSErrors()

StatusCode SCTCalibWriteTool::wrapUpBSErrors ( )

Definition at line 494 of file SCTCalibWriteTool.cxx.

494  {
495  if (recordAndStream(std::move(m_attrListColl_BSErr), s_BSErrFolderName, m_BSErrRecorded).isFailure()) return StatusCode::FAILURE;
496  if (registerCondObjectsWithErrMsg(s_BSErrFolderName, m_tagID4BSErrors).isFailure()) return StatusCode::FAILURE;
497  return StatusCode::SUCCESS;
498 }

◆ wrapUpDeadChips()

StatusCode SCTCalibWriteTool::wrapUpDeadChips ( )

Definition at line 458 of file SCTCalibWriteTool.cxx.

458  {
459  if (recordAndStream(std::move(m_attrListColl_deadChip), s_deadChipFolderName, m_deadChipRecorded).isFailure()) return StatusCode::FAILURE;
460  if (registerCondObjectsWithErrMsg(s_deadChipFolderName, m_tagID4DeadChips).isFailure()) return StatusCode::FAILURE;
461  return StatusCode::SUCCESS;
462 }

◆ wrapUpDeadStrips()

StatusCode SCTCalibWriteTool::wrapUpDeadStrips ( )

Definition at line 449 of file SCTCalibWriteTool.cxx.

449  {
450  if (recordAndStream(std::move(m_attrListColl_deadStrip), s_deadStripFolderName, m_deadStripRecorded).isFailure()) return StatusCode::FAILURE;
451  if (registerCondObjectsWithErrMsg(s_deadStripFolderName, m_tagID4DeadStrips).isFailure()) return StatusCode::FAILURE;
452  return StatusCode::SUCCESS;
453 }

◆ wrapUpEfficiency()

StatusCode SCTCalibWriteTool::wrapUpEfficiency ( )

Definition at line 467 of file SCTCalibWriteTool.cxx.

467  {
468  if (recordAndStream(std::move(m_attrListColl_eff), s_effFolderName, m_effRecorded).isFailure()) return StatusCode::FAILURE;
469  if (registerCondObjectsWithErrMsg(s_effFolderName, m_tagID4Efficiency).isFailure()) return StatusCode::FAILURE;
470  return StatusCode::SUCCESS;
471 }

◆ wrapUpLorentzAngle()

StatusCode SCTCalibWriteTool::wrapUpLorentzAngle ( )

Definition at line 503 of file SCTCalibWriteTool.cxx.

503  {
504  if (recordAndStream(std::move(m_attrListColl_LA), s_LAFolderName, m_LARecorded).isFailure()) return StatusCode::FAILURE;
505  if (registerCondObjectsWithErrMsg(s_LAFolderName, m_tagID4LorentzAngle).isFailure()) return StatusCode::FAILURE;
506  return StatusCode::SUCCESS;
507 }

◆ wrapUpNoiseOccupancy()

StatusCode SCTCalibWriteTool::wrapUpNoiseOccupancy ( )

Definition at line 476 of file SCTCalibWriteTool.cxx.

476  {
477  if (recordAndStream(std::move(m_attrListColl_no), s_noFolderName, m_noRecorded).isFailure()) return StatusCode::FAILURE;
478  if (registerCondObjectsWithErrMsg(s_noFolderName, m_tagID4NoiseOccupancy).isFailure()) return StatusCode::FAILURE;
479  return StatusCode::SUCCESS;
480 }

◆ wrapUpNoisyChannel()

StatusCode SCTCalibWriteTool::wrapUpNoisyChannel ( )

Definition at line 440 of file SCTCalibWriteTool.cxx.

440  {
441  if (recordAndStream(std::move(m_attrListColl), s_defectFolderName, m_defectRecorded).isFailure()) return StatusCode::FAILURE;
442  if (registerCondObjectsWithErrMsg(s_defectFolderName, m_tagID4NoisyStrips).isFailure()) return StatusCode::FAILURE;
443  return StatusCode::SUCCESS;
444 }

◆ wrapUpRawOccupancy()

StatusCode SCTCalibWriteTool::wrapUpRawOccupancy ( )

Definition at line 485 of file SCTCalibWriteTool.cxx.

485  {
486  if (recordAndStream(std::move(m_attrListColl_RawOccu), s_RawOccuFolderName, m_RawOccuRecorded).isFailure()) return StatusCode::FAILURE;
487  if (registerCondObjectsWithErrMsg(s_RawOccuFolderName, m_tagID4RawOccupancy).isFailure()) return StatusCode::FAILURE;
488  return StatusCode::SUCCESS;
489 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::map<const std::string, const CondAttrListCollection*> m_attrListCollectionMap SCTCalibWriteTool::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 175 of file SCTCalibWriteTool.h.

◆ m_attrListColl

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl
private

Definition at line 176 of file SCTCalibWriteTool.h.

◆ m_attrListColl_BSErr

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_BSErr
private

Definition at line 182 of file SCTCalibWriteTool.h.

◆ m_attrListColl_deadChip

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_deadChip
private

Definition at line 178 of file SCTCalibWriteTool.h.

◆ m_attrListColl_deadStrip

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_deadStrip
private

Definition at line 177 of file SCTCalibWriteTool.h.

◆ m_attrListColl_eff

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_eff
private

Definition at line 179 of file SCTCalibWriteTool.h.

◆ m_attrListColl_LA

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_LA
private

Definition at line 183 of file SCTCalibWriteTool.h.

◆ m_attrListColl_no

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_no
private

Definition at line 180 of file SCTCalibWriteTool.h.

◆ m_attrListColl_RawOccu

std::unique_ptr<CondAttrListCollection> SCTCalibWriteTool::m_attrListColl_RawOccu
private

Definition at line 181 of file SCTCalibWriteTool.h.

◆ m_beginRun

IntegerProperty SCTCalibWriteTool::m_beginRun {this, "BeginRun", IOVTime::MINRUN}
private

Definition at line 190 of file SCTCalibWriteTool.h.

◆ m_BSErrRecorded

bool SCTCalibWriteTool::m_BSErrRecorded {false}
private

Definition at line 212 of file SCTCalibWriteTool.h.

◆ m_deadChipRecorded

bool SCTCalibWriteTool::m_deadChipRecorded {false}
private

Definition at line 208 of file SCTCalibWriteTool.h.

◆ m_deadStripRecorded

bool SCTCalibWriteTool::m_deadStripRecorded {false}
private

Definition at line 207 of file SCTCalibWriteTool.h.

◆ m_defectRecorded

bool SCTCalibWriteTool::m_defectRecorded {false}
private

Definition at line 206 of file SCTCalibWriteTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_effRecorded

bool SCTCalibWriteTool::m_effRecorded {false}
private

Definition at line 209 of file SCTCalibWriteTool.h.

◆ m_endRun

IntegerProperty SCTCalibWriteTool::m_endRun {this, "EndRun", IOVTime::MAXRUN}
private

Definition at line 191 of file SCTCalibWriteTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_IOVDbSvc

ServiceHandle<IIOVDbSvc> SCTCalibWriteTool::m_IOVDbSvc
private

Definition at line 204 of file SCTCalibWriteTool.h.

◆ m_LARecorded

bool SCTCalibWriteTool::m_LARecorded {false}
private

Definition at line 213 of file SCTCalibWriteTool.h.

◆ m_manualiov

BooleanProperty SCTCalibWriteTool::m_manualiov {this, "ManualIOV", true}
private

Definition at line 188 of file SCTCalibWriteTool.h.

◆ m_mutex

std::mutex SCTCalibWriteTool::m_mutex {}
mutableprivate

Definition at line 174 of file SCTCalibWriteTool.h.

◆ m_noRecorded

bool SCTCalibWriteTool::m_noRecorded {false}
private

Definition at line 210 of file SCTCalibWriteTool.h.

◆ m_pHelper

const SCT_ID* SCTCalibWriteTool::m_pHelper {nullptr}
private

Definition at line 214 of file SCTCalibWriteTool.h.

◆ m_RawOccuRecorded

bool SCTCalibWriteTool::m_RawOccuRecorded {false}
private

Definition at line 211 of file SCTCalibWriteTool.h.

◆ m_readWriteCool

BooleanProperty SCTCalibWriteTool::m_readWriteCool {this, "ReadWriteCool", true}
private

Definition at line 186 of file SCTCalibWriteTool.h.

◆ m_regIOV

BooleanProperty SCTCalibWriteTool::m_regIOV {this, "RegisterIOV", true}
private

Definition at line 185 of file SCTCalibWriteTool.h.

◆ m_regSvc

ServiceHandle<IIOVRegistrationSvc> SCTCalibWriteTool::m_regSvc
private

Definition at line 202 of file SCTCalibWriteTool.h.

◆ m_streamer

ToolHandle<IAthenaOutputStreamTool> SCTCalibWriteTool::m_streamer {nullptr}
private

Definition at line 203 of file SCTCalibWriteTool.h.

◆ m_streamName

StringProperty SCTCalibWriteTool::m_streamName {this, "StreamName", "SCTCalibStream"}
private

Definition at line 192 of file SCTCalibWriteTool.h.

◆ m_tagID4BSErrors

StringProperty SCTCalibWriteTool::m_tagID4BSErrors {this, "TagID4BSErrors", ""}
private

Definition at line 199 of file SCTCalibWriteTool.h.

◆ m_tagID4DeadChips

StringProperty SCTCalibWriteTool::m_tagID4DeadChips {this, "TagID4DeadChips", ""}
private

Definition at line 195 of file SCTCalibWriteTool.h.

◆ m_tagID4DeadStrips

StringProperty SCTCalibWriteTool::m_tagID4DeadStrips {this, "TagID4DeadStrips", ""}
private

Definition at line 194 of file SCTCalibWriteTool.h.

◆ m_tagID4Efficiency

StringProperty SCTCalibWriteTool::m_tagID4Efficiency {this, "TagID4Efficiency", ""}
private

Definition at line 196 of file SCTCalibWriteTool.h.

◆ m_tagID4LorentzAngle

StringProperty SCTCalibWriteTool::m_tagID4LorentzAngle {this, "TagID4LorentzAngle", ""}
private

Definition at line 200 of file SCTCalibWriteTool.h.

◆ m_tagID4NoiseOccupancy

StringProperty SCTCalibWriteTool::m_tagID4NoiseOccupancy {this, "TagID4NoiseOccupancy", ""}
private

Definition at line 197 of file SCTCalibWriteTool.h.

◆ m_tagID4NoisyStrips

StringProperty SCTCalibWriteTool::m_tagID4NoisyStrips {this, "TagID4NoisyStrips", ""}
private

Definition at line 193 of file SCTCalibWriteTool.h.

◆ m_tagID4RawOccupancy

StringProperty SCTCalibWriteTool::m_tagID4RawOccupancy {this, "TagID4RawOccupancy", ""}
private

Definition at line 198 of file SCTCalibWriteTool.h.

◆ m_twoStepWriteReg

BooleanProperty SCTCalibWriteTool::m_twoStepWriteReg {this, "TwoStepWriteReg", false}
private

Definition at line 187 of file SCTCalibWriteTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_version

IntegerProperty SCTCalibWriteTool::m_version {this, "Version", 0}
private

Definition at line 189 of file SCTCalibWriteTool.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeCondObjs

BooleanProperty SCTCalibWriteTool::m_writeCondObjs {this, "WriteCondObjs", true}
private

Definition at line 184 of file SCTCalibWriteTool.h.

◆ s_BSErrFolderName

const std::string SCTCalibWriteTool::s_BSErrFolderName {"/SCT/Derived/BSErrorsRun2"}
staticprivate

Definition at line 170 of file SCTCalibWriteTool.h.

◆ s_deadChipFolderName

const std::string SCTCalibWriteTool::s_deadChipFolderName {"/SCT/Derived/DeadChips"}
staticprivate

Definition at line 166 of file SCTCalibWriteTool.h.

◆ s_deadStripFolderName

const std::string SCTCalibWriteTool::s_deadStripFolderName {"/SCT/Derived/DeadStrips"}
staticprivate

Definition at line 165 of file SCTCalibWriteTool.h.

◆ s_defectFolderName

const std::string SCTCalibWriteTool::s_defectFolderName {"/SCT/Derived/Monitoring"}
staticprivate

Definition at line 164 of file SCTCalibWriteTool.h.

◆ s_effFolderName

const std::string SCTCalibWriteTool::s_effFolderName {"/SCT/Derived/Efficiency"}
staticprivate

Definition at line 167 of file SCTCalibWriteTool.h.

◆ s_LAFolderName

const std::string SCTCalibWriteTool::s_LAFolderName {"/SCT/Derived/LorentzAngleRun2_v2"}
staticprivate

Definition at line 171 of file SCTCalibWriteTool.h.

◆ s_noFolderName

const std::string SCTCalibWriteTool::s_noFolderName {"/SCT/Derived/NoiseOccupancy"}
staticprivate

Definition at line 168 of file SCTCalibWriteTool.h.

◆ s_RawOccuFolderName

const std::string SCTCalibWriteTool::s_RawOccuFolderName {"/SCT/Derived/RawOccupancy"}
staticprivate

Definition at line 169 of file SCTCalibWriteTool.h.

◆ s_separator

const std::string SCTCalibWriteTool::s_separator {"-"}
staticprivate

Definition at line 163 of file SCTCalibWriteTool.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
SCTCalibWriteTool::m_BSErrRecorded
bool m_BSErrRecorded
Definition: SCTCalibWriteTool.h:212
SCTCalibWriteTool::m_mutex
std::mutex m_mutex
Definition: SCTCalibWriteTool.h:174
SCTCalibWriteTool::m_effRecorded
bool m_effRecorded
Definition: SCTCalibWriteTool.h:209
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
IAthenaOutputStreamTool::TypeKeyPairs
std::vector< TypeKeyPair > TypeKeyPairs
Definition: IAthenaOutputStreamTool.h:100
SCTCalibWriteTool::m_RawOccuRecorded
bool m_RawOccuRecorded
Definition: SCTCalibWriteTool.h:211
SCTCalibWriteTool::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition: SCTCalibWriteTool.h:202
IOVTime::MAXRUN
static constexpr uint32_t MAXRUN
Definition: IOVTime.h:48
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
SCTCalibWriteTool::s_deadChipFolderName
static const std::string s_deadChipFolderName
Definition: SCTCalibWriteTool.h:166
SCTCalibWriteTool::m_IOVDbSvc
ServiceHandle< IIOVDbSvc > m_IOVDbSvc
Definition: SCTCalibWriteTool.h:204
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
SCTCalibWriteTool::m_attrListColl_RawOccu
std::unique_ptr< CondAttrListCollection > m_attrListColl_RawOccu
Definition: SCTCalibWriteTool.h:181
SCTCalibWriteTool::m_deadChipRecorded
bool m_deadChipRecorded
Definition: SCTCalibWriteTool.h:208
SCTCalibWriteTool::s_noFolderName
static const std::string s_noFolderName
Definition: SCTCalibWriteTool.h:168
SCTCalibWriteTool::m_tagID4Efficiency
StringProperty m_tagID4Efficiency
Definition: SCTCalibWriteTool.h:196
SCTCalibWriteTool::createDefectString
std::string createDefectString(const int defectBeginChannel, const int defectEndChannel) const
Definition: SCTCalibWriteTool.cxx:122
python.checkUPD1.foldername
foldername
Definition: checkUPD1.py:77
SCTCalibWriteTool::m_attrListColl_eff
std::unique_ptr< CondAttrListCollection > m_attrListColl_eff
Definition: SCTCalibWriteTool.h:179
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
SCTCalibWriteTool::m_beginRun
IntegerProperty m_beginRun
Definition: SCTCalibWriteTool.h:190
SCTCalibWriteTool::m_pHelper
const SCT_ID * m_pHelper
Definition: SCTCalibWriteTool.h:214
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SCTCalibWriteTool::m_attrListColl_no
std::unique_ptr< CondAttrListCollection > m_attrListColl_no
Definition: SCTCalibWriteTool.h:180
SCTCalibWriteTool::m_tagID4DeadStrips
StringProperty m_tagID4DeadStrips
Definition: SCTCalibWriteTool.h:194
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SCTCalibWriteTool::m_attrListColl
std::unique_ptr< CondAttrListCollection > m_attrListColl
Definition: SCTCalibWriteTool.h:176
AthCommonDataStore< AthCommonMsg< AlgTool > >::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
SCTCalibWriteTool::s_BSErrFolderName
static const std::string s_BSErrFolderName
Definition: SCTCalibWriteTool.h:170
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
SCTCalibWriteTool::m_tagID4LorentzAngle
StringProperty m_tagID4LorentzAngle
Definition: SCTCalibWriteTool.h:200
SCTCalibWriteTool::m_tagID4NoisyStrips
StringProperty m_tagID4NoisyStrips
Definition: SCTCalibWriteTool.h:193
SCTCalibWriteTool::m_endRun
IntegerProperty m_endRun
Definition: SCTCalibWriteTool.h:191
SCTCalibWriteTool::m_streamer
ToolHandle< IAthenaOutputStreamTool > m_streamer
Definition: SCTCalibWriteTool.h:203
SCTCalibWriteTool::m_twoStepWriteReg
BooleanProperty m_twoStepWriteReg
Definition: SCTCalibWriteTool.h:187
SCTCalibWriteTool::m_tagID4DeadChips
StringProperty m_tagID4DeadChips
Definition: SCTCalibWriteTool.h:195
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
SCTCalibWriteTool::m_defectRecorded
bool m_defectRecorded
Definition: SCTCalibWriteTool.h:206
SCTCalibWriteTool::m_regIOV
BooleanProperty m_regIOV
Definition: SCTCalibWriteTool.h:185
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
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
master.flag
bool flag
Definition: master.py:29
IAthenaOutputStreamTool::TypeKeyPair
std::pair< std::string, std::string > TypeKeyPair
Stream out objects.
Definition: IAthenaOutputStreamTool.h:99
test_pyathena.parent
parent
Definition: test_pyathena.py:15
SCTCalibWriteTool::m_attrListColl_deadStrip
std::unique_ptr< CondAttrListCollection > m_attrListColl_deadStrip
Definition: SCTCalibWriteTool.h:177
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SCTCalibWriteTool::s_effFolderName
static const std::string s_effFolderName
Definition: SCTCalibWriteTool.h:167
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SCTCalibWriteTool::streamOutCondObjectsWithErrMsg
StatusCode streamOutCondObjectsWithErrMsg(const std::string &foldername)
Definition: SCTCalibWriteTool.cxx:539
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SCTCalibWriteTool::m_tagID4RawOccupancy
StringProperty m_tagID4RawOccupancy
Definition: SCTCalibWriteTool.h:198
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SCTCalibWriteTool::m_attrListColl_BSErr
std::unique_ptr< CondAttrListCollection > m_attrListColl_BSErr
Definition: SCTCalibWriteTool.h:182
IOVTime::MAXEVENT
static constexpr uint32_t MAXEVENT
Definition: IOVTime.h:51
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
python.selection.number
number
Definition: selection.py:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
SCTCalibWriteTool::m_LARecorded
bool m_LARecorded
Definition: SCTCalibWriteTool.h:213
IOVTime::MINEVENT
static constexpr uint32_t MINEVENT
Definition: IOVTime.h:50
dq_defect_bulk_create_defects.defect
defect
Definition: dq_defect_bulk_create_defects.py:35
a
TList * a
Definition: liststreamerinfos.cxx:10
SCTCalibWriteTool::recordAndStream
StatusCode recordAndStream(std::unique_ptr< CondAttrListCollection > pCollection, const std::string &foldername, bool &flag)
Definition: SCTCalibWriteTool.cxx:618
h
SCT_ID::strip
int strip(const Identifier &id) const
Definition: SCT_ID.h:764
SCTCalibWriteTool::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: SCTCalibWriteTool.h:184
SCTCalibWriteTool::registerCondObjects
StatusCode registerCondObjects(const std::string &foldername, const std::string &tagname) const
Definition: SCTCalibWriteTool.cxx:551
SCTCalibWriteTool::m_attrListColl_deadChip
std::unique_ptr< CondAttrListCollection > m_attrListColl_deadChip
Definition: SCTCalibWriteTool.h:178
SCTCalibWriteTool::m_version
IntegerProperty m_version
Definition: SCTCalibWriteTool.h:189
SCTCalibWriteTool::m_tagID4NoiseOccupancy
StringProperty m_tagID4NoiseOccupancy
Definition: SCTCalibWriteTool.h:197
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
tagname
Definition: tagname.h:29
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
SCT_ID::side
int side(const Identifier &id) const
Definition: SCT_ID.h:752
SCTCalibWriteTool::s_LAFolderName
static const std::string s_LAFolderName
Definition: SCTCalibWriteTool.h:171
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
SCTCalibWriteTool::m_noRecorded
bool m_noRecorded
Definition: SCTCalibWriteTool.h:210
SCTCalibWriteTool::registerCondObjectsWithErrMsg
StatusCode registerCondObjectsWithErrMsg(const std::string &foldername, const std::string &tagname) const
Definition: SCTCalibWriteTool.cxx:605
SCTCalibWriteTool::s_deadStripFolderName
static const std::string s_deadStripFolderName
Definition: SCTCalibWriteTool.h:165
SCTCalibWriteTool::m_streamName
StringProperty m_streamName
Definition: SCTCalibWriteTool.h:192
SCTCalibWriteTool::s_RawOccuFolderName
static const std::string s_RawOccuFolderName
Definition: SCTCalibWriteTool.h:169
SCTCalibWriteTool::m_tagID4BSErrors
StringProperty m_tagID4BSErrors
Definition: SCTCalibWriteTool.h:199
SCTCalibWriteTool::s_defectFolderName
static const std::string s_defectFolderName
Definition: SCTCalibWriteTool.h:164
SCTCalibWriteTool::m_readWriteCool
BooleanProperty m_readWriteCool
Definition: SCTCalibWriteTool.h:186
SCTCalibWriteTool::m_manualiov
BooleanProperty m_manualiov
Definition: SCTCalibWriteTool.h:188
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
SCTCalibWriteTool::streamOutCondObjects
StatusCode streamOutCondObjects(const std::string &foldername)
Definition: SCTCalibWriteTool.cxx:512
SCTCalibWriteTool::m_deadStripRecorded
bool m_deadStripRecorded
Definition: SCTCalibWriteTool.h:207
fitman.k
k
Definition: fitman.py:528
SCTCalibWriteTool::m_attrListColl_LA
std::unique_ptr< CondAttrListCollection > m_attrListColl_LA
Definition: SCTCalibWriteTool.h:183