CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LocalFieldManager.h
Go to the documentation of this file.
1 #ifndef SimG4Core_LocalFieldManager_H
2 #define SimG4Core_LocalFieldManager_H
3 
4 #include "G4FieldManager.hh"
5 
6 namespace sim {
7 
8  class LocalFieldManager : public G4FieldManager
9  {
10  public:
11  // ctor & dtor
12  LocalFieldManager() : G4FieldManager() {}
13  virtual ~LocalFieldManager() {}
14  LocalFieldManager(G4Field* commonField,
15  G4FieldManager* priFM,
16  G4FieldManager* altFM);
17  virtual void ConfigureForTrack(const G4Track* trk);
18  void SetVerbosity(bool flag) { fVerbosity=flag; return; }
19  protected:
20  //
21  const G4FieldManager* CopyValuesAndChordFinder(G4FieldManager* fm);
22  void print(const G4Track* trk);
23  private:
24  G4FieldManager* fPrimaryFM;
25  G4FieldManager* fAlternativeFM;
26  G4FieldManager* fCurrentFM;
27  bool fVerbosity ;
28  };
29 
30 }
31 
32 #endif
G4FieldManager * fCurrentFM
G4FieldManager * fAlternativeFM
Definition: sim.h:19
virtual void ConfigureForTrack(const G4Track *trk)
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
void SetVerbosity(bool flag)
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM