ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::MuonPRDSelectionTool Class Reference

#include <MuonPRDSelectionTool.h>

Inheritance diagram for Muon::MuonPRDSelectionTool:
Collaboration diagram for Muon::MuonPRDSelectionTool:

Public Member Functions

 MuonPRDSelectionTool (const std::string &type, const std::string &name, const IInterface *parent)
 Default AlgTool functions.
virtual ~MuonPRDSelectionTool ()=default
StatusCode initialize ()
bool calibrateAndSelect (const MuonSystemExtension::Intersection &intersection, const MuonLayerPrepRawData &layerPrepRawData, MuonLayerROTs &layerROTs) const
 IMuonPRDSelectionTool interface: calibrateAndSelect.
bool calibrateAndSelectMdt (const MuonSystemExtension::Intersection &intersection, const MdtPrepDataCollection &prds, std::vector< const MdtDriftCircleOnTrack * > &rots) const
 calibrate and select MDTs in a collection
template<class COL>
bool calibrateAndSelectCluster (const MuonSystemExtension::Intersection &intersection, const COL &prds, std::vector< const MuonClusterOnTrack * > &rots) const
 calibrate and select clusters in a collection
const MdtDriftCircleOnTrackcalibrateAndSelect (const MuonSystemExtension::Intersection &intersection, const MdtPrepData &mdt, double beta=1.) const
 IMuonPRDSelectionTool interface: calibrate and select single MDT.
const MuonClusterOnTrackcalibrateAndSelect (const Trk::TrackParameters &pars, const MuonCluster &clus) const
 IMuonPRDSelectionTool interface: calibrate and select single cluster.
const MuonClusterOnTrackcalibrateAndSelect (const MuonSystemExtension::Intersection &intersection, const MuonCluster &clus) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static const InterfaceID & interfaceID ()
 IAlgTool interface.

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Amg::Vector3D intersectMDT (const MdtPrepData &mdt, const Amg::Vector3D &position, const Amg::Vector3D &direction, bool usePlane) const
 intersect MDT surface or tube plane
bool calibrateAndSelectMdt (const MuonSystemExtension::Intersection &intersection, const MdtPrepDataCollection &prds, MuonLayerROTs &layerROTs) const
 calibrate and select MDTs in a collection
template<class COL>
bool calibrateAndSelectCluster (const MuonSystemExtension::Intersection &intersection, const COL &prds, MuonLayerROTs &layerROTs) const
 calibrate and select clusters in a collection
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
ToolHandle< IMdtDriftCircleOnTrackCreatorm_mdtCreator {this,"MdtDriftCircleOnTrackCreator","Muon::MdtDriftCircleOnTrackCreator/MdtDriftCircleOnTrackCreator"}
ToolHandle< IMuonClusterOnTrackCreatorm_clusterCreator {this,"MuonClusterOnTrackCreator","Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackCreator"}
double m_distanceToTubeCut
 cuts
double m_secondCoordinateCut
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 27 of file MuonPRDSelectionTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonPRDSelectionTool()

Muon::MuonPRDSelectionTool::MuonPRDSelectionTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Default AlgTool functions.

Definition at line 11 of file MuonPRDSelectionTool.cxx.

11 :
12 AthAlgTool(type,name,parent),
15 {
16 declareInterface<IMuonPRDSelectionTool>(this);
17 }
AthAlgTool()
Default constructor:

◆ ~MuonPRDSelectionTool()

virtual Muon::MuonPRDSelectionTool::~MuonPRDSelectionTool ( )
virtualdefault

Member Function Documentation

◆ calibrateAndSelect() [1/4]

const MdtDriftCircleOnTrack * Muon::MuonPRDSelectionTool::calibrateAndSelect ( const MuonSystemExtension::Intersection & intersection,
const MdtPrepData & mdt,
double beta = 1. ) const
virtual

IMuonPRDSelectionTool interface: calibrate and select single MDT.

Implements Muon::IMuonPRDSelectionTool.

Definition at line 78 of file MuonPRDSelectionTool.cxx.

