This class acts as a test/sample client to the SCT_ReadSCalibChipDataSvc class.
More...
#include <SCT_ReadCalibChipDataTestAlg.h>
|
| const SCT_ID * | m_id_sct {nullptr} |
| | ID helper for SCT.
|
| Identifier | m_moduleId |
| | Module identifier.
|
| Identifier | m_waferId |
| | Wafer identifier.
|
| Identifier | m_stripId |
| | Strip identifier.
|
| ToolHandle< ISCT_ReadCalibChipDataTool > | m_ReadCalibChipDataTool {this, "SCT_ReadCalibChipDataTool", "SCT_ReadCalibChipDataTool", "Tool to retrieve chip calibration information"} |
| BooleanProperty | m_doTestmyConditionsSummary {this, "DoTestmyConditionsSummary", false, "Test return bool conditions summary?"} |
| BooleanProperty | m_doTestmyDataSummary {this, "DoTestmyDataSummary", false, "Test return data summary?"} |
| IntegerArrayProperty | m_moduleOfflinePosition {this, "ModuleOfflinePosition", {}, "Offline pos. as: B-EC,layer-disk,phi,eta"} |
| DataObjIDColl | m_extendedExtraObjects |
| | Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
|
| 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 |
This class acts as a test/sample client to the SCT_ReadSCalibChipDataSvc class.
Definition at line 31 of file SCT_ReadCalibChipDataTestAlg.h.
◆ StoreGateSvc_t
◆ SCT_ReadCalibChipDataTestAlg()
| SCT_ReadCalibChipDataTestAlg::SCT_ReadCalibChipDataTestAlg |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
◆ ~SCT_ReadCalibChipDataTestAlg()
| virtual SCT_ReadCalibChipDataTestAlg::~SCT_ReadCalibChipDataTestAlg |
( |
| ) |
|
|
virtualdefault |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ execute()
| StatusCode SCT_ReadCalibChipDataTestAlg::execute |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Gaudi executer.
Definition at line 84 of file SCT_ReadCalibChipDataTestAlg.cxx.
84 {
85
86
87
88
90
92 << "[" << ctx.eventID().run_number()
93 << "." << ctx.eventID().event_number()
94 << "," << ctx.eventID().time_stamp()
95 << "]");
96
97
99
103 ATH_MSG_INFO(
"Side " << IdS <<
" on module " << IdM <<
" is " << (Sok ?
"good" :
"bad"));
104 }
105
106
108
111
112
113
114 std::string whatNPdata{"GainByChip"};
116 for (
unsigned int i{0};
i<NPdata.size();
i++) {
117 ATH_MSG_INFO(
"The " << whatNPdata <<
" for chip number " << i <<
" on side " << side <<
" is: " << NPdata[i]);
118 }
119
120
121
122 std::string whatNOdata{"OccupancyRMSByChip"};
125 for (
unsigned int i{0};
i<NOdata.size();
i++) {
126 ATH_MSG_INFO(
"The " << whatNOdata <<
" for chip number " << i <<
" on side " << side <<
" is: " << NOdata[i]);
127 }
128
129
130
134 const long unsigned int sizeOfInvalidNPData{nvNPdata.size()};
135 ATH_MSG_INFO(
"Size of returned data: " << sizeOfInvalidNPData);
136 for (
long unsigned int i{0};
i!=sizeOfInvalidNPData; ++
i) {
137 ATH_MSG_INFO(
"The " << whatNPdata <<
" for chip number " << i <<
" on side " << side <<
" is: " << nvNPdata[i]);
138 }
139 }
140 return StatusCode::SUCCESS;
141}
BooleanProperty m_doTestmyDataSummary
Identifier m_moduleId
Module identifier.
BooleanProperty m_doTestmyConditionsSummary
Identifier m_waferId
Wafer identifier.
ToolHandle< ISCT_ReadCalibChipDataTool > m_ReadCalibChipDataTool
◆ extraDeps_update_handler()
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()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
90{
91
92
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.
DataObjIDColl m_extendedExtraObjects
◆ filterPassed()
◆ finalize()
| StatusCode SCT_ReadCalibChipDataTestAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode SCT_ReadCalibChipDataTestAlg::initialize |
( |
| ) |
|
|
overridevirtual |
Gaudi initialiser.
Definition at line 28 of file SCT_ReadCalibChipDataTestAlg.cxx.
28 {
29
31
32
34
35
37
38
40
41 return StatusCode::SUCCESS;
42}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
StatusCode processProperties()
Process jobOpt properties.
const SCT_ID * m_id_sct
ID helper for SCT.
retrieve(aClass, aKey=None)
◆ inputHandles()
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()
| virtual bool SCT_ReadCalibChipDataTestAlg::isClonable |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< Gaudi::Algorithm >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
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.
◆ processProperties()
| StatusCode SCT_ReadCalibChipDataTestAlg::processProperties |
( |
| ) |
|
|
private |
Process jobOpt properties.
Definition at line 45 of file SCT_ReadCalibChipDataTestAlg.cxx.
46{
47
49
50
52 int offlineBarrelEC{*itLoop}; ++itLoop;
53 int offlineLayerDisk{*itLoop}; ++itLoop;
54 int offlineEta{*itLoop}; ++itLoop;
55 int offlinePhi{*itLoop}; ++itLoop;
56 int offlineSide{*itLoop}; ++itLoop;
57 int offlineStrip{*itLoop}; ++itLoop;
58
61 << offlineBarrelEC << "/"
62 << offlineLayerDisk << "/"
63 << offlineEta << "/"
64 << offlinePhi << "/"
65 << offlineSide << "/"
66 << offlineStrip);
67
68
69 m_moduleId =
m_id_sct->module_id(offlineBarrelEC, offlineLayerDisk, offlinePhi, offlineEta);
70 m_waferId =
m_id_sct->wafer_id(offlineBarrelEC, offlineLayerDisk, offlinePhi, offlineEta, offlineSide);
71 m_stripId =
m_id_sct->strip_id(offlineBarrelEC, offlineLayerDisk, offlinePhi, offlineEta, offlineSide, offlineStrip);
72
73
79
80 return StatusCode::SUCCESS;
81}
Identifier m_stripId
Strip identifier.
IntegerArrayProperty m_moduleOfflinePosition
◆ 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 {
384 }
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)
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
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 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
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 HypoBase, and InputMakerBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
107 {
109
110 if (
sc.isFailure()) {
112 }
113
117
118 if (
cs.retrieve().isFailure() ) {
121 }
122 if (
cs->regHandle(
this,*
h).isFailure()) {
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
130}
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
virtual StatusCode sysInitialize() override
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_doTestmyConditionsSummary
| BooleanProperty SCT_ReadCalibChipDataTestAlg::m_doTestmyConditionsSummary {this, "DoTestmyConditionsSummary", false, "Test return bool conditions summary?"} |
|
private |
◆ m_doTestmyDataSummary
| BooleanProperty SCT_ReadCalibChipDataTestAlg::m_doTestmyDataSummary {this, "DoTestmyDataSummary", false, "Test return data summary?"} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_id_sct
| const SCT_ID* SCT_ReadCalibChipDataTestAlg::m_id_sct {nullptr} |
|
private |
◆ m_moduleId
| Identifier SCT_ReadCalibChipDataTestAlg::m_moduleId |
|
private |
◆ m_moduleOfflinePosition
| IntegerArrayProperty SCT_ReadCalibChipDataTestAlg::m_moduleOfflinePosition {this, "ModuleOfflinePosition", {}, "Offline pos. as: B-EC,layer-disk,phi,eta"} |
|
private |
◆ m_ReadCalibChipDataTool
| ToolHandle<ISCT_ReadCalibChipDataTool> SCT_ReadCalibChipDataTestAlg::m_ReadCalibChipDataTool {this, "SCT_ReadCalibChipDataTool", "SCT_ReadCalibChipDataTool", "Tool to retrieve chip calibration information"} |
|
private |
Definition at line 57 of file SCT_ReadCalibChipDataTestAlg.h.
57{this, "SCT_ReadCalibChipDataTool", "SCT_ReadCalibChipDataTool", "Tool to retrieve chip calibration information"};
◆ m_stripId
| Identifier SCT_ReadCalibChipDataTestAlg::m_stripId |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_waferId
| Identifier SCT_ReadCalibChipDataTestAlg::m_waferId |
|
private |
The documentation for this class was generated from the following files: