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

Algorithm which converts PrepRawData to xAOD::PrepRawData Not really Muon specific, but InDet already has separate convertors. More...

#include <PRDxAODConvertorAlg.h>

Inheritance diagram for Muon::PRDxAODConvertorAlg:
Collaboration diagram for Muon::PRDxAODConvertorAlg:

Public Member Functions

virtual ~PRDxAODConvertorAlg ()=default
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
template<>
bool fillxPRD (const Muon::MdtPrepData &prd, xAOD::MdtDriftCircle &xprd) const
 
template<>
bool fillxPRD (const Muon::RpcPrepData &prd, xAOD::RpcStrip &xprd) const
 
template<>
bool fillxPRD (const Muon::TgcPrepData &prd, xAOD::TgcStrip &xprd) const
 
template<>
bool fillxPRD (const Muon::MMPrepData &prd, xAOD::MMCluster &xprd) const
 
template<>
bool fillxPRD (const Muon::sTgcPrepData &prd, xAOD::sTgcStripCluster &xprd) const
 
template<>
bool fillxPRD (const Muon::sTgcPrepData &prd, xAOD::sTgcWireHit &xprd) const
 
template<>
bool fillxPRD (const Muon::sTgcPrepData &prd, xAOD::sTgcPadHit &xprd) const
 
 AthReentrantAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters: More...
 
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...
 

Protected Attributes

SG::ReadHandleKey< Muon::MdtPrepDataContainerm_mdtPrepRawDataKey {this, "MdtPrepRawDataKey", "MDT_DriftCircles", "Key for MDT PRD Container"}
 
SG::ReadHandleKey< Muon::RpcPrepDataContainerm_rpcPrepRawDataKey {this, "RpcPrepRawDataKey", "RPC_Measurements", "Key for RPC PRD Container"}
 
SG::ReadHandleKey< Muon::TgcPrepDataContainerm_tgcPrepRawDataKey {this, "TgcPrepRawDataKey", "TGC_MeasurementsAllBCs", "Key for TGC PRD Container"}
 
SG::ReadHandleKey< Muon::MMPrepDataContainerm_mmPrepRawDataKey {this, "MMPrepRawDataKey", "MM_Measurements", "Key for MM PRD Container"}
 
SG::ReadHandleKey< Muon::sTgcPrepDataContainerm_stgcPrepRawDataKey {this, "sTgcPrepRawDataKey", "STGC_Measurements", "Key for sTGC PRD Container"}
 
SG::WriteHandleKey< xAOD::MdtDriftCircleContainerm_mdtxAODKey {this, "MdtxAODKey", "MDT_PrepData"}
 
SG::WriteHandleKey< xAOD::RpcStripContainerm_rpcxAODKey {this, "RpcxAODKey", "RPC_PrepData"}
 
SG::WriteHandleKey< xAOD::TgcStripContainerm_tgcxAODKey {this, "TgcxAODKey", "TGC_PrepData"}
 
SG::WriteHandleKey< xAOD::MMClusterContainerm_mmxAODKey {this, "MMxAODKey", "MM_PrepData"}
 
SG::WriteHandleKey< xAOD::sTgcStripContainerm_stgcStripxAODKey {this, "sTgcStripxAODKey", "sTGC_StripPrepData"}
 
SG::WriteHandleKey< xAOD::sTgcWireContainerm_stgcWirexAODKey {this, "sTgcWirexAODKey", "sTGC_WirePrepData"}
 
SG::WriteHandleKey< xAOD::sTgcPadContainerm_stgcPadxAODKey {this, "sTgcPadxAODKey", "sTGC_PadPrepData"}
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

template<class INTYPE , class OUTTYPE , class OUTTYPEAUX >
StatusCode getAndFillContainer (const SG::ReadHandleKey< INTYPE > &inKey, const SG::WriteHandleKey< OUTTYPE > &outKey, const EventContext &) const
 
template<class PRD , class xPRD >
bool fillxPRD (const PRD &prd, xPRD &xprd) 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

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
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

Algorithm which converts PrepRawData to xAOD::PrepRawData Not really Muon specific, but InDet already has separate convertors.

Definition at line 32 of file PRDxAODConvertorAlg.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

◆ ~PRDxAODConvertorAlg()

