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, float zMax,
31  const MagneticField* param=nullptr,
32  bool isParamFieldOwned=false);
33  ~VolumeBasedMagneticField() override;
34 
37 
39  MagneticField* clone() const override;
40 
41  GlobalVector inTesla ( const GlobalPoint& g) const override;
42 
43  GlobalVector inTeslaUnchecked ( const GlobalPoint& g) const override;
44 
45  const MagVolume * findVolume(const GlobalPoint & gp) const;
46 
47  bool isDefined(const GlobalPoint& gp) const override;
48 
49  bool isZSymmetric() const;
50 
51 
52  private:
54  float maxR;
55  float maxZ;
59 };
60 
61 #endif
GlobalVector inTesla(const GlobalPoint &g) const override
Field value ad specified global point, in Tesla.
const MagVolume * findVolume(const GlobalPoint &gp) const
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=0, bool isParamFieldOwned=false)
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
GlobalVector inTeslaUnchecked(const GlobalPoint &g) const override
bool isDefined(const GlobalPoint &gp) const override
True if the point is within the region where the concrete field.
const MagneticField * paramField
MagneticField * clone() const override
Returns a shallow copy.