test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
MagneticField
src
ChordFinderSetter.cc
Go to the documentation of this file.
1
#include "
SimG4Core/MagneticField/interface/ChordFinderSetter.h
"
2
3
#include "G4FieldManager.hh"
4
5
namespace
sim
{
6
thread_local G4ChordFinder *
ChordFinderSetter::fChordFinder
=
nullptr
;
7
thread_local G4ChordFinder *
ChordFinderSetter::fChordFinderMonopole
=
nullptr
;
8
9
ChordFinderSetter::ChordFinderSetter
() {}
10
ChordFinderSetter::~ChordFinderSetter
() {}
11
12
void
ChordFinderSetter::setStepperAndChordFinder
(G4FieldManager * fM,
int
val
) {
13
if
(fM != 0) {
14
if
(val == 0) {
15
if
(
fChordFinder
!= 0) fM->SetChordFinder(
fChordFinder
);
16
}
else
{
17
fChordFinder
= fM->GetChordFinder();
18
if
(
fChordFinderMonopole
!= 0) fM->SetChordFinder(
fChordFinderMonopole
);
19
}
20
}
21
}
22
}
SpecificationBuilder_cfi.val
def val
Definition:
SpecificationBuilder_cfi.py:28
sim
Definition:
sim.h:19
ChordFinderSetter.h
sim::ChordFinderSetter::fChordFinderMonopole
static thread_local G4ChordFinder * fChordFinderMonopole
Definition:
ChordFinderSetter.h:19
sim::ChordFinderSetter::setStepperAndChordFinder
void setStepperAndChordFinder(G4FieldManager *fM, int val)
Definition:
ChordFinderSetter.cc:12
sim::ChordFinderSetter::ChordFinderSetter
ChordFinderSetter()
Definition:
ChordFinderSetter.cc:9
sim::ChordFinderSetter::fChordFinder
static thread_local G4ChordFinder * fChordFinder
Definition:
ChordFinderSetter.h:19
sim::ChordFinderSetter::~ChordFinderSetter
~ChordFinderSetter()
Definition:
ChordFinderSetter.cc:10
Generated for CMSSW Reference Manual by
1.8.5