ATLAS Offline Software
BoundaryDiscSurface.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 // BoundaryDiscSurface.h, (c) ATLAS Detector software
8 
9 #ifndef TRKVOLUMES_BOUNDARYDISCSURFACE_H
10 #define TRKVOLUMES_BOUNDARYDISCSURFACE_H
11 
12 // Trk
18 // CLHEP
20 
21 namespace Trk {
22 
23 // class TrackParameters;
24 class Volume;
25 
38 template <class Tvol>
39 class BoundaryDiscSurface final : virtual public BoundarySurface<Tvol>,
40  public DiscSurface {
43 
44  public:
46  BoundaryDiscSurface() = default;
47 
50 
53 
55  virtual ~BoundaryDiscSurface() = default;
56 
58  BoundaryDiscSurface(const Tvol* inside, const Tvol* outside,
59  const DiscSurface& dsf)
60  : BoundarySurface<Tvol>(inside, outside), DiscSurface(dsf) {}
61 
64  SharedObject<VolumeArray> outsideArray,
65  const DiscSurface& dsf)
66  : BoundarySurface<Tvol>(insideArray, outsideArray), DiscSurface(dsf) {}
67 
69  BoundaryDiscSurface(const Tvol* inside, const Tvol* outside,
70  const DiscSurface& dsf, const Amg::Transform3D& tr)
71  : BoundarySurface<Tvol>(inside, outside), DiscSurface(dsf, tr) {}
72 
79  virtual const Tvol* attachedVolume(const TrackParameters& parms,
80  PropDirection dir) const override final;
81 
84  virtual const Tvol* attachedVolume(const Amg::Vector3D& pos,
85  const Amg::Vector3D& mom,
86  PropDirection dir) const override final;
87 
89  virtual const Surface& surfaceRepresentation() const override final;
90  virtual Surface& surfaceRepresentation() override final;
91 };
92 
93 // Hash include inline functions
94 #include "TrkVolumes/BoundaryDiscSurface.icc"
95 
96 } // end of namespace Trk
97 
98 #endif // TRKVOLUMES_BOUNDARYDISCSURFACE_H
99 
Trk::BoundaryDiscSurface::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...
Trk::BoundarySurface
Definition: BoundarySurface.h:50
Trk::BoundaryDiscSurface::BoundaryDiscSurface
BoundaryDiscSurface(const Tvol *inside, const Tvol *outside, const DiscSurface &dsf)
Constructor for a Boundary with exact two Volumes attached to it.
Definition: BoundaryDiscSurface.h:58
TrackParameters.h
Trk::BoundaryDiscSurface::VolumeArray
BinnedArray< Tvol > VolumeArray
typedef the BinnedArray
Definition: BoundaryDiscSurface.h:42
Trk::BoundaryDiscSurface::BoundaryDiscSurface
BoundaryDiscSurface(SharedObject< VolumeArray > insideArray, SharedObject< VolumeArray > outsideArray, const DiscSurface &dsf)
Constructor for a Boundary with two VolumeArrays attached to it.
Definition: BoundaryDiscSurface.h:63
Trk::BoundaryDiscSurface::surfaceRepresentation
virtual const Surface & surfaceRepresentation() const override final
The Surface Representation of this.
PropDirection.h
Trk::BoundaryDiscSurface::~BoundaryDiscSurface
virtual ~BoundaryDiscSurface()=default
Virtual Destructor.
Trk::BoundaryDiscSurface::BoundaryDiscSurface
BoundaryDiscSurface(const Tvol *inside, const Tvol *outside, const DiscSurface &dsf, const Amg::Transform3D &tr)
Copy constructor with a shift.
Definition: BoundaryDiscSurface.h:69
Trk::DiscSurface
Definition: DiscSurface.h:54
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
GeoPrimitives.h
Trk::PropDirection
PropDirection
Definition: PropDirection.h:19
Trk::BoundaryDiscSurface
Definition: BoundaryDiscSurface.h:40
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
Trk::BoundaryDiscSurface::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...
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::ParametersBase
Definition: ParametersBase.h:55
SharedObject.h
Trk::BoundaryDiscSurface::operator=
BoundaryDiscSurface & operator=(const BoundaryDiscSurface &vol)=default
Assignment operator.
Trk::BoundaryDiscSurface::BoundaryDiscSurface
BoundaryDiscSurface()=default
Default Constructor - needed for pool and inherited classes.
beamspotman.dir
string dir
Definition: beamspotman.py:623
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
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
DiscSurface.h
Trk::BoundaryDiscSurface::BoundaryDiscSurface
BoundaryDiscSurface(const BoundaryDiscSurface< Tvol > &bds)=default
Copy constructor.
Trk::outside
@ outside
Definition: PropDirection.h:29
Trk::BinnedArray
Definition: BinnedArray.h:38
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75