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
sim::LocalFieldManager::fAlternativeFM
G4FieldManager * fAlternativeFM
Definition: LocalFieldManager.h:27
sim::LocalFieldManager::CopyValuesAndChordFinder
const G4FieldManager * CopyValuesAndChordFinder(G4FieldManager *fm)
Definition: LocalFieldManager.cc:45
sim::LocalFieldManager::fVerbosity
bool fVerbosity
Definition: LocalFieldManager.h:29
sim::LocalFieldManager::fPrimaryFM
G4FieldManager * fPrimaryFM
Definition: LocalFieldManager.h:26
sim::LocalFieldManager::~LocalFieldManager
~LocalFieldManager() override
Definition: LocalFieldManager.h:12
sim::LocalFieldManager::SetVerbosity
void SetVerbosity(bool flag)
Definition: LocalFieldManager.h:15
sim::LocalFieldManager::print
void print(const G4Track *trk)
Definition: LocalFieldManager.cc:55
sim::LocalFieldManager
Definition: LocalFieldManager.h:8
sim
Definition: GeometryProducer.h:20
sim::LocalFieldManager::fCurrentFM
G4FieldManager * fCurrentFM
Definition: LocalFieldManager.h:28
sim::LocalFieldManager::ConfigureForTrack
void ConfigureForTrack(const G4Track *trk) override
Definition: LocalFieldManager.cc:24
sim::LocalFieldManager::LocalFieldManager
LocalFieldManager()
Definition: LocalFieldManager.h:11
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116