virtual Muon::PRDxAODConvertorAlg::~PRDxAODConvertorAlg ( )
virtualdefault

Member Function Documentation

◆ AthReentrantAlgorithm()

AthReentrantAlgorithm::AthReentrantAlgorithm

Constructor with parameters:

Definition at line 90 of file AthReentrantAlgorithm.cxx.

22  :
24 {
25 
26  // Set up to run AthAlgorithmDHUpdate in sysInitialize before
27  // merging depedency lists. This extends the output dependency
28  // list with any symlinks implied by inheritance relations.
29  m_updateDataHandles =
30  std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
32  std::move (m_updateDataHandles));
33 }

◆ 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 Muon::PRDxAODConvertorAlg::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 35 of file PRDxAODConvertorAlg.cxx.

35  {
36 
37  ATH_MSG_VERBOSE("About to create trackContainer");
38 
39  ATH_CHECK((getAndFillContainer<Muon::MdtPrepDataContainer, xAOD::MdtDriftCircleContainer, xAOD::MdtDriftCircleAuxContainer > (m_mdtPrepRawDataKey, m_mdtxAODKey, ctx)));
40  ATH_CHECK((getAndFillContainer<Muon::RpcPrepDataContainer, xAOD::RpcStripContainer, xAOD::RpcStripAuxContainer > (m_rpcPrepRawDataKey, m_rpcxAODKey, ctx) ));
41  ATH_CHECK((getAndFillContainer<Muon::TgcPrepDataContainer, xAOD::TgcStripContainer, xAOD::TgcStripAuxContainer > (m_tgcPrepRawDataKey, m_tgcxAODKey, ctx) ));
42  ATH_CHECK((getAndFillContainer<Muon::MMPrepDataContainer, xAOD::MMClusterContainer, xAOD::MMClusterAuxContainer > (m_mmPrepRawDataKey, m_mmxAODKey, ctx) ));
43  ATH_CHECK((getAndFillContainer<Muon::sTgcPrepDataContainer, xAOD::sTgcStripContainer, xAOD::sTgcStripAuxContainer > (m_stgcPrepRawDataKey, m_stgcStripxAODKey, ctx)));
44  ATH_CHECK((getAndFillContainer<Muon::sTgcPrepDataContainer, xAOD::sTgcWireContainer, xAOD::sTgcWireAuxContainer > (m_stgcPrepRawDataKey, m_stgcWirexAODKey, ctx)));
45  ATH_CHECK((getAndFillContainer<Muon::sTgcPrepDataContainer, xAOD::sTgcPadContainer, xAOD::sTgcPadAuxContainer > (m_stgcPrepRawDataKey, m_stgcPadxAODKey, ctx)));
46 
47  return StatusCode::SUCCESS;
48 }

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

◆ fillxPRD() [1/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::MdtPrepData prd,
xAOD::MdtDriftCircle xprd 
) const

Definition at line 91 of file PRDxAODConvertorAlg.cxx.

92  {
93  const MdtIdHelper& id_helper{m_idHelperSvc->mdtIdHelper()};
94 
95  const Identifier prdId{prd.identify()};
97 
98  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
99  xAOD::MeasMatrix<1> localCovariance{};
100  localCovariance(0, 0) = prd.localCovariance()(0, 0);
101  xprd.setMeasurement(m_idHelperSvc->detElementHash(prdId), localPosition, localCovariance);
102 
103  xprd.setTdc(prd.tdc());
104  xprd.setAdc(prd.adc());
105  xprd.setTube(id_helper.tube(prd.identify()));
106  xprd.setLayer(id_helper.tubeLayer(prd.identify()));
107  xprd.setStatus(prd.status());
108  // TODO tubePosInStation - but this needs ReadoutElement?
109  return true;
110 }

◆ fillxPRD() [2/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::MMPrepData prd,
xAOD::MMCluster xprd 
) const

Definition at line 154 of file PRDxAODConvertorAlg.cxx.

