10 #ifndef __Spectrometer_H_
11 #define __Spectrometer_H_
const regions_t & regions() const
retrieve the regions of the spectrometer
double _length
the length of the spectrometer region in mm
bool _rotationClockwise
flag showing the direction of the magnetic field
regions_t _regions
the regions of the spectrometer
double _cyclotronPeriod
the cyclotron frequency of the particles in ns
a region of a spectrometer
double length_mm() const
retrieve region properties
void loadSettings(CASSSettings &s, const Particle &particle)
load the settings from .ini file
bool rotationClockWise() const
retrieve magnetic field parameter
std::vector< SpectrometerRegion > regions_t
typef for better readable code
double _efield
the electric field strength inside this region in
bool _BFieldIsOn
flag to tell whether the magnetic field is turned on
void loadSettings(CASSSettings &s)
load the settings from .ini file
bool BFieldIsOn() const
retrieve magnetic field parameter
double EField_Vpcm() const
retrieve region properties
double cyclotronPeriod_ns() const
retrieve magnetic field parameter