|
ATLAS Offline Software
|
#include <MdtCondDbAlg.h>
|
| MdtCondDbAlg (const std::string &name, ISvcLocator *svc) |
|
virtual | ~MdtCondDbAlg ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &) const override |
|
virtual bool | isReEntrant () const override |
|
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 |
|
|
StatusCode | loadDependencies (const EventContext &ctx, writeHandle_t &wh) const |
|
StatusCode | addDHDependency (const EventContext &ctx, const dataBaseKey_t &key, writeHandle_t &wh) const |
|
StatusCode | loadDataPsHv (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadDataPsLv (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadDataHv (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadDataLv (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadDroppedChambers (const EventContext &ctx, MdtCondDbData &dataOut, bool isMC) const |
|
StatusCode | loadMcDeadElements (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadMcDeadTubes (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
StatusCode | loadMcNoisyChannels (const EventContext &ctx, MdtCondDbData &dataOut) const |
|
Identifier | identifyChamber (std::string chamber) 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...
|
|
|
Gaudi::Property< bool > | m_isOnline {this, "isOnline", false} |
|
Gaudi::Property< bool > | m_isData {this, "isData", false} |
|
Gaudi::Property< bool > | m_isRun1 {this, "isRun1", false} |
|
Gaudi::Property< bool > | m_checkOnSetPoint {this, "useRun1SetPoints", false} |
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
SG::WriteCondHandleKey< MdtCondDbData > | m_writeKey {this, "WriteKey", "MdtCondDbData", "Key of output MDT condition data"} |
|
dataBaseKey_t | m_readKey_folder_da_pshv |
|
dataBaseKey_t | m_readKey_folder_da_psv0 |
|
dataBaseKey_t | m_readKey_folder_da_psv1 |
|
dataBaseKey_t | m_readKey_folder_da_pslv |
|
dataBaseKey_t | m_readKey_folder_da_droppedChambers |
|
dataBaseKey_t | m_readKey_folder_da_hv |
|
dataBaseKey_t | m_readKey_folder_da_lv |
|
dataBaseKey_t | m_readKey_folder_mc_droppedChambers |
|
dataBaseKey_t | m_readKey_folder_mc_deadElements |
|
dataBaseKey_t | m_readKey_folder_mc_deadTubes |
|
dataBaseKey_t | m_readKey_folder_mc_noisyChannels |
|
std::map< std::string, Identifier > | m_chamberNames {} |
|
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 |
|
Definition at line 19 of file MdtCondDbAlg.h.
◆ dataBaseKey_t
◆ StoreGateSvc_t
◆ writeHandle_t
◆ MdtCondDbAlg()
MdtCondDbAlg::MdtCondDbAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ ~MdtCondDbAlg()
virtual MdtCondDbAlg::~MdtCondDbAlg |
( |
| ) |
|
|
virtualdefault |
◆ addDHDependency()
Definition at line 74 of file MdtCondDbAlg.cxx.
77 return StatusCode::SUCCESS;
80 if (!readHandle.isValid()) {
82 return StatusCode::FAILURE;
84 wh.addDependency(readHandle);
85 return StatusCode::SUCCESS;
◆ 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.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode MdtCondDbAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 103 of file MdtCondDbAlg.cxx.
108 return StatusCode::SUCCESS;
113 if (writeHandle.isValid()) {
114 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
115 <<
" In theory this should not be called, but may happen"
116 <<
" if multiple concurrent events are being processed out of order.");
117 return StatusCode::SUCCESS;
119 std::unique_ptr<MdtCondDbData> writeCdo{std::make_unique<MdtCondDbData>(
m_idHelperSvc->mdtIdHelper())};
136 ATH_CHECK(writeHandle.record(std::move(writeCdo)));
137 ATH_MSG_DEBUG(
"Recorded new " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
139 return StatusCode::SUCCESS;
◆ 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()
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.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ identifyChamber()
Identifier MdtCondDbAlg::identifyChamber |
( |
std::string |
chamber | ) |
const |
|
private |
◆ initialize()
StatusCode MdtCondDbAlg::initialize |
( |
| ) |
|
|
overridevirtual |
m_readKey_folder_mc_deadElements.empty() && !m_isData
m_readKey_folder_mc_deadTubes.empty() && !m_isData
Definition at line 22 of file MdtCondDbAlg.cxx.
45 std::string MuonVersion = geoModel->muonVersionOverride();
46 std::string detectorKey = MuonVersion.empty() ?
AtlasVersion : MuonVersion;
47 std::string detectorNode = MuonVersion.empty() ?
"ATLAS" :
"MuonSpectrometer";
52 IRDBRecordset_ptr switchSet = accessSvc->getRecordsetPtr(
"HwSwIdMapping", detectorKey, detectorNode);
54 if ((*switchSet).size() == 0) {
56 switchSet = accessSvc->getRecordsetPtr(
"HwSwIdMapping",
"HwSwIdMapping-00");
59 for (
unsigned int irow = 0; irow < (*switchSet).size(); ++irow) {
60 const IRDBRecord* switches = (*switchSet)[irow];
61 std::string hardwareName = switches->
getString(
"HARDNAME");
62 std::string stName = switches->
getString(
"SOFTNAME");
63 int stPhi = switches->
getInt(
"SOFTOCTANT");
64 int stEta = switches->
getInt(
"SOFTIZ");
72 return StatusCode::SUCCESS;
◆ 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()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ isReEntrant()
virtual bool MdtCondDbAlg::isReEntrant |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ loadDataHv()
StatusCode MdtCondDbAlg::loadDataHv |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 304 of file MdtCondDbAlg.cxx.
307 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readCdo.fullKey() <<
" readCdo->size()= " << readCdo->size());
308 for (
const auto& [
chanNum, atr] : **readCdo) {
309 if (!atr.size()) {
continue; }
311 const std::string& hv_payload = readCdo->chanName(
chanNum);
312 const std::string& hv_name_ml1{*(
static_cast<const std::string*
>((atr[
"fsmCurrentState_ML1"]).addressOfData()))};
313 const std::string& hv_name_ml2{*(
static_cast<const std::string*
>((atr[
"fsmCurrentState_ML2"]).addressOfData()))};
314 const float hv_v0_ml1{*(
static_cast<const float*
>((atr[
"v0set_ML1"]).addressOfData()))};
315 const float hv_v1_ml1{*(
static_cast<const float*
>((atr[
"v1set_ML1"]).addressOfData()))};
316 const float hv_v0_ml2{*(
static_cast<const float*
>((atr[
"v0set_ML2"]).addressOfData()))};
317 const float hv_v1_ml2{*(
static_cast<const float*
>((atr[
"v1set_ML2"]).addressOfData()))};
320 if (!chamberId.is_valid())
continue;
322 const float standbyVolt,
323 const float readyVolt,
326 if (
multiLayer > idHelper.numberOfMultilayers(chamberId))
return;
328 constexpr std::array<DcsFsmState, 3> goodStates{DcsFsmState::ON, DcsFsmState::STANDBY,
DcsFsmState::UNKNOWN};
329 if ( (
std::find(goodStates.begin(), goodStates.end(), dcsState) == goodStates.end()) ||
330 (dcsState != DcsFsmState::ON && readyVolt != standbyVolt)) {
331 writeCdo.setDeadMultilayer(mlId);
333 writeCdo.setHvState(mlId, dcsState, standbyVolt, readyVolt);
338 return StatusCode::SUCCESS;
◆ loadDataLv()
StatusCode MdtCondDbAlg::loadDataLv |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 342 of file MdtCondDbAlg.cxx.
347 return StatusCode::FAILURE;
349 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
351 for (
const auto& [
chanNum, atr] : *readCdo) {
352 if (!atr.size()) {
continue; }
353 const std::string& lv_payload = readCdo->chanName(
chanNum);
354 const std::string& lv_name{*
static_cast<const std::string*
>((atr[
"fsmCurrentState_LV"]).addressOfData())};
355 if (lv_payload.empty() || lv_name.empty()){
356 ATH_MSG_WARNING(
"The read data with chanNum "<<
chanNum<<
", lv_payload: "<<lv_payload<<
", hv_name: "<<lv_name
357 <<
". Does not have any fsmCurrentState_LV attribute. "
358 <<
"May be this is related to ATLASRECTS-6920 / ATLASRECTS-6879. Skip it");
366 writeCdo.setDeadChamber(ChamberId);
370 return StatusCode::SUCCESS;
◆ loadDataPsHv()
StatusCode MdtCondDbAlg::loadDataPsHv |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 143 of file MdtCondDbAlg.cxx.
148 return StatusCode::FAILURE;
151 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
153 std::vector<Identifier> cachedDeadMultiLayersId_standby;
155 const unsigned int chanNum = itr.first;
157 const std::string& hv_payload = readCdo->chanName(
chanNum);
160 if (atr.size() == 1) {
161 hv_name = *(
static_cast<const std::string*
>((atr[
"fsm_currentState"]).addressOfData()));
164 auto tokens2 =
tokenize(hv_payload,
"_");
167 int multilayer =
atoi(tokens2[3]);
170 if (ChamberId.is_valid()) {
172 writeCdo.setDeadMultilayer(MultiLayerId);
173 writeCdo.setDeadChamber(ChamberId);
174 cachedDeadMultiLayersId_standby.push_back(MultiLayerId);
177 if (
tokens[0] ==
"STANDBY") {
178 int multilayer =
atoi(tokens2[3]);
181 if (ChamberId.is_valid()) {
183 writeCdo.setDeadMultilayer(MultiLayerId);
184 writeCdo.setDeadChamber(ChamberId);
185 cachedDeadMultiLayersId_standby.push_back(MultiLayerId);
194 std::map<Identifier, float> chamberML_V1;
195 std::map<Identifier, float> chamberML_V0;
202 return StatusCode::FAILURE;
205 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle_v0.fullKey() <<
" readCdo->size()= " << readCdo_v0->size());
212 return StatusCode::FAILURE;
215 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle_v1.fullKey() <<
" readCdo->size()= " << readCdo_v1->size());
219 const unsigned int chanNum = itr_v0.first;
221 const std::string& setPointsV0_payload = readCdo_v0->chanName(
chanNum);
222 float setPointsV0_name{0.};
224 if (atr_v0.size() == 1) {
225 setPointsV0_name = *(
static_cast<const float*
>((atr_v0[
"readBackSettings_v0"]).addressOfData()));
227 auto tokens2 =
tokenize(setPointsV0_payload,
"_");
229 int multilayer =
atoi(tokens2[3]);
233 chamberML_V0[MultiLayerId] = setPointsV0_name;
240 const unsigned int chanNum = itr_v1.first;
242 const std::string& setPointsV1_payload = readCdo_v1->chanName(
chanNum);
243 float setPointsV1_name{0.};
245 if (atr_v1.size() == 1) {
246 setPointsV1_name = *(
static_cast<const float*
>((atr_v1[
"readBackSettings_v1"]).addressOfData()));
249 auto tokens2=
tokenize(setPointsV1_payload,
"_");
251 int multilayer =
atoi(tokens2[3]);
255 chamberML_V1[MultiLayerId] = setPointsV1_name;
261 for (
const Identifier& MultilayerId_ch : cachedDeadMultiLayersId_standby) {
262 if (chamberML_V1.find(MultilayerId_ch)->second == chamberML_V0.find(MultilayerId_ch)->second) {
263 ATH_MSG_DEBUG(
"Chamber has correct Voltage V1 = " << chamberML_V1.find(MultilayerId_ch)->second
264 <<
" V0= " << chamberML_V0.find(MultilayerId_ch)->second);
266 ATH_MSG_DEBUG(
"Chamber has wrong correct Voltage V1 = " << chamberML_V1.find(MultilayerId_ch)->second
267 <<
" V0= " << chamberML_V0.find(MultilayerId_ch)->second);
269 writeCdo.setDeadMultilayer(MultilayerId_ch);
273 return StatusCode::SUCCESS;
◆ loadDataPsLv()
StatusCode MdtCondDbAlg::loadDataPsLv |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 277 of file MdtCondDbAlg.cxx.
282 return StatusCode::FAILURE;
284 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
285 for (
const auto& [
chanNum, atr] : *readCdo) {
286 const std::string& hv_payload = readCdo->chanName(
chanNum);
289 if (!atr.size()) {
continue; }
290 hv_name = *(
static_cast<const std::string*
>((atr[
"fsm_currentState"]).addressOfData()));
293 auto tokens2 =
tokenize(hv_payload,
"_");
297 if (ChamberId.is_valid()) { writeCdo.setDeadChamber(ChamberId); }
301 return StatusCode::SUCCESS;
◆ loadDependencies()
StatusCode MdtCondDbAlg::loadDependencies |
( |
const EventContext & |
ctx, |
|
|
writeHandle_t & |
wh |
|
) |
| const |
|
private |
◆ loadDroppedChambers()
StatusCode MdtCondDbAlg::loadDroppedChambers |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut, |
|
|
bool |
isMC |
|
) |
| const |
|
private |
Definition at line 374 of file MdtCondDbAlg.cxx.
380 return StatusCode::FAILURE;
382 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
386 const std::string& chamber_dropped{*(
static_cast<const std::string*
>((atr[
"Chambers_disabled"]).addressOfData()))};
389 for (
auto & token :
tokens) {
393 if (ChamberId.is_valid()) { writeCdo.setDeadChamber(ChamberId); }
397 return StatusCode::SUCCESS;
◆ loadMcDeadElements()
StatusCode MdtCondDbAlg::loadMcDeadElements |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 401 of file MdtCondDbAlg.cxx.
406 return StatusCode::FAILURE;
409 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
413 const std::string&
chamber_name{*(
static_cast<const std::string*
>((atr[
"Chambers_Name"]).addressOfData()))};
414 const std::string& list_mlayer{*(
static_cast<const std::string*
>((atr[
"Dead_multilayer"]).addressOfData()))};
415 const std::string& list_layer{*(
static_cast<const std::string*
>((atr[
"Dead_layer"]).addressOfData()))};
416 const std::string& list_tube{*(
static_cast<const std::string*
>((atr[
"Dead_tube"]).addressOfData()))};
420 auto tokens_mlayer =
tokenize(list_mlayer,
" ");
421 auto tokens_layer =
tokenize(list_layer,
" ");
423 for (
auto & token :
tokens) {
426 int ml =
atoi(token.substr(0, 1));
430 writeCdo.setDeadTube(ChannelId);
431 writeCdo.setDeadChamber(ChamberId);
435 for (
unsigned int i = 0;
i < tokens_mlayer.size();
i++) {
436 if (tokens_mlayer[
i] !=
"0") {
437 int ml =
atoi(tokens_mlayer[
i].substr(0));
439 writeCdo.setDeadMultilayer(ChannelId);
440 writeCdo.setDeadChamber(ChamberId);
444 for (
unsigned int i = 0;
i < tokens_layer.size();
i++) {
445 if (tokens_layer[
i] !=
"0") {
446 int ml =
atoi(tokens_layer[
i].substr(0, 1));
449 writeCdo.setDeadLayer(ChannelId);
450 writeCdo.setDeadChamber(ChamberId);
455 return StatusCode::SUCCESS;
◆ loadMcDeadTubes()
StatusCode MdtCondDbAlg::loadMcDeadTubes |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 459 of file MdtCondDbAlg.cxx.
464 return StatusCode::FAILURE;
467 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
472 std::string dead_tube = *(
static_cast<const std::string*
>((atr[
"DeadTube_List"]).addressOfData()));
473 std::string
chamber_name = *(
static_cast<const std::string*
>((atr[
"Chamber_Name"]).addressOfData()));
478 for (
auto & token :
tokens) {
479 int ml =
atoi(token.substr(0, 1));
483 writeCdo.setDeadTube(ChannelId);
485 writeCdo.setDeadChamber(ChamberId);
488 return StatusCode::SUCCESS;
◆ loadMcNoisyChannels()
StatusCode MdtCondDbAlg::loadMcNoisyChannels |
( |
const EventContext & |
ctx, |
|
|
MdtCondDbData & |
dataOut |
|
) |
| const |
|
private |
Definition at line 492 of file MdtCondDbAlg.cxx.
497 return StatusCode::FAILURE;
500 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() <<
" readCdo->size()= " << readCdo->size());
501 for (
const auto &[
chanNum, atr] : *readCdo) {
505 const std::string& hv_payload = readCdo->chanName(
chanNum);
506 const std::string& hv_name{*(
static_cast<const std::string*
>((atr[
"fsm_currentState"]).addressOfData()))};
510 auto tokens2 =
tokenize(hv_payload,
"_");
514 writeCdo.setDeadChamber(ChamberId);
518 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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.
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ 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.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ 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.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ 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()
◆ m_chamberNames
std::map<std::string, Identifier> MdtCondDbAlg::m_chamberNames {} |
|
private |
◆ m_checkOnSetPoint
Gaudi::Property<bool> MdtCondDbAlg::m_checkOnSetPoint {this, "useRun1SetPoints", false} |
|
private |
◆ m_detStore
◆ m_evtStore
◆ 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_idHelperSvc
◆ m_isData
Gaudi::Property<bool> MdtCondDbAlg::m_isData {this, "isData", false} |
|
private |
◆ m_isOnline
Gaudi::Property<bool> MdtCondDbAlg::m_isOnline {this, "isOnline", false} |
|
private |
◆ m_isRun1
Gaudi::Property<bool> MdtCondDbAlg::m_isRun1 {this, "isRun1", false} |
|
private |
◆ m_readKey_folder_da_droppedChambers
Initial value:{
this, "ReadKey_DataR1_DC", "/MDT/DCS/DROPPEDCH", "Key of input MDT condition data for Run 1 data dropped chambers"}
Definition at line 60 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_hv
Initial value:{this, "ReadKey_DataR2_HV", "/MDT/DCS/HV",
"Key of input MDT condition data for Run 2 data HV"}
Definition at line 62 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_lv
Initial value:{this, "ReadKey_DataR2_LV", "/MDT/DCS/LV",
"Key of input MDT condition data for Run 2 data LV"}
Definition at line 64 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_pshv
Initial value:{this, "ReadKey_DataR1_HV", "/MDT/DCS/PSHVMLSTATE",
"Key of input MDT condition data for Run 1 data HV"}
Definition at line 52 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_pslv
Initial value:{this, "ReadKey_DataR1_LV", "/MDT/DCS/PSLVCHSTATE",
"Key of input MDT condition data for Run 1 data LV"}
Definition at line 58 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_psv0
Initial value:{this, "ReadKey_DataR1_V0", "/MDT/DCS/PSV0SETPOINTS",
"Key of input MDT condition data for Run 1 data V0"}
Definition at line 54 of file MdtCondDbAlg.h.
◆ m_readKey_folder_da_psv1
Initial value:{this, "ReadKey_DataR1_V1", "/MDT/DCS/PSV1SETPOINTS",
"Key of input MDT condition data for Run 1 data V1"}
Definition at line 56 of file MdtCondDbAlg.h.
◆ m_readKey_folder_mc_deadElements
Initial value:{this, "ReadKey_MC_DE", "/MDT/DQMF/DEAD_ELEMENT",
"Key of input MDT condition data for MC dead elements"}
Definition at line 68 of file MdtCondDbAlg.h.
◆ m_readKey_folder_mc_deadTubes
Initial value:{this, "ReadKey_MC_DT", "/MDT/TUBE_STATUS/DEAD_TUBE",
"Key of input MDT condition data for MC dead tubes"}
Definition at line 70 of file MdtCondDbAlg.h.
◆ m_readKey_folder_mc_droppedChambers
Initial value:{
this, "ReadKey_MC_DC", "/MDT/DCS/DROPPEDCH", "Key of input MDT condition data for MC dropped chambers"}
Definition at line 66 of file MdtCondDbAlg.h.
◆ m_readKey_folder_mc_noisyChannels
Initial value:{
this, "ReadKey_MC_NC", "/MDT/DCS/PSLVCHSTATE", "Key of input MDT condition data for MC noisy channels"}
Definition at line 72 of file MdtCondDbAlg.h.
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
The documentation for this class was generated from the following files:
virtual int getInt(const std::string &fieldName) const =0
Get int field value.
CondAttrListCollection::ChanAttrListPair readOutPair
std::string find(const std::string &s)
return a remapped string
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
dataBaseKey_t m_readKey_folder_da_droppedChambers
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
Identifier identifyChamber(std::string chamber) const
StatusCode loadDataLv(const EventContext &ctx, MdtCondDbData &dataOut) const
#define ATH_MSG_VERBOSE(x)
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
bool empty() const
Test if the key is blank.
StatusCode loadMcNoisyChannels(const EventContext &ctx, MdtCondDbData &dataOut) const
This class is a collection of AttributeLists where each one is associated with a channel number....
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Property< bool > m_isData
StatusCode addDHDependency(const EventContext &ctx, const dataBaseKey_t &key, writeHandle_t &wh) const
dataBaseKey_t m_readKey_folder_mc_deadTubes
dataBaseKey_t m_readKey_folder_mc_deadElements
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Gaudi::Property< bool > m_checkOnSetPoint
dataBaseKey_t m_readKey_folder_da_pshv
dataBaseKey_t m_readKey_folder_da_psv0
::StatusCode StatusCode
StatusCode definition for legacy code.
dataBaseKey_t m_readKey_folder_da_pslv
StatusCode loadDataPsLv(const EventContext &ctx, MdtCondDbData &dataOut) const
StatusCode loadDroppedChambers(const EventContext &ctx, MdtCondDbData &dataOut, bool isMC) const
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode loadDependencies(const EventContext &ctx, writeHandle_t &wh) const
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Gaudi::Property< bool > m_isOnline
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
dataBaseKey_t m_readKey_folder_da_hv
SG::WriteCondHandleKey< MdtCondDbData > m_writeKey
StatusCode loadDataPsHv(const EventContext &ctx, MdtCondDbData &dataOut) const
dataBaseKey_t m_readKey_folder_mc_droppedChambers
virtual StatusCode sysInitialize() override
Override sysInitialize.
StatusCode initialize(bool used=true)
dataBaseKey_t m_readKey_folder_da_lv
StatusCode loadDataHv(const EventContext &ctx, MdtCondDbData &dataOut) const
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
IRDBRecord is one record in the IRDBRecordset object.
DcsFsmState getFsmStateEnum(const std::string &fsmState)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
dataBaseKey_t m_readKey_folder_mc_noisyChannels
std::map< std::string, Identifier > m_chamberNames
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
dataBaseKey_t m_readKey_folder_da_psv1
Gaudi::Property< bool > m_isRun1