ATLAS Offline Software
BoundarySubtractedPlaneSurface.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 // BoundarySubtractedPlaneSurface.h, (c) ATLAS Detector software
8 
9 #ifndef TRKVOLUMES_BOUNDARYSUBTRACTEDPLANESURFACE_H
10 #define TRKVOLUMES_BOUNDARYSUBTRACTEDPLANESURFACE_H
11 
12 // Trk
18 
19 namespace Trk {
20 
21 // class TrackParameters;
22 class Volume;
23 
36 template <class Tvol>
38  : virtual public BoundarySurface<Tvol>,
39  public SubtractedPlaneSurface {
42 
43  public:
46 
49  const BoundarySubtractedPlaneSurface<Tvol>& bps) = default;
50 
53  const BoundarySubtractedPlaneSurface& vol) = default;
54 
55  virtual ~BoundarySubtractedPlaneSurface() = default;
56 
58  BoundarySubtractedPlaneSurface(const Tvol* inside, const Tvol* outside,
59  const SubtractedPlaneSurface& psf)
61 
64  SharedObject<VolumeArray> outsideArray,
65  const SubtractedPlaneSurface& psf)
66  : BoundarySurface<Tvol>(insideArray, outsideArray),
68 
70  BoundarySubtractedPlaneSurface(const Tvol* inside, const Tvol* outside,
71  const SubtractedPlaneSurface& psf,
72  const Amg::Transform3D& tr)
73  : BoundarySurface<Tvol>(inside, outside),
74  SubtractedPlaneSurface(psf, tr) {}
75 
80  virtual const Tvol* attachedVolume(const TrackParameters& parms,
81  PropDirection dir) const override final;
82 
85  virtual const Tvol* attachedVolume(const Amg::Vector3D& pos,
86  const Amg::Vector3D& mom,
87  PropDirection dir) const override final;
88 
90  virtual const Surface& surfaceRepresentation() const override final;
91  virtual Surface& surfaceRepresentation() override final;
92 };
93 
94 // Hash include inline functions
95 #include "TrkVolumes/BoundarySubtractedPlaneSurface.icc"
96 
97 } // end of namespace Trk
98 
99 #endif // TRKVOLUMES_BOUNDARYSUBTRACTEDPLANESURFACE_H
100 
Trk::BoundarySubtractedPlaneSurface::BoundarySubtractedPlaneSurface
BoundarySubtractedPlaneSurface(SharedObject< VolumeArray > insideArray, SharedObject< VolumeArray > outsideArray, const SubtractedPlaneSurface &psf)
Constructor for a Boundary with two VolumeArrays attached to it.
Definition: BoundarySubtractedPlaneSurface.h:63
Trk::BoundarySubtractedPlaneSurface::BoundarySubtractedPlaneSurface
BoundarySubtractedPlaneSurface(const Tvol *inside, const Tvol *outside, const SubtractedPlaneSurface &psf)
Constructor for a Boundary with exact two Volumes attached to it.
Definition: BoundarySubtractedPlaneSurface.h:58
Trk::BoundarySubtractedPlaneSurface::operator=
BoundarySubtractedPlaneSurface & operator=(const BoundarySubtractedPlaneSurface &vol)=default
Assignment operator.
Trk::BoundarySurface
Definition: BoundarySurface.h:50
TrackParameters.h
Trk::BoundarySubtractedPlaneSurface::surfaceRepresentation
virtual const Surface & surfaceRepresentation() const override final
The Surface Representation of this.
Trk::BoundarySubtractedPlaneSurface::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...
PropDirection.h
Trk::BoundarySubtractedPlaneSurface::~BoundarySubtractedPlaneSurface
virtual ~BoundarySubtractedPlaneSurface()=default
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Trk::BoundarySubtractedPlaneSurface::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...
GeoPrimitives.h
Trk::PropDirection
PropDirection
Definition: PropDirection.h:19
SubtractedPlaneSurface.h
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
Trk::BoundarySubtractedPlaneSurface
Definition: BoundarySubtractedPlaneSurface.h:39
Trk::SubtractedPlaneSurface
Definition: SubtractedPlaneSurface.h:32
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::BoundarySubtractedPlaneSurface::BoundarySubtractedPlaneSurface
BoundarySubtractedPlaneSurface()=default
Default Constructor - needed for pool and inherited classes.
Trk::ParametersBase
Definition: ParametersBase.h:55
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
Trk::BoundarySubtractedPlaneSurface::VolumeArray
BinnedArray< Tvol > VolumeArray
typedef the BinnedArray
Definition: BoundarySubtractedPlaneSurface.h:41
Trk::BoundarySubtractedPlaneSurface::BoundarySubtractedPlaneSurface
BoundarySubtractedPlaneSurface(const BoundarySubtractedPlaneSurface< Tvol > &bps)=default
Copy constructor.
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::BoundarySubtractedPlaneSurface::BoundarySubtractedPlaneSurface
BoundarySubtractedPlaneSurface(const Tvol *inside, const Tvol *outside, const SubtractedPlaneSurface &psf, const Amg::Transform3D &tr)
Copy constructor with a shift.
Definition: BoundarySubtractedPlaneSurface.h:70
Trk::outside
@ outside
Definition: PropDirection.h:29
Trk::BinnedArray
Definition: BinnedArray.h:38
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75