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  public:
10  // ctor & dtor
11  LocalFieldManager() : G4FieldManager() {}
12  ~LocalFieldManager() override {}
13  LocalFieldManager(G4Field *commonField, G4FieldManager *priFM, G4FieldManager *altFM);
14  void ConfigureForTrack(const G4Track *trk) override;
15  void SetVerbosity(bool flag) {
16  fVerbosity = flag;
17  return;
18  }
19 
20  protected:
21  //
22  const G4FieldManager *CopyValuesAndChordFinder(G4FieldManager *fm);
23  void print(const G4Track *trk);
24 
25  private:
26  G4FieldManager *fPrimaryFM;
27  G4FieldManager *fAlternativeFM;
28  G4FieldManager *fCurrentFM;
29  bool fVerbosity;
30  };
31 
32 } // namespace sim
33 
34 #endif
G4FieldManager * fCurrentFM
G4FieldManager * fAlternativeFM
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
void SetVerbosity(bool flag)
void print(const G4Track *trk)
G4FieldManager * fPrimaryFM
void ConfigureForTrack(const G4Track *trk) override