CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/SimG4Core/MagneticField/interface/LocalFieldManager.h

Go to the documentation of this file.
00001 #ifndef SimG4Core_LocalFieldManager_H
00002 #define SimG4Core_LocalFieldManager_H
00003 
00004 #include "G4FieldManager.hh"
00005 
00006 namespace sim {
00007 
00008    class LocalFieldManager : public G4FieldManager
00009    {
00010       public:
00011          // ctor & dtor
00012          LocalFieldManager() : G4FieldManager() {}
00013          virtual ~LocalFieldManager() {}
00014          LocalFieldManager(G4Field* commonField,
00015                            G4FieldManager* priFM,
00016                            G4FieldManager* altFM);
00017          virtual void ConfigureForTrack(const G4Track* trk);
00018          void SetVerbosity(bool flag) { fVerbosity=flag; return; }
00019       protected:
00020          //
00021          const G4FieldManager* CopyValuesAndChordFinder(G4FieldManager* fm);
00022          void  print(const G4Track* trk);
00023       private:
00024          G4FieldManager* fPrimaryFM;
00025          G4FieldManager* fAlternativeFM;
00026          G4FieldManager* fCurrentFM;
00027          bool            fVerbosity ;
00028    };
00029 
00030 }
00031 
00032 #endif