155  {
156 
157  const MmIdHelper& idHelper{m_idHelperSvc->mmIdHelper()};
158  const Identifier prdId{prd.identify()};
159  xprd.setIdentifier(prdId.get_identifier32().get_compact());
160  xprd.setGasGap(idHelper.gasGap(prdId));
161  xprd.setChannelNumber(idHelper.channel(prdId));
162  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
164  localCovariance(0, 0) = prd.localCovariance()(0, 0);
165  xprd.setMeasurement(m_idHelperSvc->detElementHash(prdId), localPosition, localCovariance);
166 
167  xprd.setTime(prd.time());
168  xprd.setCharge(prd.charge());
169  xprd.setDriftDist(prd.driftDist());
170  xprd.setAngle(prd.angle());
171  xprd.setChiSqProb(prd.chisqProb());
172 
174  xprd.setStripDriftDist(prd.stripDriftDist());
175  xprd.setStripDriftDist(prd.stripDriftDist());
176  xprd.setStripCharges(prd.stripCharges());
177  xprd.setStripTimes(prd.stripTimes());
178  xprd.setStripNumbers(prd.stripNumbers());
179  return true;
180 }

◆ fillxPRD() [3/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::RpcPrepData prd,
xAOD::RpcStrip xprd 
) const

Definition at line 112 of file PRDxAODConvertorAlg.cxx.

113  {
114 
115  const RpcIdHelper& idHelper{m_idHelperSvc->rpcIdHelper()};
116  const Identifier prdId{prd.identify()};
117  xprd.setIdentifier(prdId.get_identifier32().get_compact());
118 
119  xprd.setStripNumber(idHelper.strip(prdId));
120  xprd.setGasGap(idHelper.gasGap(prdId));
121  xprd.setMeasuresPhi(idHelper.measuresPhi(prdId));
122  xprd.setDoubletPhi(idHelper.doubletPhi(prdId));
123 
124  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
126  localCovariance(0, 0) = prd.localCovariance()(0, 0);
127  xprd.setMeasurement(m_idHelperSvc->detElementHash(prdId), localPosition, localCovariance);
128 
129  xprd.setTime(prd.time());
130  xprd.setTriggerInfo(prd.triggerInfo());
131  xprd.setAmbiguityFlag(prd.ambiguityFlag());
133  return true;
134 }

◆ fillxPRD() [4/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::sTgcPrepData prd,
xAOD::sTgcPadHit xprd 
) const

Definition at line 222 of file PRDxAODConvertorAlg.cxx.

223  {
224  const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
225  const Identifier prdId = prd.identify();
226  if (idHelper.channelType(prdId) != sTgcIdHelper::Pad) return false;
228  xAOD::MeasVector<2> localPosition{xAOD::toStorage(prd.localPosition())} ;
230  localCovariance(0, 0) = prd.localCovariance()(0, 0);
231  // localCovariance(1, 1) = prd.localCovariance()(1, 1);
232  xprd.setChannelNumber(idHelper.channel(prdId));
233  xprd.setGasGap(idHelper.gasGap(prdId));
234  xprd.setMeasurement(prd.collectionHash(), localPosition, localCovariance);
235  xprd.setTime(prd.time());
236  xprd.setCharge(prd.charge());
237  xprd.setAuthor(prd.author());
238  return true;
239 }

◆ fillxPRD() [5/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::sTgcPrepData prd,
xAOD::sTgcStripCluster xprd 
) const

Definition at line 182 of file PRDxAODConvertorAlg.cxx.

183  {
184 
185  const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
186  const Identifier prdId = prd.identify();
187  if (idHelper.channelType(prdId) != sTgcIdHelper::Strip) return false;
189  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
191  localCovariance(0, 0) = prd.localCovariance()(0, 0);
192  xprd.setChannelNumber(idHelper.channel(prdId));
193  xprd.setGasGap(idHelper.gasGap(prdId));
194  xprd.setMeasurement(prd.collectionHash(), localPosition, localCovariance);
195  xprd.setTime(prd.time());
196  xprd.setCharge(prd.charge());
197  xprd.setAuthor(prd.author());
198  xprd.setQuality(prd.quality());
199  xprd.setStripCharges(prd.stripCharges());
200  xprd.setStripNumbers(prd.stripNumbers());
201  xprd.setStripTimes(prd.stripTimes());
202  return true;
203 }

◆ fillxPRD() [6/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::sTgcPrepData prd,
xAOD::sTgcWireHit xprd 
) const

Definition at line 205 of file PRDxAODConvertorAlg.cxx.

