ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Trk::ConeLayer Class Referencefinal

#include <ConeLayer.h>

Inheritance diagram for Trk::ConeLayer:
Collaboration diagram for Trk::ConeLayer:

Public Types

using ChargedTrackParametersUniquePtr = std::unique_ptr< ParametersBase< 5, Trk::Charged > >
 Unique ptr types. More...
 
using NeutralTrackParametersUniquePtr = std::unique_ptr< ParametersBase< 5, Trk::Neutral > >
 

Public Member Functions

 ConeLayer ()
 Default Constructor. More...
 
 ConeLayer (const Amg::Transform3D &transform, ConeBounds *cbounds, const LayerMaterialProperties &laymatprop, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int laytyp=int(Trk::active))
 Constructor with ConeBounds components and MaterialProperties. More...
 
 ConeLayer (ConeSurface *cyl, const LayerMaterialProperties &laymatprop, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int laytyp=int(Trk::active))
 Constructor with ConeSurface and MaterialProperties. More...
 
 ConeLayer (const Amg::Transform3D &transform, ConeBounds *cbounds, std::unique_ptr< SurfaceArray > surfaceArray, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int laytyp=int(Trk::active))
 Constructor with ConeSurface components and pointer to SurfaceArray (passing ownership) More...
 
 ConeLayer (const Amg::Transform3D &transform, ConeBounds *cbounds, std::unique_ptr< SurfaceArray > surfaceArray, const LayerMaterialProperties &laymatprop, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int laytyp=int(Trk::active))
 Constructor with ConeSurface components, MaterialProperties and pointer SurfaceArray (passing ownership) More...
 
 ConeLayer (const ConeLayer &cla)
 Copy constructor of ConeLayer. More...
 
 ConeLayer (const ConeLayer &cla, const Amg::Transform3D &tr)
 Copy constructor with shift. More...
 
ConeLayeroperator= (const ConeLayer &)
 Assignment operator for ConeLayers. More...
 
virtual ~ConeLayer () override
 Destructor. More...
 
virtual const ConeSurfacesurfaceRepresentation () const override final
 Transforms the layer into a Surface representation for extrapolation. More...
 
virtual ConeSurfacesurfaceRepresentation () override final
 
virtual double preUpdateMaterialFactor (const Trk::TrackParameters &par, Trk::PropDirection dir) const override final
 getting the MaterialProperties back - for pre-update More...
 
virtual double postUpdateMaterialFactor (const Trk::TrackParameters &par, Trk::PropDirection dir) const override final
 getting the MaterialProperties back - for post-update More...
 
virtual void moveLayer (Amg::Transform3D &shift) override final
 move the Layer More...
 
virtual void resizeLayer (const VolumeBounds &, double) override final
 Resize the layer to the tracking volume - not (yet) supported for ConeLayer. More...
 
virtual void resizeAndRepositionLayer (const VolumeBounds &, const Amg::Vector3D &, double) override final
 Resize the layer to the tracking volume - not supported since this an entry layer method. More...
 
virtual bool operator== (const Surface &sf) const override
 Equality operator. More...
 
bool operator== (const ConeSurface &cf) const
 
virtual ConeSurfaceclone () const override
 Implicit Constructor. More...
 
virtual Surface::ChargedTrackParametersUniquePtr createUniqueTrackParameters (double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
 Use the Surface as a ParametersBase constructor, from local parameters - charged. More...
 
virtual Surface::ChargedTrackParametersUniquePtr createUniqueTrackParameters (const Amg::Vector3D &position, const Amg::Vector3D &momentum, double charge, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
 Use the Surface as a ParametersBase constructor, from global parameters - charged. More...
 
virtual NeutralTrackParametersUniquePtr createUniqueNeutralParameters (double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
 Use the Surface as a ParametersBase constructor, from local parameters - neutral. More...
 
virtual NeutralTrackParametersUniquePtr createUniqueNeutralParameters (const Amg::Vector3D &position, const Amg::Vector3D &momentum, double charge, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
 Use the Surface as a ParametersBase constructor, from global parameters - neutral. More...
 
template<int DIM, class T >
std::unique_ptr< ParametersT< DIM, T, ConeSurface > > createUniqueParameters (double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(DIM)> cov=std::nullopt) const
 Use the Surface as a ParametersBase constructor, from local parameters. More...
 
template<int DIM, class T >
std::unique_ptr< ParametersT< DIM, T, ConeSurface > > createUniqueParameters (const Amg::Vector3D &position, const Amg::Vector3D &momentum, double charge, std::optional< AmgSymMatrix(DIM)> cov=std::nullopt) const
 Use the Surface as a ParametersBase constructor, from global parameters. More...
 
constexpr virtual SurfaceType type () const override final
 Return the surface type. More...
 
virtual Amg::RotationMatrix3D measurementFrame (const Amg::Vector3D &glopos, const Amg::Vector3D &glomom) const override final
 Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perigee Surface. More...
 
virtual const Amg::Vector3DglobalReferencePoint () const override final
 Returns a global reference point: For the Cylinder this is \( (R*cos(\phi), R*sin(\phi),0)*transform() \) Where \( \phi \) denotes the averagePhi() of the cylinderBounds. More...
 
virtual Amg::Vector3D normal (const Amg::Vector2D &locpo) const override final
 Return method for surface normal information at a given local point, overwrites the normal() from base class. More...
 
virtual const Amg::Vector3Dnormal () const
 Returns the normal vector of the Surface (i.e. More...
 
virtual const Amg::Vector3DrotSymmetryAxis () const
 Return method for the rotational symmetry axis - the z-Axis of the HepTransform. More...
 
virtual const ConeBoundsbounds () const override final
 This method returns the ConeBounds by reference (NoBounds is not possible for cone) More...
 
virtual bool insideBounds (const Amg::Vector2D &locpos, double tol1=0., double tol2=0.) const override
 This method calls the inside method of ConeBounds. More...
 
virtual bool insideBoundsCheck (const Amg::Vector2D &locpos, const BoundaryCheck &bchk) const override final
 
virtual Amg::Vector2D localParametersToPosition (const LocalParameters &locpars) const override final
 Specialized for ConeSurface : LocalParameters to Vector2D. More...
 
virtual void localToGlobal (const Amg::Vector2D &locp, const Amg::Vector3D &mom, Amg::Vector3D &glob) const override final
 Specialized for ConeSurface : LocalToGlobal method without dynamic memory allocation. More...
 
Amg::Vector3D localToGlobal (const Amg::Vector2D &locpos) const
 This method returns the GlobalPosition from a LocalPosition uses the per surface localToGlobal. More...
 
Amg::Vector3D localToGlobal (const Amg::Vector2D &locpos, const Amg::Vector3D &glomom) const
 This method returns the GlobalPosition from a LocalPosition The LocalPosition can be outside Surface bounds - for generality with momentum. More...
 
Amg::Vector3D localToGlobal (const LocalParameters &locpars) const
 This method returns the GlobalPosition from LocalParameters The LocalParameters can be outside Surface bounds. More...
 
Amg::Vector3D localToGlobal (const LocalParameters &locpars, const Amg::Vector3D &glomom) const
 This method returns the GlobalPosition from LocalParameters The LocalParameters can be outside Surface bounds - for generality with momentum. More...
 
virtual bool globalToLocal (const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override final
 Specialized for ConeSurface : GlobalToLocal method without dynamic memory allocation - boolean checks if on surface. More...
 
std::optional< Amg::Vector2DglobalToLocal (const Amg::Vector3D &glopos, double tol=0.) const
 This method returns the LocalPosition from a provided GlobalPosition. More...
 
std::optional< Amg::Vector2DglobalToLocal (const Amg::Vector3D &glopos, const Amg::Vector3D &glomom) const
 This method returns the LocalPosition from a provided GlobalPosition. More...
 
virtual Intersection straightLineIntersection (const Amg::Vector3D &pos, const Amg::Vector3D &dir, bool forceDir=false, BoundaryCheck bchk=false) const override final
 fast straight line intersection schema - provides closest intersection and (signed) path length More...
 
template<class T >
Intersection straightLineIntersection (const T &pars, bool forceDir=false, const Trk::BoundaryCheck &bchk=false) const
 fst straight line intersection schema - templated for charged and neutral parameters More...
 
virtual DistanceSolution straightLineDistanceEstimate (const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override final
 fast straight line distance to Surface More...
 
virtual DistanceSolution straightLineDistanceEstimate (const Amg::Vector3D &pos, const Amg::Vector3D &dir, bool bound) const override final
 fast straight line distance to Surface - with bounds options More...
 
virtual double pathCorrection (const Amg::Vector3D &, const Amg::Vector3D &) const override
 the pathCorrection for derived classes with thickness More...
 
virtual std::string name () const override
 Return properly formatted class name for screen output. More...
 
bool operator!= (const Surface &sf) const
 Non-equality operator. More...
 
std::unique_ptr< SurfaceuniqueClone () const
 NVI method returning unique_ptr clone. More...
 
const Amg::Transform3DcachedTransform () const
 Return the cached transformation directly. More...
 
const Amg::Transform3Dtransform () const
 Returns HepGeom::Transform3D by reference. More...
 
const Amg::Vector3Dcenter () const
 Returns the center position of the Surface. More...
 
const TrkDetElementBaseassociatedDetectorElement () const
 return associated Detector Element More...
 
Identifier associatedDetectorElementIdentifier () const
 return Identifier of the associated Detector Element More...
 
const Trk::LayerassociatedLayer () const
 return the associated Layer More...
 
const Trk::LayermaterialLayer () const
 return the material Layer More...
 
Trk::LayermaterialLayer ()
 
virtual const Trk::SurfacebaseSurface () const
 return the base surface (simplified for persistification) More...
 
std::optional< Amg::Vector2DpositionOnSurface (const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const
 positionOnSurface() returns the LocalPosition on the Surface,
If BoundaryCheck==false it just returns the value of globalToLocal (including nullptr possibility), if BoundaryCheck==true it checks whether the point is inside bounds or not (returns std::nullopt in this case). More...
 
template<class T >
bool onSurface (const T &parameters, const BoundaryCheck &bchk=BoundaryCheck(true)) const
 The templated Parameters OnSurface method - checks on surface pointer first. More...
 
virtual bool isOnSurface (const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const
 This method returns true if the GlobalPosition is on the Surface for both, within or without check of whether the local position is inside boundaries or not. More...
 
bool isFree () const
 Returns 'true' if this surface is 'free', i.e. More...
 
bool isActive () const
 Return 'true' if this surface is owned by the detector element. More...
 
void setTransform (const Amg::Transform3D &trans)
 Set the transform updates center and normal. More...
 
void setOwner (SurfaceOwner x)
 set Ownership More...
 
SurfaceOwner owner () const
 return ownership More...
 
void setMaterialLayer (std::shared_ptr< Layer > mlay)
 set material layer More...
 
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes. More...
 
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes. More...
 
void associateLayer (const Layer &lay)
 method to associate the associated Trk::Layer which is alreay owned More...
 
const SurfaceArraysurfaceArray () const
 Return the entire SurfaceArray, returns nullptr if no SurfaceArray. More...
 
SurfaceArraysurfaceArray ()
 Return the entire SurfaceArray, returns nullptr if no SurfaceArray. More...
 
const SurfacesubSurface (const Amg::Vector3D &gp) const
 If no subSurface array is defined or no subSurface can be found to the given Amg::Vector3D, it would return 0. More...
 
const SurfacesubSurface (const Amg::Vector2D &lp) const
 If no subSurface array is defined or no subSurface can be found to the given Amg::Vector2D, it would return 0. More...
 
const SurfacesubSurfaceReference (unsigned int idx=0) const
 Return a reference sub surface of the layer, usually the first one in the array. More...
 
double thickness () const
 Return the Thickness of the Layer. More...
 
template<class T >
bool onLayer (const T &parameters, const BoundaryCheck &bcheck=BoundaryCheck(true)) const
 templated on Layer method More...
 
virtual bool isOnLayer (const Amg::Vector3D &gp, const BoundaryCheck &bcheck=BoundaryCheck(true)) const
 isOnLayer() method, using isOnSurface() with Layer specific tolerance More...
 
const LayerMaterialPropertieslayerMaterialProperties () const
 getting the LayerMaterialProperties including full/pre/post update More...
 
const MaterialPropertiesfullUpdateMaterialProperties (const TrackParameters &par) const
 getting the MaterialProperties back - for full update More...
 
const OverlapDescriptoroverlapDescriptor () const
 gettint hte overlap descriptor More...
 
const LayerpreviousLayer (bool skipNavLayer=false) const
 getting what's stored to be the previous Layer, boolean to skip navigation layers More...
 
void setPreviousLayer (const Layer *)
 set the previous Layer More...
 
const LayernextLayer (const Amg::Vector3D &gp, const Amg::Vector3D &udir) const
 getting the next/previous Layer if registered - unit for direction vector required More...
 
const LayernextLayer (bool skipNavLayer=false) const
 getting what's stored to be the next Layer, boolean to skip navigation layers More...
 
void setNextLayer (const Layer *)
 set the next Layer More...
 
const BinUtilitybinUtility () const
 access the BinUtility More...
 
void setBinUtility (const BinUtility *)
 set the BinUtility More...
 
virtual const SurfacesurfaceOnApproach (const Amg::Vector3D &pos, const Amg::Vector3D &dir, PropDirection pdir, const BoundaryCheck &bcheck, bool resolveSubSurfaces=0, const ICompatibilityEstimator *ice=nullptr) const
 Surface seen on approach - if not defined differently, it is the surfaceRepresentation() More...
 
size_t compatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const TrackParameters &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from charged parameters More...
 
size_t compatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const NeutralParameters &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from neutral parameters More...
 
virtual bool hasSubStructure (bool resolveSensitive=false) const
 Has sub-structure method: More...
 
const TrackingVolumeenclosingTrackingVolume () const
 get the confining TrackingVolume More...
 
const DetachedTrackingVolumeenclosingDetachedTrackingVolume () const
 get the confining DetachedTrackingVolume More...
 
const LayerIndexlayerIndex () const
 get the layerIndex More...
 
int layerType () const
 get the Layer coding More...
 
void setLayerType (int identifier)
 set the Layer coding More...
 
void assignMaterialProperties (const LayerMaterialProperties &, double scale=1.0)
 assignMaterialPropeties More...
 
void registerRepresentingVolume (const Volume *theVol)
 register Volume associated to the layer More...
 
const VolumerepresentingVolume () const
 get the Volume associated to the layer More...
 
void setRef (double)
 set the reference measure More...
 
double getRef () const
 get the reference measure More...
 
void encloseTrackingVolume (const TrackingVolume &tvol)
 private method to set the enclosed detached TV More...
 
void encloseDetachedTrackingVolume (const DetachedTrackingVolume &tvol)
 
template<class T >
size_t getCompatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const T &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from charged parameters More...
 
void compactify (size_t &cSurfaces, size_t &tSurfaces)
 register layer index for material map registration More...
 
void registerLayerIndex (const LayerIndex &lIdx)
 

Static Public Member Functions

static std::size_t numberOfInstantiations ()
 

Static Public Attributes

static constexpr SurfaceType staticType = SurfaceType::Cone
 The surface type static constexpr. More...
 
static std::atomic_size_t s_numberOfInstantiations
 

Protected Member Functions

Amg::Transform3D inverseTransformHelper () const
 Helper method to factorize in one place common operations calculate inverse transofrm and multiply with position. More...
 
Amg::Vector3D inverseTransformMultHelper (const Amg::Vector3D &glopos) const
 

Protected Attributes

SharedObject< const ConeBoundsm_bounds
 The global reference point (== a point on thesurface) More...
 
CxxUtils::CachedUniquePtr< Amg::Vector3Dm_referencePoint
 The rotational symmetry axis. More...
 
CxxUtils::CachedUniquePtr< Amg::Vector3Dm_rotSymmetryAxis
 
std::unique_ptr< Transformsm_transforms {}
 
const TrkDetElementBasem_associatedDetElement {}
 Not owning Pointer to the TrkDetElementBase. More...
 
Identifier m_associatedDetElementId {}
 Identifier for the TrkDetElementBase. More...
 
const Layerm_associatedLayer {}
 The associated layer Trk::Layer. More...
 
std::shared_ptr< Layerm_materialLayer {}
 Possibility to attach a material descrption. More...
 
SurfaceOwner m_owner {SurfaceOwner::noOwn}
 enum for surface owner : 0 free surface More...
 
std::unique_ptr< SurfaceArraym_surfaceArray
 MaterialPoperties of this layer Surface. More...
 
std::unique_ptr< LayerMaterialPropertiesm_layerMaterialProperties
 thickness of the Layer More...
 
double m_layerThickness
 descriptor for overlap/next surface (owning ptr) More...
 
std::unique_ptr< OverlapDescriptorm_overlapDescriptor
 
const Layerm_previousLayer
 < the previous Layer according to BinGenUtils More...
 
const Layerm_nextLayer
 BinUtility for next/previous decision. More...
 
const BinUtilitym_binUtility
 Enclosing TrackingVolume. More...
 
const TrackingVolumem_enclosingTrackingVolume
 Enclosing DetachedTrackingVolume. More...
 
const DetachedTrackingVolumem_enclosingDetachedTrackingVolume
 
LayerIndex m_index
 LayerIndex. More...
 
int m_layerType
 active passive layer More...
 
double m_ref
 reference measure for local coordinate convertors More...
 

Static Protected Attributes

static constexpr double s_onSurfaceTolerance = 10e-5
 Tolerance for being on Surface. More...
 

Detailed Description

Class to describe a cylindrical detector layer for tracking, it inhertis from both, Layer base class and ConeSurface class

Author
Ian.W.nosp@m.atso.nosp@m.n@cer.nosp@m.n.ch, Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 39 of file ConeLayer.h.

Member Typedef Documentation

◆ ChargedTrackParametersUniquePtr

Unique ptr types.

Definition at line 124 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ NeutralTrackParametersUniquePtr

Constructor & Destructor Documentation

◆ ConeLayer() [1/7]

Trk::ConeLayer::ConeLayer ( )
inline

Default Constructor.

Definition at line 45 of file ConeLayer.h.

45 {}

◆ ConeLayer() [2/7]

Trk::ConeLayer::ConeLayer ( const Amg::Transform3D transform,
Trk::ConeBounds cbounds,
const LayerMaterialProperties laymatprop,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  laytyp = int(Trk::active) 
)

Constructor with ConeBounds components and MaterialProperties.

Definition at line 19 of file ConeLayer.cxx.

25  : ConeSurface(transform, cbounds)
26  , Layer(laymatprop, thickness, std::move(olap), laytyp)
27 {}

◆ ConeLayer() [3/7]

Trk::ConeLayer::ConeLayer ( Trk::ConeSurface cyl,
const LayerMaterialProperties laymatprop,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  laytyp = int(Trk::active) 
)

Constructor with ConeSurface and MaterialProperties.

Definition at line 29 of file ConeLayer.cxx.

34  : ConeSurface(*cyl)
35  , Layer(laymatprop, thickness, std::move(olap), laytyp)
36 {}

◆ ConeLayer() [4/7]

Trk::ConeLayer::ConeLayer ( const Amg::Transform3D transform,
Trk::ConeBounds cbounds,
std::unique_ptr< SurfaceArray surfaceArray,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  laytyp = int(Trk::active) 
)

Constructor with ConeSurface components and pointer to SurfaceArray (passing ownership)

Definition at line 38 of file ConeLayer.cxx.

44  : ConeSurface(transform, cbounds)
45  , Layer(std::move(surfaceArray), thickness, std::move(olap), laytyp)
46 {}

◆ ConeLayer() [5/7]

Trk::ConeLayer::ConeLayer ( const Amg::Transform3D transform,
Trk::ConeBounds cbounds,
std::unique_ptr< SurfaceArray surfaceArray,
const LayerMaterialProperties laymatprop,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  laytyp = int(Trk::active) 
)

Constructor with ConeSurface components, MaterialProperties and pointer SurfaceArray (passing ownership)

Definition at line 48 of file ConeLayer.cxx.

55  : ConeSurface(transform, cbounds)
56  , Layer(std::move(surfaceArray), laymatprop, thickness, std::move(olap), laytyp)
57 {}

◆ ConeLayer() [6/7]

Trk::ConeLayer::ConeLayer ( const ConeLayer cla)
default

Copy constructor of ConeLayer.

◆ ConeLayer() [7/7]

Trk::ConeLayer::ConeLayer ( const ConeLayer cla,
const Amg::Transform3D tr 
)

Copy constructor with shift.

Definition at line 61 of file ConeLayer.cxx.

63  : ConeSurface(clay, transf)
64  , Layer(clay)
65 {}

◆ ~ConeLayer()

virtual Trk::ConeLayer::~ConeLayer ( )
inlineoverridevirtual

Destructor.

Definition at line 91 of file ConeLayer.h.

91 {}

Member Function Documentation

◆ assignMaterialProperties()

void Trk::Layer::assignMaterialProperties ( const LayerMaterialProperties prop,
double  scale = 1.0 
)
inherited

assignMaterialPropeties

Definition at line 191 of file Layer.cxx.

192  {
193  m_layerMaterialProperties.reset(prop.clone());
194  if (scale != 1.0) {
196  }
197 }

◆ associatedDetectorElement()

const TrkDetElementBase* Trk::Surface::associatedDetectorElement ( ) const
inherited

return associated Detector Element

◆ associatedDetectorElementIdentifier()

Identifier Trk::Surface::associatedDetectorElementIdentifier ( ) const
inherited

return Identifier of the associated Detector Element

◆ associatedLayer()

const Trk::Layer* Trk::Surface::associatedLayer ( ) const
inherited

return the associated Layer

◆ associateLayer()

void Trk::Surface::associateLayer ( const Layer lay)
inherited

method to associate the associated Trk::Layer which is alreay owned

  • only allowed by LayerBuilder
  • only done if no Layer is set already

◆ baseSurface()

virtual const Trk::Surface* Trk::Surface::baseSurface ( ) const
virtualinherited

return the base surface (simplified for persistification)

◆ binUtility()

const BinUtility* Trk::Layer::binUtility ( ) const
inherited

access the BinUtility

◆ bounds()

virtual const ConeBounds& Trk::ConeSurface::bounds ( ) const
finaloverridevirtualinherited

This method returns the ConeBounds by reference (NoBounds is not possible for cone)

Implements Trk::Surface.

◆ cachedTransform()

const Amg::Transform3D* Trk::Surface::cachedTransform ( ) const
inherited

Return the cached transformation directly.

Don't try to make a new transform if it's not here.

◆ center()

const Amg::Vector3D& Trk::Surface::center ( ) const
inherited

Returns the center position of the Surface.

◆ clone()

virtual ConeSurface* Trk::ConeSurface::clone ( ) const
overridevirtualinherited

Implicit Constructor.

Implements Trk::Surface.

◆ compactify()

void Trk::Layer::compactify ( size_t &  cSurfaces,
size_t &  tSurfaces 
)
inherited

register layer index for material map registration

Definition at line 200 of file Layer.cxx.

201 {
202  // set the layer surface representation
203  ++tSurfaces;
204  if (surfaceRepresentation().owner() == Trk::noOwn) {
206  ++cSurfaces;
207  }
208  // set the subsurface representation, usually already owned by DetElement
209  if (m_surfaceArray) {
210  BinnedArraySpan<Trk::Surface * const> surfaces = m_surfaceArray->arrayObjects();
211  for (Trk::Surface * const sIter : surfaces) {
212  if (sIter && (*sIter).owner() == Trk::noOwn) {
213  (*sIter).setOwner(Trk::TGOwn);
214  ++cSurfaces;
215  }
216  ++tSurfaces;
217  }
218  }
219 }

◆ compatibleSurfaces() [1/2]

size_t Trk::Layer::compatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const NeutralParameters pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const
inherited

get compatible surfaces starting from neutral parameters

◆ compatibleSurfaces() [2/2]

size_t Trk::Layer::compatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const TrackParameters pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const
inherited

get compatible surfaces starting from charged parameters

◆ createUniqueNeutralParameters() [1/2]

Trk::Surface::NeutralTrackParametersUniquePtr Trk::ConeSurface::createUniqueNeutralParameters ( const Amg::Vector3D position,
const Amg::Vector3D momentum,
double  charge,
std::optional< AmgSymMatrix(5)>  cov = std::nullopt 
) const
finaloverridevirtualinherited

Use the Surface as a ParametersBase constructor, from global parameters - neutral.

Implements Trk::Surface.

Definition at line 129 of file ConeSurface.cxx.

131  {
132  return std::make_unique<ParametersT<5, Neutral, ConeSurface>>(
133  position, momentum, charge, *this, std::move(cov));
134 }

◆ createUniqueNeutralParameters() [2/2]

Trk::Surface::NeutralTrackParametersUniquePtr Trk::ConeSurface::createUniqueNeutralParameters ( double  l1,
double  l2,
double  phi,
double  theta,
double  qop,
std::optional< AmgSymMatrix(5)>  cov = std::nullopt 
) const
finaloverridevirtualinherited

Use the Surface as a ParametersBase constructor, from local parameters - neutral.

Implements Trk::Surface.

Definition at line 119 of file ConeSurface.cxx.

121  {
122  return std::make_unique<ParametersT<5, Neutral, ConeSurface>>(
123  l1, l2, phi, theta, qop, *this, std::move(cov));
124 }

◆ createUniqueParameters() [1/2]

template<int DIM, class T >
std::unique_ptr<ParametersT<DIM, T, ConeSurface> > Trk::ConeSurface::createUniqueParameters ( const Amg::Vector3D position,
const Amg::Vector3D momentum,
double  charge,
std::optional< AmgSymMatrix(DIM)>  cov = std::nullopt 
) const
inherited

Use the Surface as a ParametersBase constructor, from global parameters.

◆ createUniqueParameters() [2/2]

template<int DIM, class T >
std::unique_ptr<ParametersT<DIM, T, ConeSurface> > Trk::ConeSurface::createUniqueParameters ( double  l1,
double  l2,
double  phi,
double  theta,
double  qop,
std::optional< AmgSymMatrix(DIM)>  cov = std::nullopt 
) const
inherited

Use the Surface as a ParametersBase constructor, from local parameters.

◆ createUniqueTrackParameters() [1/2]

Trk::Surface::ChargedTrackParametersUniquePtr Trk::ConeSurface::createUniqueTrackParameters ( const Amg::Vector3D position,
const Amg::Vector3D momentum,
double  charge,
std::optional< AmgSymMatrix(5)>  cov = std::nullopt 
) const
finaloverridevirtualinherited

Use the Surface as a ParametersBase constructor, from global parameters - charged.

Implements Trk::Surface.

Definition at line 109 of file ConeSurface.cxx.

111  {
112  return std::make_unique<ParametersT<5, Charged, ConeSurface>>(
113  position, momentum, charge, *this, std::move(cov));
114 }

◆ createUniqueTrackParameters() [2/2]

Trk::Surface::ChargedTrackParametersUniquePtr Trk::ConeSurface::createUniqueTrackParameters ( double  l1,
double  l2,
double  phi,
double  theta,
double  qop,
std::optional< AmgSymMatrix(5)>  cov = std::nullopt 
) const
finaloverridevirtualinherited

Use the Surface as a ParametersBase constructor, from local parameters - charged.

Implements Trk::Surface.

Definition at line 100 of file ConeSurface.cxx.

102  {
103  return std::make_unique<ParametersT<5, Charged, ConeSurface>>(
104  l1, l2, phi, theta, qop, *this, std::move(cov));
105 }

◆ dump() [1/2]

MsgStream & Surface::dump ( MsgStream &  sl) const
virtualinherited

Output Method for MsgStream, to be overloaded by child classes.

Reimplemented in Trk::PerigeeSurface, and Trk::DetElementSurface.

Definition at line 143 of file Surface.cxx.

144 {
145  sl << std::setiosflags(std::ios::fixed);
146  sl << std::setprecision(4);
147  sl << name() << std::endl;
148  if (associatedDetectorElement()!=nullptr){
149  sl<<" Detector Type = "<<associatedDetectorElement()->detectorTypeString()<<std::endl;
150  }
151  sl << " Center position (x, y, z) = (" << center().x() << ", " << center().y() << ", " << center().z() << ")"
152  << std::endl;
154  Amg::Vector3D rotX(rot.col(0));
155  Amg::Vector3D rotY(rot.col(1));
156  Amg::Vector3D rotZ(rot.col(2));
157  sl << std::setprecision(6);
158  sl << " Rotation: colX = (" << rotX(0) << ", " << rotX(1) << ", " << rotX(2) << ")" << std::endl;
159  sl << " colY = (" << rotY(0) << ", " << rotY(1) << ", " << rotY(2) << ")" << std::endl;
160  sl << " colZ = (" << rotZ(0) << ", " << rotZ(1) << ", " << rotZ(2) << ")" << std::endl;
161  sl << " Bounds : " << bounds();
162  sl << std::setprecision(-1);
163  return sl;
164 }

◆ dump() [2/2]

std::ostream & Surface::dump ( std::ostream &  sl) const
virtualinherited

Output Method for std::ostream, to be overloaded by child classes.

Reimplemented in Trk::PerigeeSurface, and Trk::DetElementSurface.

Definition at line 168 of file Surface.cxx.

169 {
170  sl << std::setiosflags(std::ios::fixed);
171  sl << std::setprecision(4);
172  sl << name() << std::endl;
173  if (associatedDetectorElement()!=nullptr){
174  sl<<" Detector Type = "<<associatedDetectorElement()->detectorTypeString()<<std::endl;
175  }
176  sl << " Center position (x, y, z) = (" << center().x() << ", " << center().y() << ", " << center().z() << ")"
177  << std::endl;
179  Amg::Vector3D rotX(rot.col(0));
180  Amg::Vector3D rotY(rot.col(1));
181  Amg::Vector3D rotZ(rot.col(2));
182  sl << std::setprecision(6);
183  sl << " Rotation: colX = (" << rotX(0) << ", " << rotX(1) << ", " << rotX(2) << ")" << std::endl;
184  sl << " colY = (" << rotY(0) << ", " << rotY(1) << ", " << rotY(2) << ")" << std::endl;
185  sl << " colZ = (" << rotZ(0) << ", " << rotZ(1) << ", " << rotZ(2) << ")" << std::endl;
186  sl << " Bounds : " << bounds();
187  sl << std::setprecision(-1);
188  return sl;
189 }

◆ encloseDetachedTrackingVolume()

void Trk::Layer::encloseDetachedTrackingVolume ( const DetachedTrackingVolume tvol)
inherited

◆ encloseTrackingVolume()

void Trk::Layer::encloseTrackingVolume ( const TrackingVolume tvol)
inherited

private method to set the enclosed detached TV

◆ enclosingDetachedTrackingVolume()

const DetachedTrackingVolume* Trk::Layer::enclosingDetachedTrackingVolume ( ) const
inherited

get the confining DetachedTrackingVolume

◆ enclosingTrackingVolume()

const TrackingVolume* Trk::Layer::enclosingTrackingVolume ( ) const
inherited

get the confining TrackingVolume

◆ fullUpdateMaterialProperties()

const Trk::MaterialProperties * Trk::Layer::fullUpdateMaterialProperties ( const TrackParameters par) const
inherited

getting the MaterialProperties back - for full update

Definition at line 183 of file Layer.cxx.

184  {
186  return m_layerMaterialProperties->fullMaterial(parm.position());
187  }
188  return nullptr;
189 }

◆ getCompatibleSurfaces()

template<class T >
size_t Trk::Layer::getCompatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const T &  pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const
inherited

get compatible surfaces starting from charged parameters

propagate TrackingGeometry owner downstream

◆ getRef()

double Trk::Layer::getRef ( ) const
inherited

get the reference measure

◆ globalReferencePoint()

const Amg::Vector3D & Trk::ConeSurface::globalReferencePoint ( ) const
finaloverridevirtualinherited

Returns a global reference point: For the Cylinder this is \( (R*cos(\phi), R*sin(\phi),0)*transform() \) Where \( \phi \) denotes the averagePhi() of the cylinderBounds.

Reimplemented from Trk::Surface.

Definition at line 138 of file ConeSurface.cxx.

139 {
140  if (!m_referencePoint) {
141  // this is what was in cylinder
142  // double rMedium = bounds().r();
143  // double phi = bounds().averagePhi();
144  // Trk::GlobalPosition gp(rMedium*cos(phi), rMedium*sin(phi), 0.);
145  Amg::Vector3D gp(0., 0., 0.);
146  m_referencePoint.set(std::make_unique<Amg::Vector3D>(transform() * gp));
147  }
148  return (*m_referencePoint);
149 }

◆ globalToLocal() [1/3]

bool Trk::ConeSurface::globalToLocal ( const Amg::Vector3D glob,
const Amg::Vector3D mom,
Amg::Vector2D loc 
) const
finaloverridevirtualinherited

Specialized for ConeSurface : GlobalToLocal method without dynamic memory allocation - boolean checks if on surface.

Implements Trk::Surface.

Definition at line 204 of file ConeSurface.cxx.

205 {
206  Amg::Vector3D loc3Dframe(inverseTransformMultHelper(glopos));
207  double r = loc3Dframe.z() * bounds().tanAlpha();
208  locpos = Amg::Vector2D(r * atan2(loc3Dframe.y(), loc3Dframe.x()), loc3Dframe.z());
209  // now decide on the quility of the transformation
210  // double inttol = r*0.0001;
211  // inttol = (inttol<0.01) ? 0.01 : 0.01; // ?
212  double inttol = 0.01;
213  return ((loc3Dframe.perp() - r) <= inttol);
214 }

◆ globalToLocal() [2/3]

std::optional<Amg::Vector2D> Trk::Surface::globalToLocal ( const Amg::Vector3D glopos,
const Amg::Vector3D glomom 
) const
inherited

This method returns the LocalPosition from a provided GlobalPosition.

If the GlobalPosition is not on the Surface, it returns a nullopt This method does not check if the calculated LocalPosition is inside surface bounds. If this check is needed, use positionOnSurface - for generality with momentum

◆ globalToLocal() [3/3]

std::optional<Amg::Vector2D> Trk::Surface::globalToLocal ( const Amg::Vector3D glopos,
double  tol = 0. 
) const
inherited

This method returns the LocalPosition from a provided GlobalPosition.

If the GlobalPosition is not on the Surface, it returns nullopt This method does not check if the calculated LocalPosition is inside surface bounds. If this check is needed, use positionOnSurface - only for planar, cylinder surface fully defined

◆ hasSubStructure()

bool Trk::Layer::hasSubStructure ( bool  resolveSensitive = false) const
inlinevirtualinherited

Has sub-structure method:

  • sub-structure depending on : (a) only when required to resolve sub surfaces for sensitive hits (b) also material is ordered with sub structure

Definition at line 252 of file Layer.cxx.

252  {
253  return resolveSensitive && m_surfaceArray;
254 }

◆ insideBounds()

virtual bool Trk::ConeSurface::insideBounds ( const Amg::Vector2D locpos,
double  tol1 = 0.,
double  tol2 = 0. 
) const
overridevirtualinherited

This method calls the inside method of ConeBounds.

Implements Trk::Surface.

◆ insideBoundsCheck()

virtual bool Trk::ConeSurface::insideBoundsCheck ( const Amg::Vector2D locpos,
const BoundaryCheck bchk 
) const
finaloverridevirtualinherited

Implements Trk::Surface.

◆ inverseTransformHelper()

Amg::Transform3D Trk::Surface::inverseTransformHelper ( ) const
protectedinherited

Helper method to factorize in one place common operations calculate inverse transofrm and multiply with position.

◆ inverseTransformMultHelper()

Amg::Vector3D Trk::Surface::inverseTransformMultHelper ( const Amg::Vector3D glopos) const
protectedinherited

◆ isActive()

bool Trk::Surface::isActive ( ) const
inherited

Return 'true' if this surface is owned by the detector element.

◆ isFree()

bool Trk::Surface::isFree ( ) const
inherited

Returns 'true' if this surface is 'free', i.e.

it does not belong to a detector element (and returns false otherwise

◆ isOnLayer()

bool Trk::Layer::isOnLayer ( const Amg::Vector3D gp,
const BoundaryCheck bcheck = BoundaryCheck(true) 
) const
virtualinherited

isOnLayer() method, using isOnSurface() with Layer specific tolerance

Reimplemented in Trk::NavigationLayer, and Trk::MaterialLayer.

Definition at line 149 of file Layer.cxx.

150  {
151  return (surfaceRepresentation())
152  .isOnSurface(gp, bchk, 0.5 * m_layerThickness);
153 }

◆ isOnSurface()

bool Surface::isOnSurface ( const Amg::Vector3D glopo,
const BoundaryCheck bchk = true,
double  tol1 = 0.,
double  tol2 = 0. 
) const
virtualinherited

This method returns true if the GlobalPosition is on the Surface for both, within or without check of whether the local position is inside boundaries or not.

Reimplemented in Trk::StraightLineSurface, Trk::PerigeeSurface, Trk::PlaneSurface, Trk::SlidingDiscSurface, Trk::SlidingCylinderSurface, Trk::CylinderSurface, Trk::DiscSurface, and Trk::DetElementSurface.

Definition at line 123 of file Surface.cxx.

127 {
128  std::optional<Amg::Vector2D> posOnSurface =
129  positionOnSurface(glopo, bchk, tol1, tol2);
130  return static_cast<bool>(posOnSurface);
131 }

◆ layerIndex()

const LayerIndex& Trk::Layer::layerIndex ( ) const
inherited

get the layerIndex

◆ layerMaterialProperties()

const LayerMaterialProperties* Trk::Layer::layerMaterialProperties ( ) const
inherited

getting the LayerMaterialProperties including full/pre/post update

◆ layerType()

int Trk::Layer::layerType ( ) const
inherited

get the Layer coding

◆ localParametersToPosition()

virtual Amg::Vector2D Trk::ConeSurface::localParametersToPosition ( const LocalParameters locpars) const
finaloverridevirtualinherited

Specialized for ConeSurface : LocalParameters to Vector2D.

Reimplemented from Trk::Surface.

◆ localToGlobal() [1/5]

ATH_FLATTEN void Trk::ConeSurface::localToGlobal ( const Amg::Vector2D locp,
const Amg::Vector3D mom,
Amg::Vector3D glob 
) const
finaloverridevirtualinherited

Specialized for ConeSurface : LocalToGlobal method without dynamic memory allocation.

Implements Trk::Surface.

Definition at line 193 of file ConeSurface.cxx.

194 {
195  // create the position in the local 3d frame
196  double r = locpos[Trk::locZ] * bounds().tanAlpha();
197  double phi = locpos[Trk::locRPhi] / r;
198  Amg::Vector3D loc3Dframe(r * cos(phi), r * sin(phi), locpos[Trk::locZ]);
199  // transport it to the globalframe
200  glopos = transform() * loc3Dframe;
201 }

◆ localToGlobal() [2/5]

Amg::Vector3D Trk::Surface::localToGlobal ( const Amg::Vector2D locpos) const
inherited

This method returns the GlobalPosition from a LocalPosition uses the per surface localToGlobal.

◆ localToGlobal() [3/5]

Amg::Vector3D Trk::Surface::localToGlobal ( const Amg::Vector2D locpos,
const Amg::Vector3D glomom 
) const
inherited

This method returns the GlobalPosition from a LocalPosition The LocalPosition can be outside Surface bounds - for generality with momentum.

◆ localToGlobal() [4/5]

Amg::Vector3D Trk::Surface::localToGlobal ( const LocalParameters locpars) const
inherited

This method returns the GlobalPosition from LocalParameters The LocalParameters can be outside Surface bounds.

◆ localToGlobal() [5/5]

Amg::Vector3D Trk::Surface::localToGlobal ( const LocalParameters locpars,
const Amg::Vector3D glomom 
) const
inherited

This method returns the GlobalPosition from LocalParameters The LocalParameters can be outside Surface bounds - for generality with momentum.

◆ materialLayer() [1/2]

Trk::Layer* Trk::Surface::materialLayer ( )
inherited

◆ materialLayer() [2/2]

const Trk::Layer* Trk::Surface::materialLayer ( ) const
inherited

return the material Layer

◆ measurementFrame()

Amg::RotationMatrix3D Trk::ConeSurface::measurementFrame ( const Amg::Vector3D glopos,
const Amg::Vector3D glomom 
) const
finaloverridevirtualinherited

Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perigee Surface.

  • the default implementation is the the RotationMatrix3D of the transform

<

Todo:
fold in alpha

Reimplemented from Trk::Surface.

Definition at line 173 of file ConeSurface.cxx.

174 {
175  Amg::RotationMatrix3D mFrame;
176  // construct the measurement frame
177  Amg::Vector3D measY(transform().rotation().col(2)); // measured Y is the z axis
178  Amg::Vector3D measDepth =
179  Amg::Vector3D(pos.x(), pos.y(), 0.).unit(); // measured z is the position transverse normalized
180  Amg::Vector3D measX(measY.cross(measDepth).unit()); // measured X is what comoes out of it
181  // the columnes
182  mFrame.col(0) = measX;
183  mFrame.col(1) = measY;
184  mFrame.col(2) = measDepth;
185  // return the rotation matrix
187  // return it
188  return mFrame;
189 }

◆ moveLayer()

void Trk::ConeLayer::moveLayer ( Amg::Transform3D shift)
finaloverridevirtual

move the Layer

Implements Trk::Layer.

Definition at line 119 of file ConeLayer.cxx.

120 {
122  std::make_unique<Transforms>(shift * m_transforms->transform);
123 }

◆ name()

virtual std::string Trk::ConeSurface::name ( ) const
overridevirtualinherited

Return properly formatted class name for screen output.

Implements Trk::Surface.

◆ nextLayer() [1/2]

const Trk::Layer * Trk::Layer::nextLayer ( bool  skipNavLayer = false) const
inherited

getting what's stored to be the next Layer, boolean to skip navigation layers

Definition at line 165 of file Layer.cxx.

165  {
166  if (!skipNavLayer) return m_nextLayer;
167  const Trk::Layer* nextMatLayer = m_nextLayer;
168  // get the next Material layer
169  while (nextMatLayer && !nextMatLayer->layerMaterialProperties() &&
170  !nextMatLayer->surfaceArray())
171  nextMatLayer = nextMatLayer->nextLayer();
172  return nextMatLayer;
173 }

◆ nextLayer() [2/2]

const Trk::Layer * Trk::Layer::nextLayer ( const Amg::Vector3D gp,
const Amg::Vector3D udir 
) const
inherited

getting the next/previous Layer if registered - unit for direction vector required

Definition at line 175 of file Layer.cxx.

176  {
177  // no binutility -> no chance to find out the direction
178  if (!m_binUtility) return nullptr;
180  : m_previousLayer;
181 }

◆ normal() [1/2]

virtual const Amg::Vector3D& Trk::Surface::normal ( ) const
virtualinherited

Returns the normal vector of the Surface (i.e.

in generall z-axis of rotation)

Reimplemented in Trk::PerigeeSurface.

◆ normal() [2/2]

virtual Amg::Vector3D Trk::ConeSurface::normal ( const Amg::Vector2D locpo) const
finaloverridevirtualinherited

Return method for surface normal information at a given local point, overwrites the normal() from base class.

Reimplemented from Trk::Surface.

◆ numberOfInstantiations()

static std::size_t Trk::ObjectCounter< Trk::Surface >::numberOfInstantiations ( )
inlinestaticinherited

Definition at line 25 of file TrkObjectCounter.h.

26  {
27 #ifndef NDEBUG
28  return s_numberOfInstantiations.load();
29 #endif
30  return 0;
31  }

◆ onLayer()

template<class T >
bool Trk::Layer::onLayer ( const T &  parameters,
const BoundaryCheck bcheck = BoundaryCheck(true) 
) const
inherited

templated on Layer method

◆ onSurface()

template<class T >
bool Trk::Surface::onSurface ( const T &  parameters,
const BoundaryCheck bchk = BoundaryCheck(true) 
) const
inherited

The templated Parameters OnSurface method - checks on surface pointer first.

◆ operator!=()

bool Trk::Surface::operator!= ( const Surface sf) const
inherited

Non-equality operator.

◆ operator=()

Trk::ConeLayer & Trk::ConeLayer::operator= ( const ConeLayer clay)

Assignment operator for ConeLayers.

Definition at line 68 of file ConeLayer.cxx.

69 {
70  if (this != &clay) {
71  // call the assignments of the base classes
74  }
75  return (*this);
76 }

◆ operator==() [1/2]

bool Trk::ConeSurface::operator== ( const ConeSurface cf) const
inherited

◆ operator==() [2/2]

bool Trk::ConeSurface::operator== ( const Surface sf) const
overridevirtualinherited

Equality operator.

Implements Trk::Surface.

Definition at line 152 of file ConeSurface.cxx.

153 {
154  // first check the type not to compare apples with oranges
155  if (sf.type()!=Trk::SurfaceType::Cone){
156  return false;
157  }
158  return (*this) == static_cast<const Trk::ConeSurface&>(sf);
159 }

◆ overlapDescriptor()

const OverlapDescriptor* Trk::Layer::overlapDescriptor ( ) const
inherited

gettint hte overlap descriptor

◆ owner()

SurfaceOwner Trk::Surface::owner ( ) const
inherited

return ownership

◆ pathCorrection()

double Trk::ConeSurface::pathCorrection ( const Amg::Vector3D pos,
const Amg::Vector3D mom 
) const
overridevirtualinherited

the pathCorrection for derived classes with thickness

Reimplemented from Trk::Surface.

Definition at line 364 of file ConeSurface.cxx.

365 {
366  // (cos phi cos alpha, sin phi cos alpha, sgn z sin alpha)
367  bool applyTransform = !(transform().isApprox(Amg::Transform3D::Identity()));
368  Amg::Vector3D posLocal = applyTransform ? inverseTransformMultHelper(pos) : pos;
369  double phi = posLocal.phi();
370  double sgn = posLocal.z() > 0. ? -1. : +1.;
371  Amg::Vector3D normalC(cos(phi) * bounds().cosAlpha(), sin(phi) * bounds().cosAlpha(), sgn * bounds().sinAlpha());
372  if (applyTransform)
373  normalC = transform() * normalC;
374  // back in global frame
375  double cAlpha = normalC.dot(mom.unit());
376  return (cAlpha != 0.) ? std::abs(1. / cAlpha) : 1.; // ST undefined for cAlpha=0
377 }

◆ positionOnSurface()

std::optional< Amg::Vector2D > Surface::positionOnSurface ( const Amg::Vector3D glopo,
const BoundaryCheck bchk = true,
double  tol1 = 0.,
double  tol2 = 0. 
) const
inherited

positionOnSurface() returns the LocalPosition on the Surface,
If BoundaryCheck==false it just returns the value of globalToLocal (including nullptr possibility), if BoundaryCheck==true it checks whether the point is inside bounds or not (returns std::nullopt in this case).

Definition at line 106 of file Surface.cxx.

110 {
111  std::optional<Amg::Vector2D> posOnSurface = globalToLocal(glopo, tol1);
112  if (!bchk){
113  return posOnSurface;
114  }
115  if (posOnSurface && insideBounds(*posOnSurface, tol1, tol2)){
116  return posOnSurface;
117  }
118  return std::nullopt;
119 }

◆ postUpdateMaterialFactor()

double Trk::ConeLayer::postUpdateMaterialFactor ( const Trk::TrackParameters par,
Trk::PropDirection  dir 
) const
finaloverridevirtual

getting the MaterialProperties back - for post-update

Reimplemented from Trk::Layer.

Definition at line 106 of file ConeLayer.cxx.

108 {
110  return 0;
111  const Amg::Vector3D& parmPos = parm.position();
112  Amg::Vector3D pastStep(parmPos + dir * parm.momentum().normalized());
113  if (pastStep.perp() > parm.position().perp())
114  return Trk::Layer::m_layerMaterialProperties->alongPostFactor();
115  return Trk::Layer::m_layerMaterialProperties->oppositePostFactor();
116 }

◆ preUpdateMaterialFactor()

double Trk::ConeLayer::preUpdateMaterialFactor ( const Trk::TrackParameters par,
Trk::PropDirection  dir 
) const
finaloverridevirtual

getting the MaterialProperties back - for pre-update

Reimplemented from Trk::Layer.

Definition at line 92 of file ConeLayer.cxx.

94 {
96  return 0.;
97  // calculate the direction to the normal
98  const Amg::Vector3D& parmPos = parm.position();
99  Amg::Vector3D pastStep(parmPos + dir * parm.momentum().normalized());
100  if (pastStep.perp() > parm.position().perp())
101  return Trk::Layer::m_layerMaterialProperties->alongPreFactor();
102  return Trk::Layer::m_layerMaterialProperties->oppositePreFactor();
103 }

◆ previousLayer()

const Trk::Layer * Trk::Layer::previousLayer ( bool  skipNavLayer = false) const
inherited

getting what's stored to be the previous Layer, boolean to skip navigation layers

Definition at line 155 of file Layer.cxx.

155  {
156  if (!skipNavLayer) return m_previousLayer;
157  const Trk::Layer* prevMatLayer = m_previousLayer;
158  // get the previoys Material layer
159  while (prevMatLayer && !prevMatLayer->layerMaterialProperties() &&
160  !prevMatLayer->surfaceArray())
161  prevMatLayer = prevMatLayer->previousLayer();
162  return prevMatLayer;
163 }

◆ registerLayerIndex()

void Trk::Layer::registerLayerIndex ( const LayerIndex lIdx)
inherited

◆ registerRepresentingVolume()

void Trk::Layer::registerRepresentingVolume ( const Volume theVol)
inherited

register Volume associated to the layer

◆ representingVolume()

const Volume* Trk::Layer::representingVolume ( ) const
inherited

get the Volume associated to the layer

◆ resizeAndRepositionLayer()

virtual void Trk::ConeLayer::resizeAndRepositionLayer ( const VolumeBounds ,
const Amg::Vector3D ,
double   
)
inlinefinaloverridevirtual

Resize the layer to the tracking volume - not supported since this an entry layer method.

Implements Trk::Layer.

Definition at line 116 of file ConeLayer.h.

119  {}

◆ resizeLayer()

virtual void Trk::ConeLayer::resizeLayer ( const VolumeBounds ,
double   
)
inlinefinaloverridevirtual

Resize the layer to the tracking volume - not (yet) supported for ConeLayer.

Implements Trk::Layer.

Definition at line 112 of file ConeLayer.h.

112 {}

◆ rotSymmetryAxis()

const Amg::Vector3D & Trk::ConeSurface::rotSymmetryAxis ( ) const
virtualinherited

Return method for the rotational symmetry axis - the z-Axis of the HepTransform.

Definition at line 162 of file ConeSurface.cxx.

163 {
164  if (!m_rotSymmetryAxis) {
166  m_rotSymmetryAxis.set(std::make_unique<Amg::Vector3D>(zAxis));
167  }
168  return (*m_rotSymmetryAxis);
169 }

◆ setBinUtility()

void Trk::Layer::setBinUtility ( const BinUtility )
inherited

set the BinUtility

◆ setLayerType()

void Trk::Layer::setLayerType ( int  identifier)
inherited

set the Layer coding

◆ setMaterialLayer()

void Trk::Surface::setMaterialLayer ( std::shared_ptr< Layer mlay)
inherited

set material layer

◆ setNextLayer()

void Trk::Layer::setNextLayer ( const Layer )
inherited

set the next Layer

◆ setOwner()

void Trk::Surface::setOwner ( SurfaceOwner  x)
inherited

set Ownership

◆ setPreviousLayer()

void Trk::Layer::setPreviousLayer ( const Layer )
inherited

set the previous Layer

◆ setRef()

void Trk::Layer::setRef ( double  )
inherited

set the reference measure

◆ setTransform()

void Trk::Surface::setTransform ( const Amg::Transform3D trans)
inherited

Set the transform updates center and normal.

◆ straightLineDistanceEstimate() [1/2]

Trk::DistanceSolution Trk::ConeSurface::straightLineDistanceEstimate ( const Amg::Vector3D pos,
const Amg::Vector3D dir 
) const
finaloverridevirtualinherited

fast straight line distance to Surface

distance to surface

Implements Trk::Surface.

Definition at line 284 of file ConeSurface.cxx.

285 {
286  return straightLineDistanceEstimate(pos, dir, false);
287 }

◆ straightLineDistanceEstimate() [2/2]

Trk::DistanceSolution Trk::ConeSurface::straightLineDistanceEstimate ( const Amg::Vector3D pos,
const Amg::Vector3D dir,
bool  bound 
) const
finaloverridevirtualinherited

fast straight line distance to Surface - with bounds options

Implements Trk::Surface.

Definition at line 290 of file ConeSurface.cxx.

291 {
292  double tol = 0.001;
293 
294  Amg::Vector3D Cntr = center(); // tip of the cone (i.e. join between halves)
295  Amg::Vector3D N = normal(); // this is the z-direction of the cone in
296  // global coordiantes i believe
297 
298  Amg::Vector3D dPos = pos - Cntr; // pos w.r.t. cone tip
299  double posLength = sqrt(dPos.dot(dPos));
300  if (posLength < tol) // at origin of cone => on cone (avoid div by zero)
301  return {1, 0., true, 0.};
302  double posProj = dPos.dot(N);
303  double posProjAngle = acos(posProj / posLength);
304  double currDist = posLength * sin(posProjAngle - atan(bounds().tanAlpha()));
305  // solution on the surface
306  if (std::abs(currDist) < tol)
307  return {1, currDist, true, 0.};
308 
309  // transform to a frame with the cone along z, with the tip a 0
311  Amg::Vector3D locFrameDir = transform().rotation().inverse() * dir.normalized();
312 
313  // solutions are in the form of a solution to a quadratic eqn.
314  double tan2Alpha = bounds().tanAlpha() * bounds().tanAlpha();
315  double A = locFrameDir.x() * locFrameDir.x() + locFrameDir.y() * locFrameDir.y() -
316  tan2Alpha * locFrameDir.z() * locFrameDir.z();
317  double B = 2 * (locFrameDir.x() * locFramePos.x() + locFrameDir.y() * locFramePos.y() -
318  tan2Alpha * locFrameDir.z() * locFramePos.z());
319  double C = locFramePos.x() * locFramePos.x() + locFramePos.y() * locFramePos.y() -
320  tan2Alpha * locFramePos.z() * locFramePos.z();
321  if (A == 0.)
322  A += 1e-16; // avoid div by zero
323  // use Andreas' quad solver, much more stable than what I wrote
324  Trk::RealQuadraticEquation solns(A, B, C);
325 
326  double d2bound = 0.;
327  if (bound && solns.solutions != Trk::none) {
328  std::optional<Amg::Vector2D> p = std::nullopt;
329  if (std::abs(solns.first) < std::abs(solns.second)){
330  p = Surface::globalToLocal(locFramePos + solns.first * locFrameDir);
331  }
332  else{
333  p = Surface::globalToLocal(locFramePos + solns.second * locFrameDir);
334  }
335  if (p) {
336  d2bound = bounds().minDistance(*p);
337  }
338  if (d2bound < 0){
339  d2bound = 0;
340  }
341  }
342  double totDist = d2bound > 0. ? sqrt(d2bound * d2bound + currDist * currDist) : currDist;
343 
344  switch (solns.solutions) {
345  case Trk::none:{
346  return {0, totDist, true, 0., 0.};
347  }
348  case Trk::one:{
349  return {1, totDist, true, solns.first};
350  }
351  case Trk::two:{
352  if (std::abs(solns.first) < std::abs(solns.second)){
353  return {2, totDist, true, solns.first, solns.second};
354  }
355  return {2, totDist, true, solns.second, solns.first};
356  }
357  default:{
358  return {0, totDist, true, 0., 0.};
359  }
360  };
361 }

◆ straightLineIntersection() [1/2]

Trk::Intersection Trk::ConeSurface::straightLineIntersection ( const Amg::Vector3D pos,
const Amg::Vector3D dir,
bool  forceDir = false,
Trk::BoundaryCheck  bchk = false 
) const
finaloverridevirtualinherited

fast straight line intersection schema - provides closest intersection and (signed) path length

mathematical motivation:

The calculation will be done in the 3-dim frame of the cone, i.e. the symmetry axis of the cone is the z-axis, x- and y-axis are perpenticular to the the z-axis. In this frame the cone is centered around the origin. Therefore the two points describing the line have to be first recalculated into the new frame. Suppose, this is done, the points of intersection can be obtained as follows:

The cone is described by the implicit equation \(x^2 + y^2 = z^2 \tan \alpha\) where \(\alpha\) is opening half-angle of the cone the and the line by the parameter equation (with \(t\) the parameter and \(x_1\) and \(x_2\) are points on the line) \((x,y,z) = \vec x_1 + (\vec x_2 - \vec x_2) t \). The intersection is the given to the value of \(t\) where the \((x,y,z)\) coordinates of the line satisfy the implicit equation of the cone. Inserting the expression for the points on the line into the equation of the cone and rearranging to the form of a gives (letting \( \vec x_d = \frac{\vec x_2 - \vec x_1}{\abs{\vec x_2 - \vec x_1}} \)): \(t^2 (x_d^2 + y_d^2 - z_d^2 \tan^2 \alpha) + 2 t (x_1 x_d + y_1 y_d - z_1 z_d \tan^2 \alpha) + (x_1^2 + y_1^2 - z_1^2 \tan^2 \alpha) = 0 \) Solving the above for \(t\) and putting the values into the equation of the line gives the points of intersection. \(t\) is also the length of the path, since we normalized \(x_d\) to be unit length.

Implements Trk::Surface.

Definition at line 217 of file ConeSurface.cxx.

221 {
222  // transform to a frame with the cone along z, with the tip at 0
223  const Amg::Transform3D surfaceTrans = inverseTransformHelper();
224  Amg::Vector3D tpos1 = surfaceTrans * pos;
225  Amg::Vector3D tdir = surfaceTrans.linear() * dir;
226  // see the header for the formula derivation
227  double tan2Alpha = bounds().tanAlpha() * bounds().tanAlpha();
228  double A = tdir.x() * tdir.x() + tdir.y() * tdir.y() - tan2Alpha * tdir.z() * tdir.z();
229  double B = 2 * (tdir.x() * tpos1.x() + tdir.y() * tpos1.y() - tan2Alpha * dir.z() * tpos1.z());
230  double C = tpos1.x() * tpos1.x() + tpos1.y() * tpos1.y() - tan2Alpha * tpos1.z() * tpos1.z();
231  if (A == 0.)
232  A += 1e-16; // avoid div by zero
233 
234  // use Andreas' quad solver, much more stable than what I wrote
235  Trk::RealQuadraticEquation solns(A, B, C);
236 
237  Amg::Vector3D solution(0., 0., 0.);
238  double path = 0.;
239  bool isValid = false;
240  if (solns.solutions != Trk::none) {
241  double t1 = solns.first;
242  Amg::Vector3D soln1Loc(tpos1 + t1 * dir);
243  isValid = forceDir ? (t1 > 0.) : true;
244  // there's only one solution
245  if (solns.solutions == Trk::one) {
246  solution = soln1Loc;
247  path = t1;
248  } else {
249  double t2 = solns.second;
250  Amg::Vector3D soln2Loc(tpos1 + t2 * dir);
251  // both solutions have the same sign
252  if (t1 * t2 > 0. || !forceDir) {
253  if (t1 * t1 < t2 * t2) {
254  solution = soln1Loc;
255  path = t1;
256  } else {
257  solution = soln2Loc;
258  path = t2;
259  }
260  } else {
261  if (t1 > 0.) {
262  solution = soln1Loc;
263  path = t1;
264  } else {
265  solution = soln2Loc;
266  path = t2;
267  }
268  }
269  }
270  }
271  solution = transform() * solution;
272 
273  isValid = bchk ? (isValid && isOnSurface(solution)) : isValid;
274  return Trk::Intersection(solution, path, isValid);
275 }

◆ straightLineIntersection() [2/2]

template<class T >
Intersection Trk::Surface::straightLineIntersection ( const T &  pars,
bool  forceDir = false,
const Trk::BoundaryCheck bchk = false 
) const
inlineinherited

fst straight line intersection schema - templated for charged and neutral parameters

Definition at line 351 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

355  {
357  pars.position(), pars.momentum().unit(), forceDir, bchk);
358  }

◆ subSurface() [1/2]

const Trk::Surface * Trk::Layer::subSurface ( const Amg::Vector2D lp) const
inherited

If no subSurface array is defined or no subSurface can be found to the given Amg::Vector2D, it would return 0.

Definition at line 126 of file Layer.cxx.

126  {
127  if (m_surfaceArray) return m_surfaceArray->object(lp);
128  return nullptr;
129 }

◆ subSurface() [2/2]

const Trk::Surface * Trk::Layer::subSurface ( const Amg::Vector3D gp) const
inherited

If no subSurface array is defined or no subSurface can be found to the given Amg::Vector3D, it would return 0.

Definition at line 121 of file Layer.cxx.

121  {
122  if (m_surfaceArray) return m_surfaceArray->object(gp);
123  return nullptr;
124 }

◆ subSurfaceReference()

const Trk::Surface * Trk::Layer::subSurfaceReference ( unsigned int  idx = 0) const
inherited

Return a reference sub surface of the layer, usually the first one in the array.

  • if an index is given (and the index is in range), this surface is returned

Definition at line 131 of file Layer.cxx.

131  {
132  // the reference surface
133  const Trk::Surface* referenceSurface = nullptr;
134  if (m_surfaceArray) {
135  // get a reference surface
136  Trk::BinnedArraySpan<Trk::Surface const * const> surfaces = std::as_const(*m_surfaceArray).arrayObjects();
137  // get a reference surface
138  unsigned int rfSurfaces = surfaces.size();
139  if (idx && idx < rfSurfaces) return surfaces[idx];
140  // get the first one which is non zero
141  for (unsigned int rsf = 0; rsf < rfSurfaces; ++rsf) {
142  referenceSurface = surfaces[rsf];
143  if (referenceSurface) break;
144  }
145  }
146  return referenceSurface;
147 }

◆ surfaceArray() [1/2]

SurfaceArray* Trk::Layer::surfaceArray ( )
inherited

Return the entire SurfaceArray, returns nullptr if no SurfaceArray.

◆ surfaceArray() [2/2]

const SurfaceArray* Trk::Layer::surfaceArray ( ) const
inherited

Return the entire SurfaceArray, returns nullptr if no SurfaceArray.

◆ surfaceOnApproach()

const Trk::Surface & Trk::Layer::surfaceOnApproach ( const Amg::Vector3D pos,
const Amg::Vector3D dir,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  resolveSubSurfaces = 0,
const ICompatibilityEstimator *  ice = nullptr 
) const
virtualinherited

Surface seen on approach - if not defined differently, it is the surfaceRepresentation()

Reimplemented in Trk::DiscLayer, and Trk::CylinderLayer.

Definition at line 223 of file Layer.cxx.

226  {
227  return surfaceRepresentation();
228 }

◆ surfaceRepresentation() [1/2]

const Trk::ConeSurface & Trk::ConeLayer::surfaceRepresentation ( ) const
finaloverridevirtual

Transforms the layer into a Surface representation for extrapolation.

Implements Trk::Layer.

Definition at line 79 of file ConeLayer.cxx.

80 {
81  return (*this);
82 }

◆ surfaceRepresentation() [2/2]

Trk::ConeSurface & Trk::ConeLayer::surfaceRepresentation ( )
finaloverridevirtual

Implements Trk::Layer.

Definition at line 85 of file ConeLayer.cxx.

86 {
87  return (*this);
88 }

◆ thickness()

double Trk::Layer::thickness ( ) const
inherited

Return the Thickness of the Layer.

◆ transform()

const Amg::Transform3D& Trk::Surface::transform ( ) const
inherited

Returns HepGeom::Transform3D by reference.

◆ type()

constexpr virtual SurfaceType Trk::ConeSurface::type ( ) const
constexprfinaloverridevirtualinherited

Return the surface type.

Implements Trk::Surface.

◆ uniqueClone()

std::unique_ptr<Surface> Trk::Surface::uniqueClone ( ) const
inherited

NVI method returning unique_ptr clone.

Member Data Documentation

◆ m_associatedDetElement

const TrkDetElementBase* Trk::Surface::m_associatedDetElement {}
protectedinherited

Not owning Pointer to the TrkDetElementBase.

Definition at line 439 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ m_associatedDetElementId

Identifier Trk::Surface::m_associatedDetElementId {}
protectedinherited

◆ m_associatedLayer

const Layer* Trk::Surface::m_associatedLayer {}
protectedinherited

The associated layer Trk::Layer.

  • layer in which the Surface is embedded (not owning pointed)

Definition at line 448 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ m_binUtility

const BinUtility* Trk::Layer::m_binUtility
protectedinherited

Enclosing TrackingVolume.

Definition at line 301 of file Layer.h.

◆ m_bounds

SharedObject<const ConeBounds> Trk::ConeSurface::m_bounds
protectedinherited

The global reference point (== a point on thesurface)

Definition at line 276 of file ConeSurface.h.

◆ m_enclosingDetachedTrackingVolume

const DetachedTrackingVolume* Trk::Layer::m_enclosingDetachedTrackingVolume
protectedinherited

Definition at line 305 of file Layer.h.

◆ m_enclosingTrackingVolume

const TrackingVolume* Trk::Layer::m_enclosingTrackingVolume
protectedinherited

Enclosing DetachedTrackingVolume.

Definition at line 303 of file Layer.h.

◆ m_index

LayerIndex Trk::Layer::m_index
protectedinherited

LayerIndex.

Definition at line 307 of file Layer.h.

◆ m_layerMaterialProperties

std::unique_ptr<LayerMaterialProperties> Trk::Layer::m_layerMaterialProperties
protectedinherited

thickness of the Layer

Definition at line 289 of file Layer.h.

◆ m_layerThickness

double Trk::Layer::m_layerThickness
protectedinherited

descriptor for overlap/next surface (owning ptr)

Definition at line 291 of file Layer.h.

◆ m_layerType

int Trk::Layer::m_layerType
protectedinherited

active passive layer

Definition at line 308 of file Layer.h.

◆ m_materialLayer

std::shared_ptr<Layer> Trk::Surface::m_materialLayer {}
protectedinherited

Possibility to attach a material descrption.

  • potentially given as the associated material layer (not owning pointer)

Definition at line 453 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ m_nextLayer

const Layer* Trk::Layer::m_nextLayer
protectedinherited

BinUtility for next/previous decision.

Definition at line 299 of file Layer.h.

◆ m_overlapDescriptor

std::unique_ptr<OverlapDescriptor> Trk::Layer::m_overlapDescriptor
protectedinherited

Definition at line 293 of file Layer.h.

◆ m_owner

SurfaceOwner Trk::Surface::m_owner {SurfaceOwner::noOwn}
protectedinherited

enum for surface owner : 0 free surface

Definition at line 455 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ m_previousLayer

const Layer* Trk::Layer::m_previousLayer
protectedinherited

< the previous Layer according to BinGenUtils

next Layer according to BinGenUtils

Definition at line 297 of file Layer.h.

◆ m_ref

double Trk::Layer::m_ref
protectedinherited

reference measure for local coordinate convertors

Definition at line 309 of file Layer.h.

◆ m_referencePoint

CxxUtils::CachedUniquePtr<Amg::Vector3D> Trk::ConeSurface::m_referencePoint
protectedinherited

The rotational symmetry axis.

Definition at line 278 of file ConeSurface.h.

◆ m_rotSymmetryAxis

CxxUtils::CachedUniquePtr<Amg::Vector3D> Trk::ConeSurface::m_rotSymmetryAxis
protectedinherited

Definition at line 280 of file ConeSurface.h.

◆ m_surfaceArray

std::unique_ptr<SurfaceArray> Trk::Layer::m_surfaceArray
protectedinherited

MaterialPoperties of this layer Surface.

Definition at line 287 of file Layer.h.

◆ m_transforms

std::unique_ptr<Transforms> Trk::Surface::m_transforms {}
protectedinherited

◆ s_numberOfInstantiations

std::atomic_size_t Trk::ObjectCounter< Trk::Surface >::s_numberOfInstantiations
inlinestaticinherited

Definition at line 22 of file TrkObjectCounter.h.

◆ s_onSurfaceTolerance

constexpr double Trk::Surface::s_onSurfaceTolerance = 10e-5
staticconstexprprotectedinherited

Tolerance for being on Surface.

Definition at line 458 of file Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h.

◆ staticType

constexpr SurfaceType Trk::ConeSurface::staticType = SurfaceType::Cone
staticconstexprinherited

The surface type static constexpr.

Definition at line 55 of file ConeSurface.h.


The documentation for this class was generated from the following files:
Trk::ConeBounds::minDistance
virtual double minDistance(const Amg::Vector2D &pos) const override
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
Definition: ConeBounds.cxx:74
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
beamspotman.r
def r
Definition: beamspotman.py:676
Trk::Intersection
Definition: Intersection.h:24
Trk::Surface::associatedDetectorElement
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:126
Trk::ConeSurface::operator=
ConeSurface & operator=(const ConeSurface &csf)
Assignment operator.
Definition: ConeSurface.cxx:86
Trk::Surface::name
virtual std::string name() const =0
Return properly formatted class name.
PlotCalibFromCool.zAxis
zAxis
Definition: PlotCalibFromCool.py:76
Trk::BinUtility::orderDirection
LayerOrder orderDirection(const Amg::Vector3D &position, const Amg::Vector3D &direction, size_t ba=0) const
Return the oder direciton for fast interlinking.
Definition: BinUtility.h:171
Trk::Layer::m_previousLayer
const Layer * m_previousLayer
< the previous Layer according to BinGenUtils
Definition: Layer.h:297
Trk::Surface::straightLineIntersection
Intersection straightLineIntersection(const T &pars, bool forceDir=false, const Trk::BoundaryCheck &bchk=false) const
fst straight line intersection schema - templated for charged and neutral parameters
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:351
Trk::Surface::setOwner
void setOwner(SurfaceOwner x)
set Ownership
Trk::noOwn
@ noOwn
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:54
Trk::next
@ next
Definition: BinningData.h:33
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
Trk::Layer::m_layerMaterialProperties
std::unique_ptr< LayerMaterialProperties > m_layerMaterialProperties
thickness of the Layer
Definition: Layer.h:289
Trk::ConeSurface::ConeSurface
ConeSurface()
Default Constructor.
Definition: ConeSurface.cxx:20
Trk::Layer::m_surfaceArray
std::unique_ptr< SurfaceArray > m_surfaceArray
MaterialPoperties of this layer Surface.
Definition: Layer.h:287
Trk::locRPhi
@ locRPhi
Definition: ParamDefs.h:46
DMTest::C
C_v1 C
Definition: C.h:26
ALFA_EventTPCnv_Dict::t1
std::vector< ALFA_RawDataCollection_p1 > t1
Definition: ALFA_EventTPCnvDict.h:43
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
Trk::none
@ none
Definition: TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:21
Trk::one
@ one
Definition: TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:22
Trk::ConeSurface::m_rotSymmetryAxis
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_rotSymmetryAxis
Definition: ConeSurface.h:280
bound
@ bound
Definition: L1CaloPprPlotManager.h:74
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
isValid
bool isValid(const T &p)
Definition: AtlasPID.h:214
Trk::Surface::center
const Amg::Vector3D & center() const
Returns the center position of the Surface.
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
Trk::ConeSurface::bounds
virtual const ConeBounds & bounds() const override final
This method returns the ConeBounds by reference (NoBounds is not possible for cone)
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
Trk::Surface::inverseTransformMultHelper
Amg::Vector3D inverseTransformMultHelper(const Amg::Vector3D &glopos) const
dqt_zlumi_alleff_HIST.A
A
Definition: dqt_zlumi_alleff_HIST.py:110
Trk::Layer::surfaceArray
const SurfaceArray * surfaceArray() const
Return the entire SurfaceArray, returns nullptr if no SurfaceArray.
Trk::TrkDetElementBase::detectorTypeString
std::string detectorTypeString() const
Returns a string of the Detector element type.
Definition: TrkDetElementBase.cxx:10
Trk::Surface::isOnSurface
virtual bool isOnSurface(const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const
This method returns true if the GlobalPosition is on the Surface for both, within or without check of...
Definition: Surface.cxx:123
skel.l2
l2
Definition: skel.GENtoEVGEN.py:426
Trk::Surface::m_transforms
std::unique_ptr< Transforms > m_transforms
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:436
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
Trk::Layer::surfaceRepresentation
virtual const Surface & surfaceRepresentation() const =0
Transforms the layer into a Surface representation for extrapolation.
Trk::locZ
@ locZ
local cylindrical
Definition: ParamDefs.h:48
ParticleGun_EoverP_Config.momentum
momentum
Definition: ParticleGun_EoverP_Config.py:63
Trk::two
@ two
Definition: TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:23
Trk::theta
@ theta
Definition: ParamDefs.h:72
xAOD::rotation
rotation
Definition: TrackSurface_v1.cxx:15
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::Layer::operator=
Layer & operator=(const Layer &lay)
Assignment operator for Derived classes.
Definition: Layer.cxx:98
Trk::Surface::normal
virtual const Amg::Vector3D & normal() const
Returns the normal vector of the Surface (i.e.
Trk::Layer::nextLayer
const Layer * nextLayer(const Amg::Vector3D &gp, const Amg::Vector3D &udir) const
getting the next/previous Layer if registered - unit for direction vector required
Definition: Layer.cxx:175
Trk::RealQuadraticEquation
Definition: TrkDetDescr/TrkSurfaces/TrkSurfaces/RealQuadraticEquation.h:52
Trk::SurfaceType::Cone
@ Cone
Trk::Surface::inverseTransformHelper
Amg::Transform3D inverseTransformHelper() const
Helper method to factorize in one place common operations calculate inverse transofrm and multiply wi...
beamspotman.dir
string dir
Definition: beamspotman.py:623
Trk::Layer::Layer
Layer()
Default Constructor.
Definition: Layer.cxx:18
Trk::ConeBounds::tanAlpha
double tanAlpha() const
This method returns the average phi.
Trk::TGOwn
@ TGOwn
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:55
Trk::Surface::bounds
virtual const SurfaceBounds & bounds() const =0
Surface Bounds method.
charge
double charge(const T &p)
Definition: AtlasPID.h:494
dqt_zlumi_alleff_HIST.B
B
Definition: dqt_zlumi_alleff_HIST.py:110
Trk::Layer::thickness
double thickness() const
Return the Thickness of the Layer.
Trk::Surface::insideBounds
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
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
query_example.col
col
Definition: query_example.py:7
Trk::Layer::m_nextLayer
const Layer * m_nextLayer
BinUtility for next/previous decision.
Definition: Layer.h:299
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Trk::Layer::m_binUtility
const BinUtility * m_binUtility
Enclosing TrackingVolume.
Definition: Layer.h:301
ALFA_EventTPCnv_Dict::t2
std::vector< ALFA_RawDataContainer_p1 > t2
Definition: ALFA_EventTPCnvDict.h:44
Trk::ObjectCounter< Trk::Surface >::s_numberOfInstantiations
static std::atomic_size_t s_numberOfInstantiations
Definition: TrkObjectCounter.h:22
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
Trk::Surface::globalToLocal
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...
Trk::ConeSurface::m_referencePoint
CxxUtils::CachedUniquePtr< Amg::Vector3D > m_referencePoint
The rotational symmetry axis.
Definition: ConeSurface.h:278
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
Amg::RotationMatrix3D
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Definition: GeoPrimitives.h:49
Trk::Layer::previousLayer
const Layer * previousLayer(bool skipNavLayer=false) const
getting what's stored to be the previous Layer, boolean to skip navigation layers
Definition: Layer.cxx:155
Trk::Surface::positionOnSurface
std::optional< Amg::Vector2D > positionOnSurface(const Amg::Vector3D &glopo, const BoundaryCheck &bchk=true, double tol1=0., double tol2=0.) const
positionOnSurface() returns the LocalPosition on the Surface, If BoundaryCheck==false it just return...
Definition: Surface.cxx:106
Trk::Layer::layerMaterialProperties
const LayerMaterialProperties * layerMaterialProperties() const
getting the LayerMaterialProperties including full/pre/post update
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
Trk::Layer::m_layerThickness
double m_layerThickness
descriptor for overlap/next surface (owning ptr)
Definition: Layer.h:291
Trk::ConeSurface
Definition: ConeSurface.h:51
Trk::phi
@ phi
Definition: ParamDefs.h:81
skel.l1
l1
Definition: skel.GENtoEVGEN.py:425
Trk::ConeSurface::straightLineDistanceEstimate
virtual DistanceSolution straightLineDistanceEstimate(const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override final
fast straight line distance to Surface
Definition: ConeSurface.cxx:284
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
Trk::Surface::transform
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
Trk::BinnedArraySpan
std::span< T > BinnedArraySpan
Definition: BinnedArray.h:34
Trk::Layer
Definition: Layer.h:73