![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
The xAODSimHitToRpcMasCnvAlg is a short cut towards the RpcStrip measurement The RpcSimHits are taken and expressed w.r.t.
More...
#include <xAODSimHitToRpcMeasCnvAlg.h>
|
| xAODSimHitToRpcMeasCnvAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~xAODSimHitToRpcMeasCnvAlg ()=default |
|
StatusCode | execute (const EventContext &ctx) const override |
|
StatusCode | initialize () override |
|
StatusCode | finalize () 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 |
|
|
CLHEP::HepRandomEngine * | getRandomEngine (const EventContext &ctx) const |
|
void | digitizeHit (const double hitTime, const double locPosOnStrip, const MuonGMR4::StripDesignPtr &designPtr, const Identifier &gasGapId, const bool measuresPhi, xAOD::RpcStripContainer &prdContainer, CLHEP::HepRandomEngine *engine) const |
| Smears the local simHit position orthogonal to the strip and writes a 1D rpc strip measurement. More...
|
|
void | digitizeHit (const double hitTime, const Amg::Vector2D &locPosOnStrip, const MuonGMR4::StripDesignPtr &designPtr, const Identifier &gasGapId, xAOD::RpcStrip2DContainer &prdContainer, CLHEP::HepRandomEngine *engine) const |
|
int | stripNumber (const MuonGMR4::StripDesign &design, const Amg::Vector2D &locHitPosOnPlane) const |
| Returns the number of the strip that's closest to the hit position on the strip plane -1 is returned if the hit is outside the strip panel acceptance. More...
|
|
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...
|
|
|
SG::ReadHandleKey< ActsGeometryContext > | m_geoCtxKey {this, "AlignmentKey", "ActsAlignment", "cond handle key"} |
|
SG::ReadHandleKey< xAOD::MuonSimHitContainer > | m_readKey |
|
SG::WriteHandleKey< xAOD::RpcStripContainer > | m_writeKey |
|
SG::WriteHandleKey< xAOD::RpcStrip2DContainer > | m_writeKeyBI |
|
const MuonGMR4::MuonDetectorManager * | m_DetMgr {nullptr} |
| Access to the new readout geometry. More...
|
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc", ""} |
|
Gaudi::Property< std::string > | m_streamName {this, "RandomStream", "RpcSimHitForkLifting"} |
|
std::array< std::atomic< unsigned >, 2 > m_allHits | ATLAS_THREAD_SAFE {} |
|
std::array< std::atomic< unsigned >, 2 > m_acceptedHits | ATLAS_THREAD_SAFE {} |
|
int | m_stIdxBIL {-1} |
|
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 |
|
The xAODSimHitToRpcMasCnvAlg is a short cut towards the RpcStrip measurement The RpcSimHits are taken and expressed w.r.t.
eta & phi gas gaps. The local strip position is then smeared using a Gaussian with sigma^{2} = stripWidth / std::sqrt(12)
Definition at line 32 of file xAODSimHitToRpcMeasCnvAlg.h.
◆ StoreGateSvc_t
◆ xAODSimHitToRpcMeasCnvAlg()
xAODSimHitToRpcMeasCnvAlg::xAODSimHitToRpcMeasCnvAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~xAODSimHitToRpcMeasCnvAlg()
xAODSimHitToRpcMeasCnvAlg::~xAODSimHitToRpcMeasCnvAlg |
( |
| ) |
|
|
default |
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ digitizeHit() [1/2]
There're Rpc chambers without phi strips (BI)
Definition at line 120 of file xAODSimHitToRpcMeasCnvAlg.cxx.
132 ++(m_allHits[
false]);
135 const double uncertX = design.stripPitch() / std::sqrt(12.);
136 const double smearedX = CLHEP::RandGaussZiggurat::shoot(rndEngine, locPosOnStrip.x(), uncertX);
140 const double stripTimeResolution = 0.6;
141 const double stripLength = design.lenLeftEdge();
144 const double stripLeft = -(stripLength / 2);
145 const double stripRight = (stripLength / 2);
146 double distToL = std::abs( stripLeft - locPosOnStrip.y() );
147 double distToR = std::abs( stripRight - locPosOnStrip.y() );
150 double propagationTimeL = distToL / propagationVelocity;
151 double propagationTimeR = distToR / propagationVelocity;
154 const double smearedTimeL = CLHEP::RandGaussZiggurat::shoot(rndEngine, propagationTimeL, stripTimeResolution);
155 const double smearedTimeR = CLHEP::RandGaussZiggurat::shoot(rndEngine, propagationTimeR, stripTimeResolution);
156 const double smearedDeltaT = smearedTimeR - smearedTimeL;
169 const double uncertY = 0.5 * propagationVelocity * sqrt(2)*stripTimeResolution;
170 const double smearedY = -0.5 * propagationVelocity * smearedDeltaT;
174 if (!design.insideTrapezoid(locHitPos)) {
189 const Identifier prdId{id_helper.channelID(gasGapId,
190 id_helper.doubletZ(gasGapId),
191 id_helper.doubletPhi(gasGapId),
192 id_helper.gasGap(gasGapId),
201 ++(m_acceptedHits[
false]);
209 cov(0,0) = uncertX * uncertX;
210 cov(1,1) = uncertY * uncertY;
◆ digitizeHit() [2/2]
Smears the local simHit position orthogonal to the strip and writes a 1D rpc strip measurement.
There're Rpc chambers without phi strips (BI)
Definition at line 55 of file xAODSimHitToRpcMeasCnvAlg.cxx.
69 const double uncert = design.stripPitch() / std::sqrt(12.);
70 const double smearedX = CLHEP::RandGaussZiggurat::shoot(rndEngine, locPosOnStrip, uncert);
71 const Amg::Vector2D locHitPos{smearedX * Amg::Vector2D::UnitX()};
72 ++(m_allHits[measuresPhi]);
73 if (!design.insideTrapezoid(locHitPos)) {
75 <<
m_idHelperSvc->toStringGasGap(gasGapId)<<
", measuresPhi: "<<(measuresPhi ?
"yay" :
"nay"));
81 <<
m_idHelperSvc->toStringGasGap(gasGapId) <<
", measuresPhi: "<<(measuresPhi ?
"yay" :
"nay"));
88 const Identifier prdId{id_helper.channelID(gasGapId,
89 id_helper.doubletZ(gasGapId),
90 id_helper.doubletPhi(gasGapId),
91 id_helper.gasGap(gasGapId),
100 ++(m_acceptedHits[measuresPhi]);
109 std::move(lPos), std::move(
cov));
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode xAODSimHitToRpcMeasCnvAlg::execute |
( |
const EventContext & |
ctx | ) |
const |
|
override |
Definition at line 241 of file xAODSimHitToRpcMeasCnvAlg.cxx.
243 if (!simHitContainer.isPresent()){
245 return StatusCode::FAILURE;
253 ATH_CHECK(prdContainer.record(std::make_unique<xAOD::RpcStripContainer>(),
254 std::make_unique<xAOD::RpcStripAuxContainer>()));
259 ATH_CHECK(prd2DContainer.record(std::make_unique<xAOD::RpcStrip2DContainer>(),
260 std::make_unique<xAOD::RpcStrip2DAuxContainer>()));
269 if (std::abs(simHit->pdgId()) != 13)
continue;
271 const Amg::Vector3D locSimHitPos{xAOD::toEigen(simHit->localPosition())};
279 *prd2DContainer, rndEngine);
283 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ finalize()
StatusCode xAODSimHitToRpcMeasCnvAlg::finalize |
( |
| ) |
|
|
override |
Definition at line 48 of file xAODSimHitToRpcMeasCnvAlg.cxx.
49 ATH_MSG_INFO(
"Tried to convert "<<m_allHits[0]<<
" | "<<m_allHits[1]<<
" hits. In, "
50 <<percentage(m_acceptedHits[0], m_allHits[0]) <<
" | "
51 <<percentage(m_acceptedHits[1], m_allHits[1]) <<
" cases, the conversion was successful");
52 return StatusCode::SUCCESS;
◆ getRandomEngine()
CLHEP::HepRandomEngine * xAODSimHitToRpcMeasCnvAlg::getRandomEngine |
( |
const EventContext & |
ctx | ) |
const |
|
private |
◆ initialize()
StatusCode xAODSimHitToRpcMeasCnvAlg::initialize |
( |
| ) |
|
|
override |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ stripNumber()
Returns the number of the strip that's closest to the hit position on the strip plane -1 is returned if the hit is outside the strip panel acceptance.
Definition at line 222 of file xAODSimHitToRpcMeasCnvAlg.cxx.
233 if ( (*firstStrip).x() - 0.5 *design.
stripPitch() < locHitPos.x()) {
235 }
else if ( (*lastStrip).x() + 0.5 * design.
stripPitch() > locHitPos.x()) {
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ ATLAS_THREAD_SAFE [1/2]
std::array<std::atomic<unsigned>, 2> m_allHits xAODSimHitToRpcMeasCnvAlg::ATLAS_THREAD_SAFE {} |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [2/2]
std::array<std::atomic<unsigned>, 2> m_acceptedHits xAODSimHitToRpcMeasCnvAlg::ATLAS_THREAD_SAFE {} |
|
mutableprivate |
◆ m_DetMgr
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_geoCtxKey
◆ m_idHelperSvc
◆ m_readKey
Initial value:{this, "InputCollection", "xRpcSimHits",
"Name of the new xAOD SimHit collection"}
Definition at line 72 of file xAODSimHitToRpcMeasCnvAlg.h.
◆ m_rndmSvc
◆ m_stIdxBIL
int xAODSimHitToRpcMeasCnvAlg::m_stIdxBIL {-1} |
|
private |
◆ m_streamName
Gaudi::Property<std::string> xAODSimHitToRpcMeasCnvAlg::m_streamName {this, "RandomStream", "RpcSimHitForkLifting"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
◆ m_writeKeyBI
Initial value:{this, "OutputContainerBI", "xRpcBILStrips",
"Output container of the 2D BIL rpc strips"}
Definition at line 78 of file xAODSimHitToRpcMeasCnvAlg.h.
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
void setSeed(const std::string &algName, const EventContext &ctx)
Set the random seed using a string (e.g.
virtual int stripNumber(const Amg::Vector2D &pos) const
Calculates the number of the strip whose center is closest to the given point.
int stripNumber(const MuonGMR4::StripDesign &design, const Amg::Vector2D &locHitPosOnPlane) const
Returns the number of the strip that's closest to the hit position on the strip plane -1 is returned ...
Eigen::Matrix< double, 2, 1 > Vector2D
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void setStripNumber(uint16_t strip)
Sets the associated strip number identifier field.
virtual int numStrips() const
Number of strips on the panel.
void setDoubletPhi(uint8_t doubPhi)
Sets the doubletPhi identifier field.
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
MeasVector< N > toStorage(const AmgVector(N)&amgVec)
Converts the double precision of the AmgVector into the floating point storage precision of the MeasV...
void setAmbiguityFlag(uint8_t ambi)
Sets the ADC counts.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
#define ATH_MSG_VERBOSE(x)
const parameterBook & getParameters() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
ServiceHandle< IAthRNGSvc > m_rndmSvc
void digitizeHit(const double hitTime, const double locPosOnStrip, const MuonGMR4::StripDesignPtr &designPtr, const Identifier &gasGapId, const bool measuresPhi, xAOD::RpcStripContainer &prdContainer, CLHEP::HepRandomEngine *engine) const
Smears the local simHit position orthogonal to the strip and writes a 1D rpc strip measurement.
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
CLHEP::HepRandomEngine * getRandomEngine(const EventContext &ctx) const
void setGasGap(uint8_t gap)
Sets the associated gasGap identifier field.
::StatusCode StatusCode
StatusCode definition for legacy code.
void setMeasuresPhi(uint8_t measPhi)
sets the measuresPhi value
SG::WriteHandleKey< xAOD::RpcStrip2DContainer > m_writeKeyBI
void setReadoutElement(const MuonGMR4::RpcReadoutElement *readoutEle)
set the pointer to the ReadoutElement
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Include the GeoPrimitives which need to be put first.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Gaudi::Property< std::string > m_streamName
virtual void renounce()=0
Eigen::Matrix< float, N, 1 > MeasVector
Abrivation of the Matrix & Covariance definitions.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
CheckVector2D center(int stripNumb) const
Returns the bisector of the strip (Global numbering scheme)
A wrapper class for event-slot-local random engines.
virtual StatusCode sysInitialize() override
Override sysInitialize.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Eigen::Matrix< double, 3, 1 > Vector3D
void setTime(float time)
Sets the the triger time of the hit.
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
RpcStrip2D_v1 RpcStrip2D
Defined the version of the RpcStrip.
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
#define ATH_MSG_WARNING(x)
SG::WriteHandleKey< xAOD::RpcStripContainer > m_writeKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
const Amg::Transform3D & localToGlobalTrans(const ActsGeometryContext &ctx) const
Returns the local to global transformation into the ATLAS coordinate system.
Eigen::Matrix< float, N, N > MeasMatrix
double stripPitch() const
Distance between two adjacent strips.
float hitTime(const AFP_SIDSimHit &hit)
const MuonGMR4::MuonDetectorManager * m_DetMgr
Access to the new readout geometry.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Scalar mag() const
mag method
RpcStrip_v1 RpcStrip
Defined the version of the RpcStrip.
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_readKey