206  {
207  const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
208  const Identifier prdId = prd.identify();
209  if (idHelper.channelType(prdId) != sTgcIdHelper::Wire) return false;
211  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
213  localCovariance(0, 0) = prd.localCovariance()(0, 0);
214  xprd.setChannelNumber(idHelper.channel(prdId));
215  xprd.setGasGap(idHelper.gasGap(prdId));
216  xprd.setMeasurement(prd.collectionHash(), localPosition, localCovariance);
217  xprd.setTime(prd.time());
218  xprd.setCharge(prd.charge());
219  xprd.setAuthor(prd.author());
220  return true;
221 }

◆ fillxPRD() [7/8]

template<>
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const Muon::TgcPrepData prd,
xAOD::TgcStrip xprd 
) const

Definition at line 136 of file PRDxAODConvertorAlg.cxx.

137  {
138 
139  const TgcIdHelper& idHelper{m_idHelperSvc->tgcIdHelper()};
140  const Identifier prdId{prd.identify()};
141  xprd.setIdentifier(prdId.get_identifier32().get_compact());
142  xprd.setMeasuresPhi(idHelper.measuresPhi(prdId));
143  xprd.setGasGap(idHelper.gasGap(prdId));
144  xprd.setChannelNumber(idHelper.channel(prdId));
145  xAOD::MeasVector<1> localPosition(prd.localPosition().x());
147  localCovariance(0, 0) = prd.localCovariance()(0, 0);
148  xprd.setMeasurement(m_idHelperSvc->detElementHash(prdId), localPosition, localCovariance);
149 
150  xprd.setBcBitMap(prd.getBcBitMap());
151  return true;
152 }

◆ fillxPRD() [8/8]

template<class PRD , class xPRD >
bool Muon::PRDxAODConvertorAlg::fillxPRD ( const PRD &  prd,
xPRD &  xprd 
) const
private

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

◆ getAndFillContainer()

template<class INTYPE , class OUTTYPE , class OUTTYPEAUX >
StatusCode Muon::PRDxAODConvertorAlg::getAndFillContainer ( const SG::ReadHandleKey< INTYPE > &  inKey,
const SG::WriteHandleKey< OUTTYPE > &  outKey,
const EventContext &  ctx 
) const
private

Definition at line 52 of file PRDxAODConvertorAlg.cxx.

54  {
55  if(inKey.empty()) {
56  ATH_MSG_VERBOSE("No key configured to convert "<<typeid(INTYPE).name()<<" into xAOD objects. Skipping.");
57  return StatusCode::SUCCESS;
58  }
59 
60  SG::ReadHandle<INTYPE> handle(inKey, ctx);
61 
62  ATH_MSG_VERBOSE("Trying to load " << handle.key());
63  ATH_CHECK(handle.isValid());
64  ATH_MSG_VERBOSE("Which has " << handle->numberOfCollections()
65  << " collections: ");
66 
67  SG::WriteHandle<OUTTYPE> outputContainer(outKey, ctx);
68  ATH_CHECK( outputContainer.record (std::make_unique<OUTTYPE>(),
69  std::make_unique<OUTTYPEAUX>()) );
70  ATH_MSG_DEBUG( "Recorded xAOD container with key: " << outputContainer.key() );
71 
72  for (const auto *coll : *handle) {
73  for (const auto * prd : *coll) {
74  auto * xprd = new typename OUTTYPE::base_value_type();
75  outputContainer->push_back(xprd);
76  if (!fillxPRD(*prd, *xprd)) {
77  outputContainer->pop_back();
78  }
79  }
80  }
81 
82  return StatusCode::SUCCESS;
83 }

◆ initialize()

StatusCode Muon::PRDxAODConvertorAlg::initialize ( )
overridevirtual

Definition at line 15 of file PRDxAODConvertorAlg.cxx.

15  {
19  ATH_CHECK(m_mmPrepRawDataKey.initialize(!m_mmPrepRawDataKey.empty()));
21 
22  ATH_CHECK(m_mdtxAODKey.initialize(!m_mdtPrepRawDataKey.empty()));
23  ATH_CHECK(m_rpcxAODKey.initialize(!m_rpcPrepRawDataKey.empty()));
24  ATH_CHECK(m_tgcxAODKey.initialize(!m_tgcPrepRawDataKey.empty()));
25  ATH_CHECK(m_mmxAODKey.initialize(!m_mmPrepRawDataKey.empty()));
26  ATH_CHECK(m_stgcStripxAODKey.initialize(!m_stgcPrepRawDataKey.empty()));
27  ATH_CHECK(m_stgcWirexAODKey.initialize(!m_stgcPrepRawDataKey.empty()));
28  ATH_CHECK(m_stgcPadxAODKey.initialize(!m_stgcPrepRawDataKey.empty()));
29 
30  ATH_CHECK(m_idHelperSvc.retrieve());
31 
32  return StatusCode::SUCCESS;
33 }

