CMS 3D CMS Logo

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  ~LocalFieldManager() override {}
14  LocalFieldManager(G4Field* commonField,
15  G4FieldManager* priFM,
16  G4FieldManager* altFM);
17  void ConfigureForTrack(const G4Track* trk) override;
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
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
void SetVerbosity(bool flag)
Definition: RunManager.h:28
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM
void ConfigureForTrack(const G4Track *trk) override