ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MuonAlignmentErrorDbAlg Class Reference

MuonAlignmentErrorDbAlg reads raw condition data and writes derived condition data (MuonAlignmentErrorData) to the condition store. More...

#include <MuonAlignmentErrorDbAlg.h>

Inheritance diagram for MuonAlignmentErrorDbAlg:
Collaboration diagram for MuonAlignmentErrorDbAlg:

Public Member Functions

 MuonAlignmentErrorDbAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~MuonAlignmentErrorDbAlg () override=default
 
StatusCode initialize () override
 
StatusCode execute (const EventContext &ctx) const override
 
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
 

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

std::tuple< std::string, EventIDRange > getDbClobContent (const EventContext &ctx) const
 
std::tuple< std::string, EventIDRange > getFileClobContent () const
 
std::string hardwareName (MuonCalib::MuonFixedLongId calibId) const
 
std::string_view side (MuonCalib::MuonFixedLongId calibId) const
 
std::string sectorString (MuonCalib::MuonFixedLongId calibId) const
 
int sector (MuonCalib::MuonFixedLongId calibId) const
 
int hardwareEta (MuonCalib::MuonFixedLongId calibId) const
 
bool isSmallSector (MuonCalib::MuonFixedLongId calibId) const
 
void generateMap (const auto &helper_obj, const auto &idTool, MuonAlignmentErrorData::MuonAlignmentErrorRuleCache &adev_new, std::vector< MuonAlignmentErrorData::MuonAlignmentErrorRule > &devVec) 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

SG::ReadCondHandleKey< CondAttrListCollectionm_readKey
 
SG::WriteCondHandleKey< MuonAlignmentErrorDatam_writeKey
 
Gaudi::Property< std::string > m_clobFileOverride
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
ToolHandle< MuonCalib::IIdToFixedIdToolm_idTool {this, "idTool", "MuonCalib::IdToFixedIdTool"}
 
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
 

Detailed Description

MuonAlignmentErrorDbAlg reads raw condition data and writes derived condition data (MuonAlignmentErrorData) to the condition store.

Definition at line 23 of file MuonAlignmentErrorDbAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonAlignmentErrorDbAlg()

MuonAlignmentErrorDbAlg::MuonAlignmentErrorDbAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 11 of file MuonAlignmentErrorDbAlg.cxx.

11  :
12  AthReentrantAlgorithm(name, pSvcLocator) {}

◆ ~MuonAlignmentErrorDbAlg()

MuonAlignmentErrorDbAlg::~MuonAlignmentErrorDbAlg ( )
overridedefault

Member Function Documentation

◆ 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.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

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

◆ execute()

StatusCode MuonAlignmentErrorDbAlg::execute ( const EventContext &  ctx) const
override

Definition at line 23 of file MuonAlignmentErrorDbAlg.cxx.

23  {
24  ATH_MSG_DEBUG("execute " << name());
25 
26  // Write Cond Handle
27 
29  if (writeHandle.isValid()) {
30  ATH_MSG_DEBUG("CondHandle " << writeHandle.fullKey() << " is already valid."
31  << ". In theory this should not be called, but may happen"
32  << " if multiple concurrent events are being processed out of order.");
33  return StatusCode::SUCCESS;
34  }
35  std::unique_ptr<MuonAlignmentErrorData> writeCdo{std::make_unique<MuonAlignmentErrorData>()};
36 
37  std::string clobContent;
38  EventIDRange rangeW;
39  std::tie(clobContent, rangeW) = m_clobFileOverride.value().empty() ? getDbClobContent(ctx) : getFileClobContent();
40 
41  if (clobContent.empty()) {
42  ATH_MSG_ERROR("Cannot retrieve alignment error CLOB");
43  return StatusCode::FAILURE;
44  }
45 
46  std::istringstream indata(clobContent);
47  if (!indata) {
48  ATH_MSG_ERROR("Alignment error configuration invalid");
49  return StatusCode::FAILURE;
50  }
51 
52  ATH_MSG_DEBUG("***********************************");
53  ATH_MSG_DEBUG("PARSING LIST OF DEVIATIONS...");
54 
55  std::string line;
56  std::vector<MuonAlignmentErrorData::MuonAlignmentErrorRule> MuonAlignmentErrorRuleVec;
58  while (getline(indata, line)) {
59  // READING COMMENTS
60  if (line.compare(0, 1,"#") == 0) {
61  // ATH_MSG_DEBUG("Reading a commented line saying " << line);
62  continue;
63  }
64 
65  // READING FROM INPUT FILE: //
66  std::string flag("");
67  std::string name_sstring("");
68  std::string multilayer_sstring("");
69  double translation(0.);
70  double rotation(0.);
71 
72  // GET INPUT FILE VERSION
73  if (line.compare(0, 7, "version") == 0) {
74  std::string clobVersion;
75  std::istringstream(line) >> flag >> clobVersion;
76  ATH_MSG_INFO("*****************************************");
77  ATH_MSG_INFO("Input file version " << clobVersion);
78  ATH_MSG_INFO("*****************************************");
79  writeCdo->setClobVersion(std::move(clobVersion));
80  continue;
81  }
82 
83  // get the flag has_nsw_hits
84  if (line.compare(0, 12, "has_nsw_hits") == 0) {
85  bool hasNswHits{false};
86  std::istringstream(line) >> flag >> hasNswHits;
87  writeCdo->setHasNswHits(hasNswHits);
88  continue;
89  }
90 
91  // A FLAG CHARACTERIZING THE TYPE OF ERROR
92  // A REGULAR EXPRESSION FOR THE STATION NAME (EX: BIL.*) //
93  // TWO DOUBLES FOR THE TRANSLATION AND ROTATION DEVIATIONS //
94  if (std::istringstream(line) >> flag >> name_sstring >> multilayer_sstring >> translation >> rotation) {
95  ATH_MSG_DEBUG(flag << " " << name_sstring << " " << multilayer_sstring << " " << translation << " " << rotation);
96 
97  // SAVING THE STATION DEVIATIONS IN THE STRUCT //
98  aDev.stationName = name_sstring;
99  aDev.multilayer = multilayer_sstring;
100  aDev.translation = translation;
101  aDev.rotation = rotation;
102 
103  // FILLING THE VECTOR OF STRUCT CONTAINING THE STATION DEVIATIONS //
104  MuonAlignmentErrorRuleVec.emplace_back(std::move(aDev));
105 
106  } // check stream is not at the end
107 
108  } // end of loop on input file lines
109 
110  std::vector<MuonAlignmentErrorData::MuonAlignmentErrorRuleCache> MuonAlignmentErrorRuleCacheVec;
112 
113  // Check the presence of detector elements in current reco and generate multimap to deviationVec
114  if (writeCdo->hasNswHits() == 1){
115  ATH_MSG_DEBUG("CLOB HAS NSW errors");
116  if(m_idHelperSvc->hasSTGC()){
117  ATH_MSG_DEBUG("HAS STGC");
118  generateMap(m_idHelperSvc->stgcIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
119  }
120  if(m_idHelperSvc->hasMM()){
121  ATH_MSG_DEBUG("HAS MM");
122  generateMap(m_idHelperSvc->mmIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
123  }
124  }
125  if (m_idHelperSvc->hasMDT()){
126  ATH_MSG_DEBUG("HAS MDT");
127  generateMap(m_idHelperSvc->mdtIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
128  }
129  if (m_idHelperSvc->hasRPC()){
130  ATH_MSG_DEBUG("HAS RPC");
131  generateMap(m_idHelperSvc->rpcIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
132  }
133  if (m_idHelperSvc->hasTGC()){
134  ATH_MSG_DEBUG("HAS TGC");
135  generateMap(m_idHelperSvc->tgcIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
136  }
137  if (m_idHelperSvc->hasCSC()){
138  ATH_MSG_DEBUG("HAS CSC");
139  generateMap(m_idHelperSvc->cscIdHelper(), m_idTool, aDev_cache, MuonAlignmentErrorRuleVec);
140  }
141 
142  MuonAlignmentErrorRuleCacheVec.emplace_back(std::move(aDev_cache));
143  if (MuonAlignmentErrorRuleVec.empty()) {
144  ATH_MSG_WARNING("Could not read any alignment error configuration");
145  return StatusCode::FAILURE;
146  }
147 
148  writeCdo->setAlignmentErrorRules(std::move(MuonAlignmentErrorRuleVec));
149  writeCdo->setMuonAlignmentErrorRuleCache(std::move(MuonAlignmentErrorRuleCacheVec));
150 
151  if (writeHandle.record(rangeW, std::move(writeCdo)).isFailure()) {
152  ATH_MSG_FATAL("Could not record MuonAlignmentErrorData " << writeHandle.key() << " with EventRange " << rangeW
153  << " into Conditions Store");
154  return StatusCode::FAILURE;
155  }
156  ATH_MSG_INFO("recorded new " << writeHandle.key() << " with range " << rangeW << " into Conditions Store");
157 
158  return StatusCode::SUCCESS;
159 }

◆ extraDeps_update_handler()

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

◆ 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.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ generateMap()

void MuonAlignmentErrorDbAlg::generateMap ( const auto &  helper_obj,
const auto &  idTool,
MuonAlignmentErrorData::MuonAlignmentErrorRuleCache adev_new,
std::vector< MuonAlignmentErrorData::MuonAlignmentErrorRule > &  devVec 
) const
inlineprivate

Definition at line 161 of file MuonAlignmentErrorDbAlg.cxx.

163  {
164 
165  for(auto itr = helper_obj.detectorElement_begin(); itr!= helper_obj.detectorElement_end(); ++itr){
166  // GATHERING INFORMATION TO PUT TOGETHER THE STATION NAME //
167  MuonCalib::MuonFixedLongId calibId = idTool->idToFixedLongId(*itr);
168  if (!calibId.isValid()) continue;
169  int multilayer = 1;
170  if (calibId.is_mdt()) {
171  multilayer = calibId.mdtMultilayer();
172  } else if (calibId.is_mmg()) {
173  multilayer = calibId.mmgMultilayer();
174  } else if (calibId.is_stg()) {
175  multilayer = calibId.stgMultilayer();
176  }
177  std::string multilayerName = std::to_string(multilayer);
178  std::string alignStationName = hardwareName(calibId);
180  // try to regexp-match the station name and the multilayer name then fill multimap
181  for (auto& iDev : devVec){
182  if (!boost::regex_match(alignStationName, iDev.stationName)) {
183  ++i;
184  continue;
185  }
186  if (!boost::regex_match(multilayerName, iDev.multilayer)) {
187  ++i;
188  continue;
189  }
190  adev_new.id_rule_map.insert({*itr, i});
191  ++i;
192  }
193  }
194 }

◆ getDbClobContent()

std::tuple< std::string, EventIDRange > MuonAlignmentErrorDbAlg::getDbClobContent ( const EventContext &  ctx) const
private

Definition at line 196 of file MuonAlignmentErrorDbAlg.cxx.

196  {
197  // Read Cond Handle
199  const CondAttrListCollection* readCdo{*readHandle};
200  // const CondAttrListCollection* atrc(0);
201  // readCdo = *readHandle;
202  if (readCdo == nullptr) {
203  ATH_MSG_ERROR("Null pointer to the read conditions object");
204  return std::make_tuple(std::string(), EventIDRange());
205  }
206 
207  EventIDRange rangeW;
208  if (!readHandle.range(rangeW)) {
209  ATH_MSG_ERROR("Failed to retrieve validity range for " << readHandle.key());
210  return std::make_tuple(std::string(), EventIDRange());
211  }
212 
213  ATH_MSG_INFO("Size of CondAttrListCollection " << readHandle.fullKey() << " readCdo->size()= " << readCdo->size());
214  ATH_MSG_INFO("Range of input is " << rangeW);
215 
216  // like MuonAlignmentErrorDbTool::loadAlignmentError() after retrieving atrc (readCdo)
217 
218  std::string clobContent, dbClobVersion;
220  for (itr = readCdo->begin(); itr != readCdo->end(); ++itr) {
221  const coral::AttributeList& atr = itr->second;
222  clobContent = *(static_cast<const std::string*>((atr["syserrors"]).addressOfData()));
223  dbClobVersion = *(static_cast<const std::string*>((atr["version"]).addressOfData()));
224  }
225  return std::make_tuple(std::move(clobContent), rangeW);
226 }

◆ getFileClobContent()

std::tuple< std::string, EventIDRange > MuonAlignmentErrorDbAlg::getFileClobContent ( ) const
private

Definition at line 228 of file MuonAlignmentErrorDbAlg.cxx.

228  {
229  ATH_MSG_INFO("Retrieving alignment error CLOB from file override " << m_clobFileOverride.value());
230 
231  std::ifstream in(m_clobFileOverride.value());
232  if (!in) {
233  ATH_MSG_ERROR("Failed to read CLOB file " << m_clobFileOverride.value());
234  return std::make_tuple(std::string(), EventIDRange());
235  }
236  return std::make_tuple(std::string(std::istreambuf_iterator<char>(in), {}), IOVInfiniteRange::infiniteTime());
237 }

◆ hardwareEta()

int MuonAlignmentErrorDbAlg::hardwareEta ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 302 of file MuonAlignmentErrorDbAlg.cxx.

302  {
303  using StationName = MuonCalib::MuonFixedLongId::StationName;
304  switch (calibId.stationName()) {
305  case StationName::BML:
306  {
307  if (sector(calibId)==13) {
308  switch (calibId.eta()) {
309  case 4: return 5;
310  case 5: return 6;
311  case 6: return 7;
312  case -4: return -5;
313  case -5: return -6;
314  case -6: return -7;
315  }
316  }
317  return calibId.eta();
318  }
319  case StationName::BOL:
320  {
321  // In sector 13, the BOE chambers are coded as BOL, with eta=7
322  if (sector(calibId)==13) {
323  if (calibId.eta()== 7) return 1; // BOE1A13 not BOL7A13
324  if (calibId.eta()==-7) return -1; // BOE1C13 not BOL7C13
325  }
326  return calibId.eta();
327  }
328  case StationName::BOF:
329  // In sectors 12 and 14 BOF1, BOF3, BOF5 are coded with eta=1,2,3
330  return calibId.eta()>0 ? calibId.eta()*2-1 : calibId.eta()*2+1;
331  case StationName::BOG:
332  // In sectors 12 and 14, BOG2, BOG4, BOG6 are coded with eta=1,2,3
333  return calibId.eta()*2;
334  case StationName::EIL:
335  {
336  if ((sector(calibId) == 1) || (sector(calibId) == 9)) {
337  switch (calibId.eta()) {
338  // In sectors 1 and 9 the small chamber is called EIL5, although it comes inward wrt EIL4, so athena indices need to be swapped
339  case 4: return 5;
340  case 5: return 4;
341  case -4: return -5;
342  case -5: return -4;
343  }
344  }
345  return calibId.eta();
346  }
347  case StationName::EEL:
348  {
349  // In sector 5, special EEL chamber called EEL2X05, while athena eta = 1
350  if ((sector(calibId) == 5) && (calibId.eta() == 1)) return 2;
351  if ((sector(calibId) == 5) && (calibId.eta() == -1)) return -2;
352  return calibId.eta();
353  }
354  default: return calibId.eta();
355  }
356 }

◆ hardwareName()

std::string MuonAlignmentErrorDbAlg::hardwareName ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 242 of file MuonAlignmentErrorDbAlg.cxx.

242  {
243  using StationName = MuonCalib::MuonFixedLongId::StationName;
244 
245  // The only exception that cannot be caught by hardwareEta() above
246  if (sector(calibId)==13) {
247  if (calibId.eta()== 7 && calibId.stationName()==StationName::BOL) return "BOE1A13"; // BOE1A13 not BOL7A13
248  if (calibId.eta()==-7 && calibId.stationName()==StationName::BOL) return "BOE1C13"; // BOE1C13 not BOL7C13
249  if (calibId.eta()== 8 && calibId.stationName()==StationName::BOL) return "BOE2A13"; // BOE2A13 not BOL8A13
250  if (calibId.eta()==-8 && calibId.stationName()==StationName::BOL) return "BOE2C13"; // BOE2C13 not BOL8C13
251  }
252 
253  std::string ret = std::format("{}{}{}{}", calibId.stationNameString(), std::abs(hardwareEta(calibId)), side(calibId), sectorString(calibId) );
254  return ret;
255 }

◆ initialize()

StatusCode MuonAlignmentErrorDbAlg::initialize ( )
override

Definition at line 14 of file MuonAlignmentErrorDbAlg.cxx.

14  {
15  ATH_MSG_DEBUG("initialize " << name());
18  ATH_CHECK(m_idHelperSvc.retrieve());
19  ATH_CHECK(m_idTool.retrieve());
20  return StatusCode::SUCCESS;
21 }

◆ inputHandles()

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

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ isReEntrant()

bool MuonAlignmentErrorDbAlg::isReEntrant ( ) const
inlineoverride

Definition at line 32 of file MuonAlignmentErrorDbAlg.h.

32 { return false; }

◆ isSmallSector()

bool MuonAlignmentErrorDbAlg::isSmallSector ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 278 of file MuonAlignmentErrorDbAlg.cxx.

278  {
279  using StationName = MuonCalib::MuonFixedLongId::StationName;
280  switch (calibId.stationName()) {
281  case StationName::BIS:
282  case StationName::BMS:
283  case StationName::BOS:
284  case StationName::BEE:
285  case StationName::BMF:
286  case StationName::BOF:
287  case StationName::BOG:
288  case StationName::EES:
289  case StationName::EMS:
290  case StationName::EOS:
291  case StationName::EIS:
292  case StationName::CSS:
293  case StationName::BMG:
294  case StationName::MMS:
295  case StationName::STS:
296  return true;
297  default:
298  return false;
299  }
300 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

◆ 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  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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  }

◆ sector()

int MuonAlignmentErrorDbAlg::sector ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 269 of file MuonAlignmentErrorDbAlg.cxx.

269  {
270  if (calibId.is_tgc()) {
271  // TGC sector convention is special
272  return calibId.phi();
273  } else {
274  return isSmallSector(calibId) ? 2*calibId.phi() : 2*calibId.phi()-1;
275  }
276 }

◆ sectorString()

std::string MuonAlignmentErrorDbAlg::sectorString ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 261 of file MuonAlignmentErrorDbAlg.cxx.

261  {
262  int sec = sector(calibId);
263  if (sec<0 || sec > 99) {
264  throw std::runtime_error("Unhandled sector number");
265  }
266  return std::to_string(sec/10) + std::to_string(sec%10);
267 }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ side()

std::string_view MuonAlignmentErrorDbAlg::side ( MuonCalib::MuonFixedLongId  calibId) const
inlineprivate

Definition at line 257 of file MuonAlignmentErrorDbAlg.cxx.

257  {
258  return calibId.eta()>0 ? "A" : calibId.eta()<0 ? "C" : "B";
259 }

◆ 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.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ 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.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

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

Member Data Documentation

◆ m_clobFileOverride

Gaudi::Property<std::string> MuonAlignmentErrorDbAlg::m_clobFileOverride
private
Initial value:
{this, "clobFileOverride", "",
"Set this to the location of a CLOB file to override the DB setting"}

Definition at line 42 of file MuonAlignmentErrorDbAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ 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

ServiceHandle<Muon::IMuonIdHelperSvc> MuonAlignmentErrorDbAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 44 of file MuonAlignmentErrorDbAlg.h.

◆ m_idTool

ToolHandle<MuonCalib::IIdToFixedIdTool> MuonAlignmentErrorDbAlg::m_idTool {this, "idTool", "MuonCalib::IdToFixedIdTool"}
private

Definition at line 45 of file MuonAlignmentErrorDbAlg.h.

◆ m_readKey

SG::ReadCondHandleKey<CondAttrListCollection> MuonAlignmentErrorDbAlg::m_readKey
private
Initial value:
{this, "ReadKey", "/MUONALIGN/ERRS",
"Key of input muon alignment error condition data"}

Definition at line 38 of file MuonAlignmentErrorDbAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeKey

SG::WriteCondHandleKey<MuonAlignmentErrorData> MuonAlignmentErrorDbAlg::m_writeKey
private
Initial value:
{this, "WriteKey", "MuonAlignmentErrorData",
"Key of output muon alignment error condition data"}

Definition at line 40 of file MuonAlignmentErrorDbAlg.h.


The documentation for this class was generated from the following files:
BIS
@ BIS
Definition: RegSelEnums.h:11
MuonAlignmentErrorDbAlg::m_readKey
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
Definition: MuonAlignmentErrorDbAlg.h:38
MuonAlignmentErrorData::MuonAlignmentErrorRule::stationName
boost::regex stationName
Definition: MuonAlignmentErrorData.h:26
MuonCalib::MuonFixedLongId::mmgMultilayer
int mmgMultilayer() const
Mmg specific:
Definition: MuonFixedLongId.h:1451
MuonCalib::MuonFixedLongId::phi
int phi() const
Definition: MuonFixedLongId.h:935
MuonCalib::MuonFixedLongId::is_tgc
bool is_tgc() const
Definition: MuonFixedLongId.h:778
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
checkFileSG.line
line
Definition: checkFileSG.py:75
MuonCalib::MuonFixedLongId::is_mdt
bool is_mdt() const
Definition: MuonFixedLongId.h:774
MuonAlignmentErrorData::MuonAlignmentErrorRule::translation
double translation
Definition: MuonAlignmentErrorData.h:28
CSS
@ CSS
Definition: ParabolaCscClusterFitter.h:25
vtune_athena.format
format
Definition: vtune_athena.py:14
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
BOG
@ BOG
Definition: RegSelEnums.h:19
MuonAlignmentErrorDbAlg::m_idTool
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idTool
Definition: MuonAlignmentErrorDbAlg.h:45
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
MuonCalib::MuonFixedLongId::StationName
StationName
an enum with the station names
Definition: MuonFixedLongId.h:64
xAOD::L2MuonParameters::BEE
@ BEE
BEE measurement point.
Definition: TrigMuonDefs.h:24
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
MuonCalib::MuonFixedLongId::isValid
bool isValid() const
check validity of the identifier.
Definition: MuonFixedLongId.h:770
MuonAlignmentErrorDbAlg::hardwareEta
int hardwareEta(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:302
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
MuonAlignmentErrorDbAlg::sector
int sector(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:269
MuonAlignmentErrorDbAlg::getDbClobContent
std::tuple< std::string, EventIDRange > getDbClobContent(const EventContext &ctx) const
Definition: MuonAlignmentErrorDbAlg.cxx:196
MuonCalib::MuonFixedLongId::is_mmg
bool is_mmg() const
Definition: MuonFixedLongId.h:790
MuonAlignmentErrorDbAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonAlignmentErrorDbAlg.h:44
BMF
@ BMF
Definition: RegSelEnums.h:16
MuonAlignmentErrorData::MuonAlignmentErrorRuleCache
Definition: MuonAlignmentErrorData.h:32
MuonCalib::MuonFixedLongId::is_stg
bool is_stg() const
Definition: MuonFixedLongId.h:794
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
BOL
@ BOL
Definition: RegSelEnums.h:14
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
MuonCalib::MuonFixedLongId::stgMultilayer
int stgMultilayer() const
Stg specific:
Definition: MuonFixedLongId.h:1516
BOF
@ BOF
Definition: RegSelEnums.h:18
MuonCalib::MuonFixedLongId
Definition: MuonFixedLongId.h:50
MuonCalib::MuonFixedLongId::stationNameString
std::string_view stationNameString() const
Definition: MuonFixedLongId.h:886
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
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
xAOD::rotation
rotation
Definition: TrackSurface_v1.cxx:15
master.flag
bool flag
Definition: master.py:29
MuonAlignmentErrorDbAlg::generateMap
void generateMap(const auto &helper_obj, const auto &idTool, MuonAlignmentErrorData::MuonAlignmentErrorRuleCache &adev_new, std::vector< MuonAlignmentErrorData::MuonAlignmentErrorRule > &devVec) const
Definition: MuonAlignmentErrorDbAlg.cxx:161
MuonAlignmentErrorData::MuonAlignmentErrorRule::multilayer
boost::regex multilayer
Definition: MuonAlignmentErrorData.h:27
MuonAlignmentErrorDbAlg::m_writeKey
SG::WriteCondHandleKey< MuonAlignmentErrorData > m_writeKey
Definition: MuonAlignmentErrorDbAlg.h:40
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
MuonCalib::MuonFixedLongId::eta
int eta() const
Definition: MuonFixedLongId.h:912
MuonAlignmentErrorData::MuonAlignmentErrorRuleCache::id_rule_map
std::unordered_multimap< Identifier, MuonAlignmentErrorRuleIndex > id_rule_map
For each multilayer identifier, cache the indices of the affecting rules.
Definition: MuonAlignmentErrorData.h:36
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
MuonAlignmentErrorDbAlg::side
std::string_view side(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:257
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
MuonAlignmentErrorData::MuonAlignmentErrorRule
Definition: MuonAlignmentErrorData.h:25
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
MuonAlignmentErrorData::MuonAlignmentErrorRuleIndex
size_t MuonAlignmentErrorRuleIndex
Definition: MuonAlignmentErrorData.h:31
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
MuonAlignmentErrorData::MuonAlignmentErrorRule::rotation
double rotation
Definition: MuonAlignmentErrorData.h:29
MuonAlignmentErrorDbAlg::getFileClobContent
std::tuple< std::string, EventIDRange > getFileClobContent() const
Definition: MuonAlignmentErrorDbAlg.cxx:228
MuonAlignmentErrorDbAlg::hardwareName
std::string hardwareName(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:242
a
TList * a
Definition: liststreamerinfos.cxx:10
h
BML
@ BML
Definition: RegSelEnums.h:12
MuonCalib::MuonFixedLongId::stationName
StationName stationName() const
Definition: MuonFixedLongId.h:882
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
BMS
@ BMS
Definition: RegSelEnums.h:13
MuonCalib::MuonFixedLongId::mdtMultilayer
int mdtMultilayer() const
Mdt specific:
Definition: MuonFixedLongId.h:1070
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
IOVInfiniteRange::infiniteTime
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
Definition: IOVInfiniteRange.h:47
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
MuonAlignmentErrorDbAlg::m_clobFileOverride
Gaudi::Property< std::string > m_clobFileOverride
Definition: MuonAlignmentErrorDbAlg.h:42
BOS
@ BOS
Definition: RegSelEnums.h:15
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MuonAlignmentErrorDbAlg::sectorString
std::string sectorString(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:261
MuonAlignmentErrorDbAlg::isSmallSector
bool isSmallSector(MuonCalib::MuonFixedLongId calibId) const
Definition: MuonAlignmentErrorDbAlg.cxx:278
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >