CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
MagVolume Class Referenceabstract

#include <MagVolume.h>

Inheritance diagram for MagVolume:
GloballyPositioned< float > MagneticField defaultRKPropagator::RKMagVolume MagCylinder MagVolume6Faces

Public Types

typedef GloballyPositioned< float > Base
 
typedef GloballyPositioned< float >::GlobalPoint GlobalPoint
 
typedef GloballyPositioned< float >::GlobalVector GlobalVector
 
typedef GloballyPositioned< float >::LocalPoint LocalPoint
 
typedef GloballyPositioned< float >::LocalVector LocalVector
 
- Public Types inherited from GloballyPositioned< float >
typedef Point3DBase< float, GlobalTagGlobalPoint
 
typedef Vector3DBase< float, GlobalTagGlobalVector
 
typedef Point3DBase< float, LocalTagLocalPoint
 
typedef Vector3DBase< float, LocalTagLocalVector
 
typedef Point3DBase< float, GlobalTagPositionType
 
typedef TkRotation< float > RotationType
 
typedef float Scalar
 

Public Member Functions

virtual const std::vector< VolumeSide > & faces () const =0
 Access to volume faces. More...
 
GlobalVector fieldInTesla (const GlobalPoint &lp) const
 
LocalVector fieldInTesla (const LocalPoint &lp) const
 
virtual bool inside (const GlobalPoint &gp, double tolerance=0.) const =0
 
virtual bool inside (const LocalPoint &lp, double tolerance=0.) const
 
::GlobalVector inTesla (const ::GlobalPoint &gp) const override
 
bool isIron () const
 Temporary hack to pass information on material. Will eventually be replaced! More...
 
 MagVolume (const PositionType &pos, const RotationType &rot, const MagneticFieldProvider< float > *mfp, double sf=1.)
 
void ownsFieldProvider (bool o)
 
const MagneticFieldProvider< float > * provider () const
 
void setIsIron (bool iron)
 
 ~MagVolume () override
 
- Public Member Functions inherited from GloballyPositioned< float >
float eta () const
 
 GloballyPositioned ()
 
 GloballyPositioned (const PositionType &pos, const RotationType &rot)
 
void move (const GlobalVector &displacement)
 
float phi () const
 
const PositionTypeposition () const
 
void rotate (const RotationType &rotation)
 
const RotationTyperotation () const
 
GlobalPoint toGlobal (const LocalPoint &lp) const
 
GlobalVector toGlobal (const LocalVector &lv) const
 
Point3DBase< U, GlobalTagtoGlobal (const Point3DBase< U, LocalTag > &lp) const
 
Vector3DBase< U, GlobalTagtoGlobal (const Vector3DBase< U, LocalTag > &lv) const
 
LocalPoint toLocal (const GlobalPoint &gp) const
 
LocalVector toLocal (const GlobalVector &gv) const
 
Point3DBase< U, LocalTagtoLocal (const Point3DBase< U, GlobalTag > &gp) const
 
Vector3DBase< U, LocalTagtoLocal (const Vector3DBase< U, GlobalTag > &gv) const
 
virtual ~GloballyPositioned ()
 
- Public Member Functions inherited from MagneticField
virtual MagneticFieldclone () const
 
GlobalVector inInverseGeV (const GlobalPoint &gp) const
 Field value ad specified global point, in 1/Gev. More...
 
GlobalVector inKGauss (const GlobalPoint &gp) const
 Field value ad specified global point, in KGauss. More...
 
virtual GlobalVector inTesla (const GlobalPoint &gp) const =0
 Field value ad specified global point, in Tesla. More...
 
virtual GlobalVector inTeslaUnchecked (const GlobalPoint &gp) const
 
virtual bool isDefined (const GlobalPoint &) const
 True if the point is within the region where the concrete field. More...
 
 MagneticField ()
 
 MagneticField (const MagneticField &orig)
 
int nominalValue () const
 The nominal field value for this map in kGauss. More...
 
virtual ~MagneticField ()
 

Private Attributes

bool isIronFlag
 
const MagneticFieldProvider< float > * theProvider
 
bool theProviderOwned
 
double theScalingFactor
 

Additional Inherited Members

- Static Public Member Functions inherited from GloballyPositioned< float >
static float iniEta ()
 
static float iniPhi ()
 

Detailed Description

Definition at line 13 of file MagVolume.h.

Member Typedef Documentation

◆ Base

Definition at line 15 of file MagVolume.h.

◆ GlobalPoint

Definition at line 18 of file MagVolume.h.

◆ GlobalVector

Definition at line 19 of file MagVolume.h.

◆ LocalPoint

Definition at line 16 of file MagVolume.h.

◆ LocalVector

Definition at line 17 of file MagVolume.h.

Constructor & Destructor Documentation

