test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Private Attributes
sim::ChordFinderSetter Class Reference

#include <ChordFinderSetter.h>

Public Member Functions

 ChordFinderSetter ()
 
bool isMonopoleSet () const
 
void setMonopole (G4ChordFinder *cfm)
 
void setStepperAndChordFinder (G4FieldManager *fM, int val)
 
 ~ChordFinderSetter ()
 

Static Private Attributes

static thread_local G4ChordFinder * fChordFinder = nullptr
 
static thread_local G4ChordFinder * fChordFinderMonopole = nullptr
 

Detailed Description

Definition at line 8 of file ChordFinderSetter.h.

Constructor & Destructor Documentation

sim::ChordFinderSetter::ChordFinderSetter ( )

Definition at line 9 of file ChordFinderSetter.cc.

9 {}
sim::ChordFinderSetter::~ChordFinderSetter ( )

Definition at line 10 of file ChordFinderSetter.cc.

10 {}

Member Function Documentation

bool sim::ChordFinderSetter::isMonopoleSet ( ) const
inline

Definition at line 13 of file ChordFinderSetter.h.

References fChordFinderMonopole.

Referenced by sim::FieldBuilder::configureFieldManager().

13 { return fChordFinderMonopole; }
static thread_local G4ChordFinder * fChordFinderMonopole
void sim::ChordFinderSetter::setMonopole ( G4ChordFinder *  cfm)
inline

Definition at line 14 of file ChordFinderSetter.h.

References fChordFinderMonopole.

Referenced by sim::FieldBuilder::configureFieldManager().

14 { fChordFinderMonopole = cfm; }
static thread_local G4ChordFinder * fChordFinderMonopole
void sim::ChordFinderSetter::setStepperAndChordFinder ( G4FieldManager *  fM,
int  val 
)

Definition at line 12 of file ChordFinderSetter.cc.

References fChordFinder, and fChordFinderMonopole.

12  {
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  }
static thread_local G4ChordFinder * fChordFinderMonopole
static thread_local G4ChordFinder * fChordFinder

Member Data Documentation

thread_local G4ChordFinder * sim::ChordFinderSetter::fChordFinder = nullptr
staticprivate

Definition at line 19 of file ChordFinderSetter.h.

Referenced by setStepperAndChordFinder().

thread_local G4ChordFinder * sim::ChordFinderSetter::fChordFinderMonopole = nullptr
staticprivate

Definition at line 19 of file ChordFinderSetter.h.

Referenced by isMonopoleSet(), setMonopole(), and setStepperAndChordFinder().