78 {
79
80 // calculate intersection with tube
81 const Amg::Vector3D& direction = intersection.trackParameters->momentum();
82 Amg::Vector3D intersect = intersectMDT(mdt,intersection.trackParameters->position(),direction,true);
83
84
85 // calculate local position of the intersection in tube frame
86 const Identifier& id = mdt.identify();
87 const MuonGM::MdtReadoutElement* detEl = mdt.detectorElement();
88 const Trk::Surface& surface = mdt.detectorElement()->surface(id);
89 Amg::Vector2D localPosition{Amg::Vector2D::Zero()};
90 if( !surface.globalToLocal(intersect,direction,localPosition) ){
91 ATH_MSG_VERBOSE(" globalToLocal failed for " << m_idHelperSvc->toString(id) );
92 return nullptr;
93 }
94
95 // bound checks
96 double tubeHalfLen = 0.5*detEl->getActiveTubeLength( m_idHelperSvc->mdtIdHelper().tubeLayer(id),m_idHelperSvc->mdtIdHelper().tube(id) );
97 double distanceAlongTube = localPosition[Trk::locZ];
98
99 if( msgLvl(MSG::VERBOSE) ) {
100 msg(MSG::VERBOSE) << " Intersected " << m_idHelperSvc->toString(id) << " distance to wire " << localPosition[Trk::locR]
101 << " error " << Amg::error(*intersection.trackParameters->covariance(),Trk::locX) << " along tube (%) " << distanceAlongTube/tubeHalfLen;
102
103 }
104 if( std::abs(distanceAlongTube) > tubeHalfLen + m_secondCoordinateCut ) {
105 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << " outside tube second coordinate range, dropping " << endmsg;
106 return nullptr;
107 }
108
109 if( std::abs(localPosition[Trk::locR]) > m_distanceToTubeCut ) {
110 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << " too far from wire, dropping " << endmsg;
111 return nullptr;
112 }
113
114 // shift intersection within tube
115 if( distanceAlongTube > tubeHalfLen ){
116 localPosition[Trk::locZ] = distanceAlongTube < 0 ? -tubeHalfLen : tubeHalfLen;
117 surface.localToGlobal(localPosition,direction,intersect);
118 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << " outside tube, shifting";
119 }
120 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << endmsg;
121
122 // calibrate hit
123 const MdtDriftCircleOnTrack* mdtROT = m_mdtCreator->createRIO_OnTrack( mdt, intersect, &direction, 0., nullptr, beta, 0.);
124 if( !mdtROT ) ATH_MSG_VERBOSE(" Failed to calibrate " << m_idHelperSvc->toString(id));
125 return mdtROT;
126 }
#define endmsg
#define ATH_MSG_VERBOSE(x)
bool msgLvl(const MSG::Level lvl) const
MsgStream & msg() const
double getActiveTubeLength(const int tubeLayer, const int tube) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
ToolHandle< IMdtDriftCircleOnTrackCreator > m_mdtCreator
Amg::Vector3D intersectMDT(const MdtPrepData &mdt, const Amg::Vector3D &position, const Amg::Vector3D &direction, bool usePlane) const
intersect MDT surface or tube plane
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const =0
Specified by each surface type: GlobalToLocal method without dynamic memory allocation - boolean chec...
virtual void localToGlobal(const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const =0
Specified by each surface type: LocalToGlobal method without dynamic memory allocation.
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
std::optional< double > intersect(const AmgVector(N)&posA, const AmgVector(N)&dirA, const AmgVector(N)&posB, const AmgVector(N)&dirB)
Calculates the point B' along the line B that's closest to a second line A.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
@ locX
Definition ParamDefs.h:37
@ locR
Definition ParamDefs.h:44
@ locZ
local cylindrical
Definition ParamDefs.h:42

◆ calibrateAndSelect() [2/4]

const MuonClusterOnTrack * Muon::MuonPRDSelectionTool::calibrateAndSelect ( const MuonSystemExtension::Intersection & intersection,
const MuonCluster & clus ) const
virtual

Implements Muon::IMuonPRDSelectionTool.

Definition at line 166 of file MuonPRDSelectionTool.cxx.

166 {
167 return calibrateAndSelect(*intersection.trackParameters,clus);
168 }
bool calibrateAndSelect(const MuonSystemExtension::Intersection &intersection, const MuonLayerPrepRawData &layerPrepRawData, MuonLayerROTs &layerROTs) const
IMuonPRDSelectionTool interface: calibrateAndSelect.

◆ calibrateAndSelect() [3/4]

bool Muon::MuonPRDSelectionTool::calibrateAndSelect ( const MuonSystemExtension::Intersection & intersection,
const MuonLayerPrepRawData & layerPrepRawData,
MuonLayerROTs & layerROTs ) const
virtual

IMuonPRDSelectionTool interface: calibrateAndSelect.

Implements Muon::IMuonPRDSelectionTool.

Definition at line 27 of file MuonPRDSelectionTool.cxx.

27 {
28
29 if( msgLvl(MSG::DEBUG) ){
30 msg(MSG::DEBUG) << " intersection: in sector " << intersection.layerSurface.sector
31 << " region " << MuonStationIndex::regionName(intersection.layerSurface.regionIndex)
32 << " layer " << MuonStationIndex::layerName(intersection.layerSurface.layerIndex)
33 << " r " << intersection.trackParameters->position().perp() << " z " << intersection.trackParameters->position().z()
34 << " phi " << intersection.trackParameters->position().phi()
35 << " local (" << intersection.trackParameters->parameters()[Trk::loc1] << "," << intersection.trackParameters->parameters()[Trk::loc2] << ")";
36 if( intersection.trackParameters->covariance() ) {
37 msg(MSG::DEBUG) << " err (" << Amg::error(*intersection.trackParameters->covariance(),Trk::loc1) << "," << Amg::error(*intersection.trackParameters->covariance(),Trk::loc2) << ")";
38 }
39
40 if( !layerPrepRawData.mdts.empty() ) msg(MSG::DEBUG) << " MDTs " << layerPrepRawData.mdts.size();
41 if( !layerPrepRawData.rpcs.empty() ) msg(MSG::DEBUG) << " RPCs " << layerPrepRawData.rpcs.size();
42 if( !layerPrepRawData.tgcs.empty() ) msg(MSG::DEBUG) << " TGCs " << layerPrepRawData.tgcs.size();
43 if( !layerPrepRawData.cscs.empty() ) msg(MSG::DEBUG) << " CSCs " << layerPrepRawData.cscs.size();
44 if( !layerPrepRawData.stgcs.empty() ) msg(MSG::DEBUG) << " STGCs " << layerPrepRawData.stgcs.size();
45 if( !layerPrepRawData.mms.empty() ) msg(MSG::DEBUG) << " MMs " << layerPrepRawData.mms.size();
46 msg(MSG::DEBUG) << endmsg;
47 }
48
49 // loop over MDT collections
50 for( const auto *col : layerPrepRawData.mdts ){
51 calibrateAndSelectMdt(intersection,*col,layerROTs);
52 }
53
54 // loop over RPC collections
55 for( const auto *col : layerPrepRawData.rpcs ){
57 }
58
59 // loop over TGC collections
60 for( const auto *col : layerPrepRawData.tgcs ){
62 }
63
64 // loop over STGC collections
65 for( const auto *col : layerPrepRawData.stgcs ){
67 }
68
69 // loop over MM collections
70 for( const auto *col : layerPrepRawData.mms ){
72 }
73
74 return true;
75 }
bool calibrateAndSelectCluster(const MuonSystemExtension::Intersection &intersection, const COL &prds, std::vector< const MuonClusterOnTrack * > &rots) const
calibrate and select clusters in a collection
bool calibrateAndSelectMdt(const MuonSystemExtension::Intersection &intersection, const MdtPrepDataCollection &prds, std::vector< const MdtDriftCircleOnTrack * > &rots) const
calibrate and select MDTs in a collection
const std::string & layerName(LayerIndex index)
convert LayerIndex into a string
const std::string & regionName(DetectorRegionIndex index)
convert DetectorRegionIndex into a string
@ loc2
generic first and second local coordinate
Definition ParamDefs.h:35
@ loc1
Definition ParamDefs.h:34

◆ calibrateAndSelect() [4/4]

const MuonClusterOnTrack * Muon::MuonPRDSelectionTool::calibrateAndSelect ( const Trk::TrackParameters & pars,
const MuonCluster & clus ) const
virtual

IMuonPRDSelectionTool interface: calibrate and select single cluster.

Implements Muon::IMuonPRDSelectionTool.

Definition at line 128 of file MuonPRDSelectionTool.cxx.

128 {
129
130 // basic info
131 const Identifier& id = clus.identify();
132 const Trk::Surface& surf = clus.detectorElement()->surface(id);
133
134 // calculate intersection
135 const Amg::Vector3D& position = pars.position();
136 const Amg::Vector3D& direction = pars.momentum();
137 Trk::Intersection slIntersection = clus.detectorElement()->surface(id).straightLineIntersection(position,direction,false,false);
138 Amg::Vector3D intersect = slIntersection.position;
139
140
141 // get local position
142 Amg::Vector2D localPosition;
143 if( !surf.globalToLocal(intersect,direction,localPosition) ){
144 ATH_MSG_VERBOSE(" globalToLocal failed for " << m_idHelperSvc->toString(id) );
145 return nullptr;
146 }
147
148 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << " Intersected " << m_idHelperSvc->toString(id) << " local position " << localPosition[Trk::loc1] << " " << localPosition[Trk::loc2];
149
150 if( !surf.insideBounds(localPosition, m_distanceToTubeCut, m_secondCoordinateCut) ) {
151 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << " outside bounds, dropping " << endmsg;
152 return nullptr;
153 }
154 if( msgLvl(MSG::VERBOSE) ) msg(MSG::VERBOSE) << endmsg;
155
156 const MuonClusterOnTrack *cluster = m_clusterCreator->createRIO_OnTrack(clus, intersect);
157
158 if( !cluster ){
159 ATH_MSG_VERBOSE(" --- cluster creation failed ");
160 return nullptr;
161 }
162
163 return cluster;
164 }
ToolHandle< IMuonClusterOnTrackCreator > m_clusterCreator
virtual bool insideBounds(const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const =0
virtual methods to be overwritten by the inherited surfaces
Amg::Vector3D position

◆ calibrateAndSelectCluster() [1/2]

template<class COL>
bool Muon::MuonPRDSelectionTool::calibrateAndSelectCluster ( const MuonSystemExtension::Intersection & intersection,
const COL & prds,
MuonLayerROTs & layerROTs ) const
inlineprivate

calibrate and select clusters in a collection

Definition at line 80 of file MuonPRDSelectionTool.h.

80 {
81 std::vector<const MuonClusterOnTrack*> rots;
83 if( !rots.empty() ) layerROTs.addClusters(rots,m_idHelperSvc->technologyIndex(rots.front()->identify()));
84 return true;
85 }

◆ calibrateAndSelectCluster() [2/2]

template<class COL>
bool Muon::MuonPRDSelectionTool::calibrateAndSelectCluster ( const MuonSystemExtension::Intersection & intersection,
const COL & prds,
std::vector< const MuonClusterOnTrack * > & rots ) const
inline

calibrate and select clusters in a collection

Definition at line 49 of file MuonPRDSelectionTool.h.

49 {
50 for( typename COL::const_iterator it = prds.begin(); it != prds.end();++it ){
51 const MuonClusterOnTrack* rot = calibrateAndSelect(intersection,**it);
52 if( rot ) rots.push_back(rot);
53 }
54 return true;
55 }

◆ calibrateAndSelectMdt() [1/2]

bool Muon::MuonPRDSelectionTool::calibrateAndSelectMdt ( const MuonSystemExtension::Intersection & intersection,
const MdtPrepDataCollection & prds,
MuonLayerROTs & layerROTs ) const
inlineprivate

calibrate and select MDTs in a collection

Definition at line 71 of file MuonPRDSelectionTool.h.

71 {
72 std::vector<const MdtDriftCircleOnTrack*> rots;
74 if( !rots.empty() ) layerROTs.addMdts(rots);
75 return true;
76 }

◆ calibrateAndSelectMdt() [2/2]

bool Muon::MuonPRDSelectionTool::calibrateAndSelectMdt ( const MuonSystemExtension::Intersection & intersection,
const MdtPrepDataCollection & prds,
std::vector< const MdtDriftCircleOnTrack * > & rots ) const
inlinevirtual

calibrate and select MDTs in a collection

Implements Muon::IMuonPRDSelectionTool.

Definition at line 39 of file MuonPRDSelectionTool.h.

39 {
40 for( MdtPrepDataCollection::const_iterator it = prds.begin(); it != prds.end();++it ){
41 const MdtDriftCircleOnTrack* rot = calibrateAndSelect(intersection,**it);
42 if( rot ) rots.push_back(rot);
43 }
44 return true;
45 }
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

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

◆ initialize()

StatusCode Muon::MuonPRDSelectionTool::initialize ( )

Definition at line 19 of file MuonPRDSelectionTool.cxx.

19 {
20
21 ATH_CHECK(m_idHelperSvc.retrieve());
22 ATH_CHECK(m_mdtCreator.retrieve());
23 ATH_CHECK(m_clusterCreator.retrieve());
24 return StatusCode::SUCCESS;
25 }
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ inputHandles()

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

◆ interfaceID()

const InterfaceID & Muon::IMuonPRDSelectionTool::interfaceID ( )
inlinestaticinherited

IAlgTool interface.

Definition at line 48 of file IMuonPRDSelectionTool.h.

static const InterfaceID IID_IMuonPRDSelectionTool("Muon::IMuonPRDSelectionTool", 1, 0)

◆ intersectMDT()

Amg::Vector3D Muon::MuonPRDSelectionTool::intersectMDT ( const MdtPrepData & mdt,
const Amg::Vector3D & position,
const Amg::Vector3D & direction,
bool usePlane ) const
private

intersect MDT surface or tube plane

Definition at line 170 of file MuonPRDSelectionTool.cxx.

170 {
171
172 if( usePlane ){
173 const Identifier& id = mdt.identify();
174 const MuonGM::MdtReadoutElement* detEl = mdt.detectorElement();
175 const Amg::Vector3D& tubePos = mdt.globalPosition();
176 // if there is a phi measurement in the pattern use the global direction to calculate the intersect with the tube
177 // use the intersect to calculate the second coordinate
178 const Amg::Transform3D amdbToGlobal = detEl->AmdbLRSToGlobalTransform();
179
180 // calculate intersect pattern measurement plane
181 const Amg::Vector3D& planeposition = tubePos;
182
183 // always project on plane with normal in radial direction
184 Amg::Vector3D planenormal = !m_idHelperSvc->isEndcap(id) ? amdbToGlobal.linear()*Amg::Vector3D(0.,0.,1.) : amdbToGlobal.linear()*Amg::Vector3D(0.,1.,0.);
185
186 double denom = direction.dot(planenormal);
187 double u = (planenormal.dot(planeposition - position))/denom;
188 Amg::Vector3D piOnPlane = ( position + u * direction);
189 return piOnPlane;
190 }
191 Trk::Intersection intersection = mdt.detectorElement()->surface(mdt.identify()).straightLineIntersection(position,direction,false,false);
192 return intersection.position;
193 }
Eigen::Matrix< double, 3, 1 > Vector3D
Eigen::Affine3d Transform3D
@ u
Enums for curvilinear frames.
Definition ParamDefs.h:77

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::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< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_clusterCreator

ToolHandle<IMuonClusterOnTrackCreator> Muon::MuonPRDSelectionTool::m_clusterCreator {this,"MuonClusterOnTrackCreator","Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackCreator"}
private

Definition at line 89 of file MuonPRDSelectionTool.h.

89{this,"MuonClusterOnTrackCreator","Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackCreator"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_distanceToTubeCut

double Muon::MuonPRDSelectionTool::m_distanceToTubeCut
private

cuts

Definition at line 92 of file MuonPRDSelectionTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idHelperSvc

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

Definition at line 87 of file MuonPRDSelectionTool.h.

87{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_mdtCreator

ToolHandle<IMdtDriftCircleOnTrackCreator> Muon::MuonPRDSelectionTool::m_mdtCreator {this,"MdtDriftCircleOnTrackCreator","Muon::MdtDriftCircleOnTrackCreator/MdtDriftCircleOnTrackCreator"}
private

Definition at line 88 of file MuonPRDSelectionTool.h.

88{this,"MdtDriftCircleOnTrackCreator","Muon::MdtDriftCircleOnTrackCreator/MdtDriftCircleOnTrackCreator"};

◆ m_secondCoordinateCut

double Muon::MuonPRDSelectionTool::m_secondCoordinateCut
private

Definition at line 93 of file MuonPRDSelectionTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: