ATLAS Offline Software
BoundaryPlaneSurface.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // BoundaryPlaneSurface.h, (c) ATLAS Detector software
8 
9 #ifndef TRKVOLUMES_BOUNDARYPLANESURFACE_H
10 #define TRKVOLUMES_BOUNDARYPLANESURFACE_H
11 
12 // Trk
18 
19 namespace Trk {
20 
21 // class TrackParameters;
22 class Volume;
23 
36 template <class Tvol>
37 class BoundaryPlaneSurface final : virtual public BoundarySurface<Tvol>,
38  public PlaneSurface {
41 
42  public:
44  BoundaryPlaneSurface() = default;
45 
48 
51 
53  virtual ~BoundaryPlaneSurface() = default;
54 
56  BoundaryPlaneSurface(const Tvol* inside, const Tvol* outside,
57  const PlaneSurface& psf)
58  : BoundarySurface<Tvol>(inside, outside), PlaneSurface(psf) {}
59 
62  SharedObject<VolumeArray> outsideArray,
63  const PlaneSurface& psf)
64  : BoundarySurface<Tvol>(insideArray, outsideArray), PlaneSurface(psf) {}
65 
67  BoundaryPlaneSurface(const Tvol* inside, const Tvol* outside,
68  const PlaneSurface& psf, const Amg::Transform3D& tr)
69  : BoundarySurface<Tvol>(inside, outside), PlaneSurface(psf, tr) {}
70 
75  virtual const Tvol* attachedVolume(const TrackParameters& parms,
76  PropDirection dir) const override final;
77 
80  virtual const Tvol* attachedVolume(const Amg::Vector3D& pos,
81  const Amg::Vector3D& mom,
82  PropDirection dir) const override final;
83 
85  virtual const Surface& surfaceRepresentation() const override final;
86  virtual Surface& surfaceRepresentation() override final;
87 };
88 
89 // Hash include inline functions
90 #include "TrkVolumes/BoundaryPlaneSurface.icc"
91 
92 } // end of namespace Trk
93 
94 #endif // TRKVOLUMES_BOUNDARYPLANESURFACE_H
95 
Trk::BoundaryPlaneSurface::BoundaryPlaneSurface
BoundaryPlaneSurface()=default
Default Constructor - needed for pool and inherited classes.
Trk::BoundaryPlaneSurface::BoundaryPlaneSurface
BoundaryPlaneSurface(const Tvol *inside, const Tvol *outside, const PlaneSurface &psf)
Constructor for a Boundary with exact two Volumes attached to it.
Definition: BoundaryPlaneSurface.h:56
Trk::BoundarySurface
Definition: BoundarySurface.h:50
TrackParameters.h
PropDirection.h
Trk::BoundaryPlaneSurface::surfaceRepresentation
virtual const Surface & surfaceRepresentation() const override final
The Surface Representation of this.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Trk::BoundaryPlaneSurface
Definition: BoundaryPlaneSurface.h:38
GeoPrimitives.h
Trk::PropDirection
PropDirection
Definition: PropDirection.h:19
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::BoundaryPlaneSurface::BoundaryPlaneSurface
BoundaryPlaneSurface(const BoundaryPlaneSurface< Tvol > &bps)=default
Copy constructor.
Trk::ParametersBase
Definition: ParametersBase.h:55
beamspotman.dir
string dir
Definition: beamspotman.py:623
Trk::BoundaryPlaneSurface::BoundaryPlaneSurface
BoundaryPlaneSurface(SharedObject< VolumeArray > insideArray, SharedObject< VolumeArray > outsideArray, const PlaneSurface &psf)
Constructor for a Boundary with two VolumeArrays attached to it.
Definition: BoundaryPlaneSurface.h:61
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::BoundaryPlaneSurface::VolumeArray
BinnedArray< Tvol > VolumeArray
typedef the BinnedArray
Definition: BoundaryPlaneSurface.h:40
Trk::BoundaryPlaneSurface::BoundaryPlaneSurface
BoundaryPlaneSurface(const Tvol *inside, const Tvol *outside, const PlaneSurface &psf, const Amg::Transform3D &tr)
Copy constructor with a shift.
Definition: BoundaryPlaneSurface.h:67
Trk::BoundaryPlaneSurface::attachedVolume
virtual const Tvol * attachedVolume(const TrackParameters &parms, PropDirection dir) const override final
Get the next Volume depending on the TrackParameters and the requested direction, gives back 0 if the...
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
BoundarySurface.h
Trk::inside
@ inside
Definition: PropDirection.h:29
Trk::SharedObject
std::shared_ptr< T > SharedObject
Definition: SharedObject.h:24
Trk::PlaneSurface
Definition: PlaneSurface.h:64
PlaneSurface.h
Trk::BoundaryPlaneSurface::attachedVolume
virtual const Tvol * attachedVolume(const Amg::Vector3D &pos, const Amg::Vector3D &mom, PropDirection dir) const override final
Get the next Volume depending on GlobalPosition, GlobalMomentum, dir on the TrackParameters and the r...
Trk::BoundaryPlaneSurface::~BoundaryPlaneSurface
virtual ~BoundaryPlaneSurface()=default
Virtual Destructor.
Trk::outside
@ outside
Definition: PropDirection.h:29
Trk::BinnedArray
Definition: BinnedArray.h:38
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
Trk::BoundaryPlaneSurface::operator=
BoundaryPlaneSurface & operator=(const BoundaryPlaneSurface &vol)=default
Assignment operator.