◆ 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

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

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

◆ 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_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> Muon::PRDxAODConvertorAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 61 of file PRDxAODConvertorAlg.h.

◆ m_mdtPrepRawDataKey

SG::ReadHandleKey<Muon::MdtPrepDataContainer> Muon::PRDxAODConvertorAlg::m_mdtPrepRawDataKey {this, "MdtPrepRawDataKey", "MDT_DriftCircles", "Key for MDT PRD Container"}
protected

Definition at line 45 of file PRDxAODConvertorAlg.h.

◆ m_mdtxAODKey

SG::WriteHandleKey<xAOD::MdtDriftCircleContainer> Muon::PRDxAODConvertorAlg::m_mdtxAODKey {this, "MdtxAODKey", "MDT_PrepData"}
protected

Definition at line 51 of file PRDxAODConvertorAlg.h.

◆ m_mmPrepRawDataKey

SG::ReadHandleKey<Muon::MMPrepDataContainer> Muon::PRDxAODConvertorAlg::m_mmPrepRawDataKey {this, "MMPrepRawDataKey", "MM_Measurements", "Key for MM PRD Container"}
protected

Definition at line 48 of file PRDxAODConvertorAlg.h.

◆ m_mmxAODKey

SG::WriteHandleKey<xAOD::MMClusterContainer> Muon::PRDxAODConvertorAlg::m_mmxAODKey {this, "MMxAODKey", "MM_PrepData"}
protected

Definition at line 54 of file PRDxAODConvertorAlg.h.

◆ m_rpcPrepRawDataKey

SG::ReadHandleKey<Muon::RpcPrepDataContainer> Muon::PRDxAODConvertorAlg::m_rpcPrepRawDataKey {this, "RpcPrepRawDataKey", "RPC_Measurements", "Key for RPC PRD Container"}
protected

Definition at line 46 of file PRDxAODConvertorAlg.h.

◆ m_rpcxAODKey

SG::WriteHandleKey<xAOD::RpcStripContainer> Muon::PRDxAODConvertorAlg::m_rpcxAODKey {this, "RpcxAODKey", "RPC_PrepData"}
protected

Definition at line 52 of file PRDxAODConvertorAlg.h.

◆ m_stgcPadxAODKey

SG::WriteHandleKey<xAOD::sTgcPadContainer> Muon::PRDxAODConvertorAlg::m_stgcPadxAODKey {this, "sTgcPadxAODKey", "sTGC_PadPrepData"}
protected

Definition at line 57 of file PRDxAODConvertorAlg.h.

◆ m_stgcPrepRawDataKey

SG::ReadHandleKey<Muon::sTgcPrepDataContainer> Muon::PRDxAODConvertorAlg::m_stgcPrepRawDataKey {this, "sTgcPrepRawDataKey", "STGC_Measurements", "Key for sTGC PRD Container"}
protected

Definition at line 49 of file PRDxAODConvertorAlg.h.

◆ m_stgcStripxAODKey

SG::WriteHandleKey<xAOD::sTgcStripContainer> Muon::PRDxAODConvertorAlg::m_stgcStripxAODKey {this, "sTgcStripxAODKey", "sTGC_StripPrepData"}
protected

Definition at line 55 of file PRDxAODConvertorAlg.h.

◆ m_stgcWirexAODKey

SG::WriteHandleKey<xAOD::sTgcWireContainer> Muon::PRDxAODConvertorAlg::m_stgcWirexAODKey {this, "sTgcWirexAODKey", "sTGC_WirePrepData"}
protected

Definition at line 56 of file PRDxAODConvertorAlg.h.

◆ m_tgcPrepRawDataKey

SG::ReadHandleKey<Muon::TgcPrepDataContainer> Muon::PRDxAODConvertorAlg::m_tgcPrepRawDataKey {this, "TgcPrepRawDataKey", "TGC_MeasurementsAllBCs", "Key for TGC PRD Container"}
protected

