CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VolumeBasedMagneticField.h
Go to the documentation of this file.
1 #ifndef MagneticField_VolumeBasedMagneticField_h
2 #define MagneticField_VolumeBasedMagneticField_h
3 
13 
15  public:
16  // VolumeBasedMagneticField(const DDCompactView & cpv);
18  const std::vector<MagBLayer *>& theBLayers,
19  const std::vector<MagESector *>& theESectors,
20  const std::vector<MagVolume6Faces*>& theBVolumes,
21  const std::vector<MagVolume6Faces*>& theEVolumes,
22  float rMax, float zMax,
23  const MagneticField* param=0,
24  bool isParamFieldOwned=false);
25  virtual ~VolumeBasedMagneticField();
26 
29 
31  virtual MagneticField* clone() const;
32 
33  GlobalVector inTesla ( const GlobalPoint& g) const;
34 
35  GlobalVector inTeslaUnchecked ( const GlobalPoint& g) const;
36 
37  const MagVolume * findVolume(const GlobalPoint & gp) const;
38 
39  bool isDefined(const GlobalPoint& gp) const;
40 
41  bool isZSymmetric() const;
42 
43 
44  private:
46  float maxR;
47  float maxZ;
51 };
52 
53 #endif
GlobalVector inTeslaUnchecked(const GlobalPoint &g) const
const MagVolume * findVolume(const GlobalPoint &gp) const
virtual MagneticField * clone() const
Returns a shallow copy.
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
bool isDefined(const GlobalPoint &gp) const
True if the point is within the region where the concrete field.
GlobalVector inTesla(const GlobalPoint &g) const
Field value ad specified global point, in Tesla.
const MagneticField * paramField
VolumeBasedMagneticField(const edm::ParameterSet &config, 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)