◆ MagVolume()

MagVolume::MagVolume ( const PositionType pos,
const RotationType rot,
const MagneticFieldProvider< float > *  mfp,
double  sf = 1. 
)
inline

Definition at line 21 of file MagVolume.h.

22  : Base(pos, rot),
23  MagneticField(),
24  theProvider(mfp),
25  theProviderOwned(false),
26  theScalingFactor(sf),
27  isIronFlag(false) {}

◆ ~MagVolume()

MagVolume::~MagVolume ( )
override

Definition at line 6 of file MagVolume.cc.

6  {
8  delete theProvider;
9 }

References theProvider, and theProviderOwned.

Member Function Documentation

◆ faces()

virtual const std::vector<VolumeSide>& MagVolume::faces ( ) const
pure virtual

Access to volume faces.

Implemented in MagVolume6Faces, defaultRKPropagator::RKMagVolume, and MagCylinder.

Referenced by SteppingHelixPropagator::refToMagVolume().

◆ fieldInTesla() [1/2]

MagVolume::GlobalVector MagVolume::fieldInTesla ( const GlobalPoint lp) const

◆ fieldInTesla() [2/2]

MagVolume::LocalVector MagVolume::fieldInTesla ( const LocalPoint lp) const

◆ inside() [1/2]

virtual bool MagVolume::inside ( const GlobalPoint gp,
double  tolerance = 0. 
) const
pure virtual

◆ inside() [2/2]

virtual bool MagVolume::inside ( const LocalPoint lp,
double  tolerance = 0. 
) const
inlinevirtual

Reimplemented in MagCylinder.

Definition at line 35 of file MagVolume.h.

35 { return inside(toGlobal(lp), tolerance); }

References inside(), GloballyPositioned< float >::toGlobal(), and tolerance.

Referenced by inside().

◆ inTesla()

::GlobalVector MagVolume::inTesla ( const ::GlobalPoint gp) const
inlineoverride

◆ isIron()

bool MagVolume::isIron ( ) const
inline

Temporary hack to pass information on material. Will eventually be replaced!

Definition at line 45 of file MagVolume.h.

45 { return isIronFlag; }

References isIronFlag.

Referenced by SteppingHelixPropagator::isYokeVolume().

◆ ownsFieldProvider()

void MagVolume::ownsFieldProvider ( bool  o)
inline

◆ provider()

const MagneticFieldProvider<float>* MagVolume::provider ( ) const
inline

Definition at line 37 of file MagVolume.h.

37 { return theProvider; }

References theProvider.

◆ setIsIron()

void MagVolume::setIsIron ( bool  iron)
inline

Definition at line 46 of file MagVolume.h.

46 { isIronFlag = iron; }

References isIronFlag.

Member Data Documentation

◆ isIronFlag

bool MagVolume::isIronFlag
private

Definition at line 54 of file MagVolume.h.

Referenced by isIron(), and setIsIron().

◆ theProvider

const MagneticFieldProvider<float>* MagVolume::theProvider
private

Definition at line 50 of file MagVolume.h.

Referenced by fieldInTesla(), provider(), and ~MagVolume().

◆ theProviderOwned

bool MagVolume::theProviderOwned
private

Definition at line 51 of file MagVolume.h.

Referenced by ownsFieldProvider(), and ~MagVolume().

◆ theScalingFactor

double MagVolume::theScalingFactor
private

Definition at line 52 of file MagVolume.h.

Referenced by fieldInTesla().

MagVolume::isIronFlag
bool isIronFlag
Definition: MagVolume.h:54
pos
Definition: PixelAliasList.h:18
MagVolume::theProviderOwned
bool theProviderOwned
Definition: MagVolume.h:51
MagVolume::theScalingFactor
double theScalingFactor
Definition: MagVolume.h:52
MagVolume::theProvider
const MagneticFieldProvider< float > * theProvider
Definition: MagVolume.h:50
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
MagneticField::MagneticField
MagneticField()
Definition: MagneticField.cc:8
MagVolume::inside
virtual bool inside(const GlobalPoint &gp, double tolerance=0.) const =0
MagVolume::Base
GloballyPositioned< float > Base
Definition: MagVolume.h:15
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
MagneticFieldProvider::valueInTesla
virtual LocalVectorType valueInTesla(const LocalPointType &p) const =0
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:26
GloballyPositioned< float >::toLocal
LocalPoint toLocal(const GlobalPoint &gp) const
Definition: GloballyPositioned.h:98
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
MagVolume::fieldInTesla
LocalVector fieldInTesla(const LocalPoint &lp) const
Definition: MagVolume.cc:11
GloballyPositioned< float >::toGlobal
GlobalPoint toGlobal(const LocalPoint &lp) const
Definition: GloballyPositioned.h:66