![]() |
ATLAS Offline Software
|
Tool to test writing conditions data and reading them back. More...
#include <SCTCalibWriteTool.h>
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. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| 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. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_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 CondAttrListCollection * | getAttrListCollectionByFolder (const std::string &) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| std::mutex | m_mutex {} |
| std::map< const std::string, const CondAttrListCollection * > m_attrListCollectionMap | ATLAS_THREAD_SAFE |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_deadStrip |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_deadChip |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_eff |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_no |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_RawOccu |
| std::unique_ptr< CondAttrListCollection > | m_attrListColl_BSErr |
| std::unique_ptr< CondAttrListCollection > | m_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< IIOVRegistrationSvc > | m_regSvc |
| ToolHandle< IAthenaOutputStreamTool > | m_streamer {nullptr} |
| ServiceHandle< IIOVDbSvc > | m_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_ID * | m_pHelper {nullptr} |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| 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"} |
Tool to test writing conditions data and reading them back.
Definition at line 51 of file SCTCalibWriteTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| SCTCalibWriteTool::SCTCalibWriteTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 45 of file SCTCalibWriteTool.cxx.
| std::string SCTCalibWriteTool::addDefect | ( | const std::string & | defectlist, |
| const int | defectBeginChannel, | ||
| const int | defectEndChannel ) const |
Definition at line 103 of file SCTCalibWriteTool.cxx.
| std::string SCTCalibWriteTool::addNumber | ( | const std::string & | numStr, |
| const unsigned long long | number ) const |
Definition at line 136 of file SCTCalibWriteTool.cxx.
| StatusCode createListEff SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE | ( | const Identifier & | wafer_id, |
| const SCT_ID * | m_sctId, | ||
| const int | samplesize, | ||
| const float | eff ) const |
| StatusCode createListNO SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE | ( | const Identifier & | wafer_id, |
| const SCT_ID * | m_sctId, | ||
| const int | samplesize, | ||
| const float | noise_occ ) const |
| StatusCode createListRawOccu SCTCalibWriteTool::ATLAS_NOT_THREAD_SAFE | ( | const Identifier & | wafer_id, |
| const SCT_ID * | m_sctId, | ||
| const int | samplesize, | ||
| const float | raw_occu ) const |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
|
private |
Definition at line 90 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 634 of file SCTCalibWriteTool.cxx.
| std::string SCTCalibWriteTool::createDefectString | ( | const int | defectBeginChannel, |
| const int | defectEndChannel ) const |
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
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
|
private |
Definition at line 413 of file SCTCalibWriteTool.cxx.
|
overridevirtual |
Definition at line 56 of file SCTCalibWriteTool.cxx.
|
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.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
private |
Definition at line 618 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 551 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 605 of file SCTCalibWriteTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
private |
Definition at line 648 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 512 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 539 of file SCTCalibWriteTool.cxx.
|
private |
Definition at line 433 of file SCTCalibWriteTool.cxx.
|
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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
| StatusCode SCTCalibWriteTool::wrapUpBSErrors | ( | ) |
Definition at line 494 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpDeadChips | ( | ) |
Definition at line 458 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpDeadStrips | ( | ) |
Definition at line 449 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpEfficiency | ( | ) |
Definition at line 467 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpLorentzAngle | ( | ) |
Definition at line 503 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpNoiseOccupancy | ( | ) |
Definition at line 476 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpNoisyChannel | ( | ) |
Definition at line 440 of file SCTCalibWriteTool.cxx.
| StatusCode SCTCalibWriteTool::wrapUpRawOccupancy | ( | ) |
Definition at line 485 of file SCTCalibWriteTool.cxx.
|
mutableprivate |
Definition at line 175 of file SCTCalibWriteTool.h.
|
private |
Definition at line 176 of file SCTCalibWriteTool.h.
|
private |
Definition at line 182 of file SCTCalibWriteTool.h.
|
private |
Definition at line 178 of file SCTCalibWriteTool.h.
|
private |
Definition at line 177 of file SCTCalibWriteTool.h.
|
private |
Definition at line 179 of file SCTCalibWriteTool.h.
|
private |
Definition at line 183 of file SCTCalibWriteTool.h.
|
private |
Definition at line 180 of file SCTCalibWriteTool.h.
|
private |
Definition at line 181 of file SCTCalibWriteTool.h.
|
private |
Definition at line 190 of file SCTCalibWriteTool.h.
|
private |
Definition at line 212 of file SCTCalibWriteTool.h.
|
private |
Definition at line 208 of file SCTCalibWriteTool.h.
|
private |
Definition at line 207 of file SCTCalibWriteTool.h.
|
private |
Definition at line 206 of file SCTCalibWriteTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 209 of file SCTCalibWriteTool.h.
|
private |
Definition at line 191 of file SCTCalibWriteTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 204 of file SCTCalibWriteTool.h.
|
private |
Definition at line 213 of file SCTCalibWriteTool.h.
|
private |
Definition at line 188 of file SCTCalibWriteTool.h.
|
mutableprivate |
Definition at line 174 of file SCTCalibWriteTool.h.
|
private |
Definition at line 210 of file SCTCalibWriteTool.h.
|
private |
Definition at line 214 of file SCTCalibWriteTool.h.
|
private |
Definition at line 211 of file SCTCalibWriteTool.h.
|
private |
Definition at line 186 of file SCTCalibWriteTool.h.
|
private |
Definition at line 185 of file SCTCalibWriteTool.h.
|
private |
Definition at line 202 of file SCTCalibWriteTool.h.
|
private |
Definition at line 203 of file SCTCalibWriteTool.h.
|
private |
Definition at line 192 of file SCTCalibWriteTool.h.
|
private |
Definition at line 199 of file SCTCalibWriteTool.h.
|
private |
Definition at line 195 of file SCTCalibWriteTool.h.
|
private |
Definition at line 194 of file SCTCalibWriteTool.h.
|
private |
Definition at line 196 of file SCTCalibWriteTool.h.
|
private |
Definition at line 200 of file SCTCalibWriteTool.h.
|
private |
Definition at line 197 of file SCTCalibWriteTool.h.
|
private |
Definition at line 193 of file SCTCalibWriteTool.h.
|
private |
Definition at line 198 of file SCTCalibWriteTool.h.
|
private |
Definition at line 187 of file SCTCalibWriteTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
private |
Definition at line 189 of file SCTCalibWriteTool.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
Definition at line 184 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 39 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 35 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 34 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 33 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 36 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 40 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 37 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 38 of file SCTCalibWriteTool.h.
|
staticprivate |
Definition at line 32 of file SCTCalibWriteTool.h.