|
ATLAS Offline Software
|
#include <MdtCalibDbAlg.h>
|
| MdtCalibDbAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~MdtCalibDbAlg ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) 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 |
|
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
const MuonGMR4::MuonDetectorManager * | m_r4detMgr {nullptr} |
|
SG::WriteCondHandleKey< MuonCalib::MdtCalibDataContainer > | m_writeKey |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyRt {this, "ReadKeyRt", "/MDT/RTBLOB", "DB folder containing the RT calibrations"} |
|
SG::ReadCondHandleKey< CondAttrListCollection > | m_readKeyTube {this, "ReadKeyTube", "/MDT/T0BLOB", "DB folder containing the tube constants"} |
|
ToolHandle< MuonCalib::IIdToFixedIdTool > | m_idToFixedIdTool {this, "IdToFixedIdTool", "MuonCalib::IdToFixedIdTool"} |
|
Gaudi::Property< double > | m_prop_beta {this, "PropagationSpeedBeta", 1., "Speed of the signal propagation"} |
|
Gaudi::Property< unsigned int > | m_maxOrder {this, "MaxOrder", 9, "Maximum order of the polynomial fit"} |
|
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 |
|
◆ RtMap
◆ RtRelationPtr
◆ StoreGateSvc_t
◆ TubeContainerPtr
◆ MdtCalibDbAlg()
MdtCalibDbAlg::MdtCalibDbAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~MdtCalibDbAlg()
virtual MuonCalibR4::MdtCalibDbAlg::~MdtCalibDbAlg |
( |
| ) |
|
|
virtualdefault |
◆ 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 MdtCalibDbAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
◆ 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 |
◆ initialize()
StatusCode MdtCalibDbAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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 MuonCalibR4::MdtCalibDbAlg::isReEntrant |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ loadRt()
Definition at line 62 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
67 if(!readHandleRt.isValid()) {
69 return StatusCode::FAILURE;
72 std::unordered_map<Identifier, RtPayload> rtCalibration{};
74 it != readHandleRt->end(); ++
it) {
77 return StatusCode::FAILURE;
81 std::vector<const MuonGMR4::MdtReadoutElement*> detEls =
m_r4detMgr->getAllMdtReadoutElements();
83 const Identifier& detElId = mdtDetEl->identify();
85 if(writeHandle.hasDataForChannel(detElId, msgStream())) {
93 auto it = rtCalibration.find(detElId);
95 if(
it == rtCalibration.end()) {
103 it = rtCalibration.find(mlID);
104 if(
it == rtCalibration.end()) {
119 std::vector<MuonCalib::SamplePoint> samplePointsRt{};
120 for(
size_t i = 0;
i <
payload.times.size(); ++
i) {
123 samplePointsRt.emplace_back(chebyShevT,
payload.radii[
i],
payload.resolutions[
i]);
129 for(
const double c :
fitter.coefficients()) {
135 std::vector<MuonCalib::SamplePoint> samplePointsTr{};
136 for(
size_t i = 0;
i <
payload.radii.size(); ++
i) {
139 samplePointsTr.emplace_back(chebyShevR,
payload.times[
i],
payload.resolutions[
i]);
143 for(
const double c :
fitter.coefficients()) {
148 auto rtRelRegion{std::make_shared<MuonCalib::RtChebyshev>(rtPars)};
149 auto rtResRegion{std::make_shared<MuonCalibR4::RtResolutionSqrt>(resolutionPars)};
150 auto trRelRegion{std::make_shared<MuonCalib::TrChebyshev>(rtRelRegion, trPars)};
151 RtRelationPtr MdtRt = std::make_unique<MuonCalib::MdtRtRelation>(std::move(rtRelRegion), std::move(rtResRegion), std::move(trRelRegion), 0.);
152 if(!writeHandle.storeData(detElId, MdtRt, msgStream())) {
154 return StatusCode::FAILURE;
157 return StatusCode::SUCCESS;
◆ loadTube()
Definition at line 160 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
163 if(!readHandleTube.isValid()) {
165 return StatusCode::FAILURE;
167 std::unordered_map<Identifier, RtTubePayload> tubeCalibration{};
169 it != readHandleTube->end(); ++
it) {
172 return StatusCode::FAILURE;
176 std::vector<const MuonGMR4::MdtReadoutElement*> detEls =
m_r4detMgr->getAllMdtReadoutElements();
178 const Identifier& chamberId = mdtDetEl->identify();
186 if(!writeCdo.
storeData(chamberId, tubes, msgStream())) {
188 return StatusCode::FAILURE;
191 for(std::size_t
tube = 1;
tube <= mdtDetEl->numTubesInLay(); ++
tube){
193 auto it = tubeCalibration.find(tubeId);
194 if(
it == tubeCalibration.end()) {
198 const RtTubePayload&
payload =
it->second;
201 tubeCalibration.inversePropSpeed = inversePropSpeed;
202 tubeCalibration.t0 =
payload.tZero;
203 tubeCalibration.adcCal =
payload.meanAdc;
204 if(!tubes->setCalib(std::move(tubeCalibration), tubeId, msgStream())) {
206 return StatusCode::FAILURE;
211 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.
◆ readRtPayload()
StatusCode MdtCalibDbAlg::readRtPayload |
( |
const coral::AttributeList & |
attributeList, |
|
|
std::unordered_map< Identifier, RtPayload > & |
rtCalibration |
|
) |
| const |
|
private |
Definition at line 214 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
216 std::string
data{}, delim{};
217 if (attributeList[
"data"].specification().
type() ==
typeid(
coral::Blob)) {
220 return StatusCode::FAILURE;
224 data = *(
static_cast<const std::string *
>((attributeList[
"data"]).addressOfData()));
230 return StatusCode::FAILURE;
235 if(tokensHeader.size()< 2){
236 ATH_MSG_FATAL(
"Failed to deduce extract number of points & calib Identifier from "<<
header);
237 return StatusCode::FAILURE;
239 const std::size_t calibId = tokensHeader[0];
240 const std::size_t numPoints = tokensHeader[1];
244 return StatusCode::FAILURE;
248 ATH_MSG_WARNING(
"The translation from the calibration ID with station: "
249 <<
id.stationNameString()<<
"("<<
id.
stationName()<<
") "
250 <<
" eta:"<<
id.
eta()<<
" phi: "<<
id.
phi());
253 RtPayload channelPayload{};
254 channelPayload.station =
m_idHelperSvc->stationNameString(athenaId);
257 channelPayload.ml =
m_idHelperSvc->mdtIdHelper().multilayer(athenaId);
258 channelPayload.layer =
m_idHelperSvc->mdtIdHelper().tubeLayer(athenaId);
259 channelPayload.tube =
m_idHelperSvc->mdtIdHelper().tube(athenaId);
260 channelPayload.appliedRT = (attributeList[
"tech"].data<
int>());
263 if (dataPoints.size() % 3 != 0) {
264 ATH_MSG_FATAL(
"Payload does not contain a multiple of 3 elements. Size: " << dataPoints.size());
265 return StatusCode::FAILURE;
269 const std::size_t expectedPoints = dataPoints.size() / 3;
270 if (expectedPoints != numPoints) {
271 ATH_MSG_FATAL(
"Number of data points (" << expectedPoints <<
") does not match numPoints in header (" << numPoints <<
").");
272 return StatusCode::FAILURE;
275 std::vector<double> radii(expectedPoints);
276 std::vector<double>
times(expectedPoints);
277 std::vector<double> resos(expectedPoints);
279 for (
size_t i = 0;
i < expectedPoints; ++
i) {
280 radii[
i] = dataPoints[
i * 3];
281 times[
i] = dataPoints[
i * 3 + 1];
282 resos[
i] = dataPoints[
i * 3 + 2];
284 channelPayload.radii = std::move(radii);
285 channelPayload.times = std::move(
times);
286 channelPayload.resolutions = std::move(resos);
288 rtCalibration[athenaId] = std::move(channelPayload);
289 return StatusCode::SUCCESS;
◆ readTubePayload()
StatusCode MdtCalibDbAlg::readTubePayload |
( |
const coral::AttributeList & |
attributeList, |
|
|
std::unordered_map< Identifier, RtTubePayload > & |
tubeCalibration |
|
) |
| const |
|
private |
Definition at line 292 of file MuonPhaseII/MuonConditions/MuonCondAlgR4/src/MdtCalibDbAlg.cxx.
296 if (attributeList[
"data"].specification().
type() ==
typeid(
coral::Blob)) {
300 return StatusCode::FAILURE;
303 data = *(
static_cast<const std::string*
>(attributeList[
"data"].addressOfData()));
308 ATH_MSG_FATAL(
"The line " <<
data <<
" cannot be resolved into header & payload");
309 return StatusCode::FAILURE;
315 std::string stName =
header.substr(2, 3);
319 if (headerTokens.size() < 6) {
321 return StatusCode::FAILURE;
328 RtTubePayload channelPayload{};
329 channelPayload.station = stName;
330 channelPayload.eta =
eta;
331 channelPayload.phi =
phi;
332 channelPayload.appliedT0 = (attributeList[
"tech"].data<
int>());
335 if (payLoadData.size() % 3 != 0) {
336 ATH_MSG_FATAL(
"Payload size is not a multiple of 3. Size: " << payLoadData.size());
337 return StatusCode::FAILURE;
340 std::size_t numPoints = payLoadData.size() / 3;
341 std::vector<double> tZeros, meanAdcs;
342 std::vector<int> statusCodes;
344 tZeros.reserve(numPoints);
345 meanAdcs.reserve(numPoints);
346 statusCodes.reserve(numPoints);
348 for (std::size_t
i = 0;
i < payLoadData.size();
i += 3) {
349 tZeros.push_back(payLoadData[
i]);
350 statusCodes.push_back(
static_cast<int>(payLoadData[
i + 1]));
351 meanAdcs.push_back(payLoadData[
i + 2]);
354 if (statusCodes.size() != tZeros.size() || statusCodes.size() != meanAdcs.size() || statusCodes.empty()) {
356 return StatusCode::FAILURE;
360 const int numMl =
m_idHelperSvc->mdtIdHelper().numberOfMultilayers(chamID);
367 for(std::size_t
i = 0;
i < tZeros.size(); ++
i){
369 RtTubePayload tubePayload = channelPayload;
371 tubePayload.layer =
layer;
372 tubePayload.tube =
tube;
373 tubePayload.tZero = tZeros[
i];
374 tubePayload.meanAdc = meanAdcs[
i];
375 tubePayload.statusCode = statusCodes[
i];
376 tubeCalibration[tubeID] = std::move(tubePayload);
377 if (++
tube > tubesPerLay) {
385 return StatusCode::SUCCESS;
◆ 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_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_idToFixedIdTool
◆ m_maxOrder
Gaudi::Property<unsigned int> MuonCalibR4::MdtCalibDbAlg::m_maxOrder {this, "MaxOrder", 9, "Maximum order of the polynomial fit"} |
|
private |
◆ m_prop_beta
Gaudi::Property<double> MuonCalibR4::MdtCalibDbAlg::m_prop_beta {this, "PropagationSpeedBeta", 1., "Speed of the signal propagation"} |
|
private |
◆ m_r4detMgr
◆ m_readKeyRt
◆ m_readKeyTube
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::string replace(std::string s, const std::string &s2, const std::string &s3)
StatusCode readTubePayload(const coral::AttributeList &attributeList, std::unordered_map< Identifier, RtTubePayload > &tubeCalibration) const
const ShapeFitter * fitter
char data[hepevt_bytes_allocation_ATLAS]
std::vector< double > tokenizeDouble(const std::string &the_str, std::string_view delimiter)
std::vector< int > tokenizeInt(const std::string &the_str, std::string_view delimiter)
bool storeData(const Identifier &mlID, CorrectionPtr corrFuncSet, MsgStream &msg)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
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)
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyTube
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
class which holds the full set of calibration constants for a given tube
StatusCode readRtPayload(const coral::AttributeList &attributeList, std::unordered_map< Identifier, RtPayload > &rtCalibration) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
StatusCode loadTube(MuonCalib::MdtCalibDataContainer &writeCdo) const
TubeContainerPtr tubeCalib
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idToFixedIdTool
AthReentrantAlgorithm()
Default constructor:
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
bool readBlobAsString(const coral::Blob &, std::string &)
const MuonGMR4::MuonDetectorManager * m_r4detMgr
::StatusCode StatusCode
StatusCode definition for legacy code.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
std::vector< double > ParVec
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyRt
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
MdtCalibDataContainer::RegionGranularity RegionGranularity
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Gaudi::Property< unsigned int > m_maxOrder
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
virtual StatusCode sysInitialize() override
Override sysInitialize.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode initialize(bool used=true)
constexpr unsigned int numLayers()
const MdtFullCalibData * getCalibData(const Identifier &measId, MsgStream &msg) const
Returns the calibration data associated with this station
Gaudi::Property< double > m_prop_beta
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
SG::WriteCondHandleKey< MuonCalib::MdtCalibDataContainer > m_writeKey
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...
MuonCalib::MdtFullCalibData::RtRelationPtr RtRelationPtr
bool hasDataForChannel(const Identifier &measId, MsgStream &msg) const
Checks whether a calibration data object is already present.
StatusCode loadRt(const EventContext &ctx, MuonCalib::MdtCalibDataContainer &writeCdo) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>