Definition at line 47 of file PRDxAODConvertorAlg.h.

◆ m_tgcxAODKey

SG::WriteHandleKey<xAOD::TgcStripContainer> Muon::PRDxAODConvertorAlg::m_tgcxAODKey {this, "TgcxAODKey", "TGC_PrepData"}
protected

Definition at line 53 of file PRDxAODConvertorAlg.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.


The documentation for this class was generated from the following files:
xAOD::MMCluster_v1::setStripTimes
void setStripTimes(const std::vector< int16_t > &stripTimes)
xAOD::MdtDriftCircle_v1::setTdc
void setTdc(int16_t tdc)
Setter methods.
Muon::MMPrepData::driftDist
float driftDist() const
Returns the Drift Distance.
Definition: MMPrepData.h:232
xAOD::TgcStrip_v1::setChannelNumber
void setChannelNumber(uint16_t chan)
xAOD::TgcStrip_v1::setGasGap
void setGasGap(uint8_t gapNum)
xAOD::sTgcStripCluster_v1::setStripNumbers
void setStripNumbers(const std::vector< uint16_t > &strips)
Set the list of individual strip clusters.
TgcIdHelper
Definition: TgcIdHelper.h:50
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAOD::MMCluster_v1::setDriftDist
void setDriftDist(float value)
Sets the drift distance.
Muon::PRDxAODConvertorAlg::m_rpcxAODKey
SG::WriteHandleKey< xAOD::RpcStripContainer > m_rpcxAODKey
Definition: PRDxAODConvertorAlg.h:52
xAOD::RpcMeasurement_v1::setStripNumber
void setStripNumber(uint16_t strip)
Sets the associated strip number identifier field.
xAOD::RpcMeasurement_v1::setTimeOverThreshold
void setTimeOverThreshold(float timeoverthreshold)
Sets the TDC counts.
xAOD::RpcMeasurement_v1::setDoubletPhi
void setDoubletPhi(uint8_t doubPhi)
Sets the doubletPhi identifier field.
Trk::PrepRawData::localCovariance
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
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
Muon::PRDxAODConvertorAlg::m_tgcPrepRawDataKey
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_tgcPrepRawDataKey
Definition: PRDxAODConvertorAlg.h:47
Muon::MuonCluster::collectionHash
virtual IdentifierHash collectionHash() const
Returns the IdentifierHash corresponding to the PRD collection in the PRD container.
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonPrepRawData/MuonPrepRawData/MuonCluster.h:104
Muon::RpcPrepData::timeOverThreshold
float timeOverThreshold() const
Returns the time over threshold.
Definition: RpcPrepData.h:216
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
Muon::PRDxAODConvertorAlg::fillxPRD
bool fillxPRD(const PRD &prd, xPRD &xprd) const
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::toStorage
MeasVector< N > toStorage(const AmgVector(N)&amgVec)
Converts the double precision of the AmgVector into the floating point storage precision of the MeasV...
Definition: MeasurementDefs.h:68
xAOD::MMCluster_v1::setAngle
void setAngle(float value)
Sets the microTPC angle.
xAOD::MMCluster_v1::setStripDriftErrors
void setStripDriftErrors(const std::vector< DriftCov_t > &stripDriftErrors)
sTgcIdHelper::Strip
@ Strip
Definition: sTgcIdHelper.h:190
xAOD::RpcMeasurement_v1::setAmbiguityFlag
void setAmbiguityFlag(uint8_t ambi)
Sets the ADC counts.
Muon::sTgcPrepData::author
Author author() const
Definition: sTgcPrepData.h:115
Muon::PRDxAODConvertorAlg::m_stgcStripxAODKey
SG::WriteHandleKey< xAOD::sTgcStripContainer > m_stgcStripxAODKey
Definition: PRDxAODConvertorAlg.h:55
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
xAOD::MMCluster_v1::setStripDriftDist
void setStripDriftDist(const std::vector< float > &stripDriftDist)
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250)
Definition: MdtPrepData.h:146
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
RpcIdHelper
Definition: RpcIdHelper.h:51
xAOD::sTgcStripCluster_v1::setStripCharges
void setStripCharges(const std::vector< int > &charges)
Set the individual list of contributing charges.
Muon::MMPrepData::stripDriftErrors
const std::vector< AmgVector(2)> & stripDriftErrors() const
returns the list of drift distances
Definition: MMPrepData.h:267
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Muon::MMPrepData::angle
float angle() const
Returns the microTPC angle.
Definition: MMPrepData.h:237
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::MMCluster_v1::setCharge
void setCharge(uint32_t value)
Sets the calibrated charge.
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
Muon::RpcPrepData::time
float time() const
Returns the time.
Definition: RpcPrepData.h:197
xAOD::MdtDriftCircle_v1::setStatus
void setStatus(MdtDriftCircleStatus st)
Sets the status of the drift circle.
xAOD::MMCluster_v1::setGasGap
void setGasGap(uint8_t gap)
Muon::sTgcPrepData::stripNumbers
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
Definition: sTgcPrepData.h:158
Muon::sTgcPrepData::stripCharges
const std::vector< int > & stripCharges() const
returns the list of charges
Definition: sTgcPrepData.h:160
xAOD::UncalibratedMeasurement_v1::setIdentifier
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::MMPrepData::stripCharges
const std::vector< int > & stripCharges() const
returns the list of charges
Definition: MMPrepData.h:257
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Muon::TgcPrepData::getBcBitMap
uint16_t getBcBitMap() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
Definition: TgcPrepData.cxx:75
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.
xAOD::MdtDriftCircle_v1::setAdc
void setAdc(int16_t adc)
Sets the ADC counts.
Muon::PRDxAODConvertorAlg::m_mmPrepRawDataKey
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_mmPrepRawDataKey
Definition: PRDxAODConvertorAlg.h:48
xAOD::TgcStrip_v1::setBcBitMap
void setBcBitMap(uint16_t)
xAOD::sTgcMeasurement_v1::setAuthor
void setAuthor(Author a)
Set the author of the producing algorithm.
xAOD::RpcMeasurement_v1::setGasGap
void setGasGap(uint8_t gap)
Sets the associated gasGap identifier field.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
sTgcIdHelper::Wire
@ Wire
Definition: sTgcIdHelper.h:190
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
xAOD::RpcStrip_v1::setMeasuresPhi
void setMeasuresPhi(uint8_t measPhi)
sets the measuresPhi value
xAOD::MMCluster_v1::setStripCharges
void setStripCharges(const std::vector< int > &stripCharges)
xAOD::RpcMeasurement_v1::setTriggerInfo
void setTriggerInfo(uint32_t triggerinfo)
Set the trigger info of the hit
MdtIdHelper
Definition: MdtIdHelper.h:61
Muon::PRDxAODConvertorAlg::m_mmxAODKey
SG::WriteHandleKey< xAOD::MMClusterContainer > m_mmxAODKey
Definition: PRDxAODConvertorAlg.h:54
xAOD::TgcStrip_v1::setMeasuresPhi
void setMeasuresPhi(uint8_t measPhi)
Muon::PRDxAODConvertorAlg::m_stgcWirexAODKey
SG::WriteHandleKey< xAOD::sTgcWireContainer > m_stgcWirexAODKey
Definition: PRDxAODConvertorAlg.h:56
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Muon::PRDxAODConvertorAlg::m_mdtPrepRawDataKey
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_mdtPrepRawDataKey
Definition: PRDxAODConvertorAlg.h:45
xAOD::sTgcStripCluster_v1::setQuality
void setQuality(Quality q)
Set the quality flag.
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Muon::MMPrepData::stripNumbers
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
Definition: MMPrepData.h:247
Muon::sTgcPrepData::time
short int time() const
Definition: sTgcPrepData.h:156
Muon::RpcPrepData::triggerInfo
int triggerInfo() const
Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
Definition: RpcPrepData.h:207
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
Muon::MMPrepData::stripTimes
const std::vector< short int > & stripTimes() const
returns the list of times
Definition: MMPrepData.h:252
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
xAOD::MeasVector
Eigen::Matrix< float, N, 1 > MeasVector
Abrivation of the Matrix & Covariance definitions.
Definition: MeasurementDefs.h:52
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
xAOD::sTgcMeasurement_v1::setChannelNumber
void setChannelNumber(uint16_t channel)
Set the channel number of the measurement.
Muon::PRDxAODConvertorAlg::m_rpcPrepRawDataKey
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_rpcPrepRawDataKey
Definition: PRDxAODConvertorAlg.h:46
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition: MdtPrepData.h:145
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::PrepRawData::localPosition
const Amg::Vector2D & localPosition() const
return the local position reference
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
sTgcIdHelper
Definition: sTgcIdHelper.h:55
Muon::MMPrepData::time
short int time() const
Returns the time (in ns)
Definition: MMPrepData.h:222
xAOD::RpcMeasurement_v1::setTime
void setTime(float time)
Sets the the triger time of the hit.
Muon::PRDxAODConvertorAlg::m_mdtxAODKey
SG::WriteHandleKey< xAOD::MdtDriftCircleContainer > m_mdtxAODKey
Definition: PRDxAODConvertorAlg.h:51
xAOD::MMCluster_v1::setChiSqProb
void setChiSqProb(float value)
Sets the microTPC chisq probability.
Muon::PRDxAODConvertorAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: PRDxAODConvertorAlg.h:61
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
Muon::PRDxAODConvertorAlg::m_stgcPadxAODKey
SG::WriteHandleKey< xAOD::sTgcPadContainer > m_stgcPadxAODKey
Definition: PRDxAODConvertorAlg.h:57
Muon::PRDxAODConvertorAlg::m_stgcPrepRawDataKey
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_stgcPrepRawDataKey
Definition: PRDxAODConvertorAlg.h:49
a
TList * a
Definition: liststreamerinfos.cxx:10
xAOD::UncalibratedMeasurement_v1::setMeasurement
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
h
MmIdHelper
Definition: MmIdHelper.h:54
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
sTgcIdHelper::Pad
@ Pad
Definition: sTgcIdHelper.h:190
xAOD::sTgcStripCluster_v1::setStripTimes
void setStripTimes(const std::vector< short int > &times)
Set the list of indivual strip times.
xAOD::MdtDriftCircle_v1::setLayer
void setLayer(uint8_t layer_n)
Sets the layer number.
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
xAOD::MMCluster_v1::setTime
void setTime(uint16_t value)
Sets the TDC counts.
xAOD::sTgcMeasurement_v1::setTime
void setTime(short int t)
: Set the calibrated time of the wire measurement
xAOD::sTgcMeasurement_v1::setCharge
void setCharge(int q)
: Set the collected charge on the wire
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
xAOD::MeasMatrix
Eigen::Matrix< float, N, N > MeasMatrix
Definition: MeasurementDefs.h:54
xAOD::sTgcMeasurement_v1::setGasGap
void setGasGap(uint8_t gap)
Set the associated gas gap of the measurement.
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
xAOD::MMCluster_v1::setStripNumbers
void setStripNumbers(const std::vector< uint16_t > &stripNumbers)
Muon::MdtPrepData::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
Definition: MdtPrepData.h:147
Muon::MMPrepData::stripDriftDist
const std::vector< float > & stripDriftDist() const
returns the list of drift distances
Definition: MMPrepData.h:262
Muon::RpcPrepData::ambiguityFlag
int ambiguityFlag() const
Returns the number of ambiguities associated with this RpcPrepData.
Definition: RpcPrepData.h:212
Muon::MMPrepData::charge
int charge() const
Returns the AD.
Definition: MMPrepData.h:227
Muon::sTgcPrepData::quality
Quality quality() const
Definition: sTgcPrepData.h:112
Muon::PRDxAODConvertorAlg::m_tgcxAODKey
SG::WriteHandleKey< xAOD::TgcStripContainer > m_tgcxAODKey
Definition: PRDxAODConvertorAlg.h:53
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Muon::MMPrepData::chisqProb
float chisqProb() const
Returns the microTPC chisq Prob.
Definition: MMPrepData.h:242
Muon::sTgcPrepData::charge
int charge() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
Definition: sTgcPrepData.h:154
xAOD::MMCluster_v1::setChannelNumber
void setChannelNumber(uint16_t strip)
Muon::sTgcPrepData::stripTimes
const std::vector< short int > & stripTimes() const
returns the list of times
Definition: sTgcPrepData.h:159
xAOD::MdtDriftCircle_v1::setTube
void setTube(uint16_t tube_n)
Sets the tube number.
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14