CMS 3D CMS Logo

VolumeBasedMagneticField.h
Go to the documentation of this file.
1 #ifndef MagneticField_VolumeBasedMagneticField_h
2 #define MagneticField_VolumeBasedMagneticField_h
3 
13 
14 // Class for testing VolumeBasedMagneticField
15 class testMagneticField;
16 class testMagGeometryAnalyzer;
17 
19  // For tests
20  friend class testMagneticField;
22 
23 public:
24  // VolumeBasedMagneticField(const DDCompactView & cpv);
25  VolumeBasedMagneticField(int geomVersion,
26  const std::vector<MagBLayer*>& theBLayers,
27  const std::vector<MagESector*>& theESectors,
28  const std::vector<MagVolume6Faces*>& theBVolumes,
29  const std::vector<MagVolume6Faces*>& theEVolumes,
30  float rMax,
31  float zMax,
32  const MagneticField* param = nullptr,
33  bool isParamFieldOwned = false);
34  ~VolumeBasedMagneticField() override;
35 
38 
40  MagneticField* clone() const override;
41 
42  GlobalVector inTesla(const GlobalPoint& g) const override;
43 
44  GlobalVector inTeslaUnchecked(const GlobalPoint& g) const override;
45 
46  const MagVolume* findVolume(const GlobalPoint& gp) const;
47 
48  bool isDefined(const GlobalPoint& gp) const override;
49 
50 private:
52  float maxRsq;
53  float maxZ;
57 };
58 
59 #endif
Vector3DBase
Definition: Vector3DBase.h:8
photonAnalyzer_cfi.rMax
rMax
Definition: photonAnalyzer_cfi.py:91
photonAnalyzer_cfi.zMax
zMax
Definition: photonAnalyzer_cfi.py:95
VolumeBasedMagneticField::maxRsq
float maxRsq
Definition: VolumeBasedMagneticField.h:52
VolumeBasedMagneticField
Definition: VolumeBasedMagneticField.h:18
VolumeBasedMagneticField::maxZ
float maxZ
Definition: VolumeBasedMagneticField.h:53
VolumeBasedMagneticField::paramField
const MagneticField * paramField
Definition: VolumeBasedMagneticField.h:54
VolumeBasedMagneticField::inTesla
GlobalVector inTesla(const GlobalPoint &g) const override
Field value ad specified global point, in Tesla.
Definition: VolumeBasedMagneticField.cc:40
VolumeBasedMagneticField::isDefined
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
Definition: VolumeBasedMagneticField.cc:61
VolumeBasedMagneticField::findVolume
const MagVolume * findVolume(const GlobalPoint &gp) const
Definition: VolumeBasedMagneticField.cc:59
VolumeBasedMagneticField::clone
MagneticField * clone() const override
Returns a shallow copy.
Definition: VolumeBasedMagneticField.cc:31
VolumeBasedMagneticField::~VolumeBasedMagneticField
~VolumeBasedMagneticField() override
Definition: VolumeBasedMagneticField.cc:33
Point3DBase< float, GlobalTag >
MagGeometry
Definition: MagGeometry.h:23
runTauDisplay.gp
gp
Definition: runTauDisplay.py:431
MagVolume
Definition: MagVolume.h:13
VolumeBasedMagneticField::field
const MagGeometry * field
Definition: VolumeBasedMagneticField.h:51
MagneticField.h
VolumeBasedMagneticField::testMagGeometryAnalyzer
friend class testMagGeometryAnalyzer
Definition: VolumeBasedMagneticField.h:21
MagGeometry.h
VolumeBasedMagneticField::magGeomOwned
bool magGeomOwned
Definition: VolumeBasedMagneticField.h:55
VolumeBasedMagneticField::VolumeBasedMagneticField
VolumeBasedMagneticField(int geomVersion, const std::vector< MagBLayer * > &theBLayers, const std::vector< MagESector * > &theESectors, const std::vector< MagVolume6Faces * > &theBVolumes, const std::vector< MagVolume6Faces * > &theEVolumes, float rMax, float zMax, const MagneticField *param=nullptr, bool isParamFieldOwned=false)
Definition: VolumeBasedMagneticField.cc:4
VolumeBasedMagneticField::paramFieldOwned
bool paramFieldOwned
Definition: VolumeBasedMagneticField.h:56
MagneticField
Definition: MagneticField.h:19
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
VolumeBasedMagneticField::inTeslaUnchecked
GlobalVector inTeslaUnchecked(const GlobalPoint &g) const override
Definition: VolumeBasedMagneticField.cc:52
VolumeBasedMagneticField::testMagneticField
friend class testMagneticField
Definition: VolumeBasedMagneticField.h:20