1 #ifndef FieldSettings_h
2 #define FieldSettings_h 1
10 #include "EVENT/LCGenericObject.h"
11 #include "IMPL/LCGenericObjectImpl.h"
13 namespace tpcconddata{
129 IMPL::LCGenericObjectImpl* obj();
133 static std::string getRevision();
134 static std::string getDefaultColName();
136 void print ( std::ostream& os = std::cout )
const;
141 int getNFloat()
const;
142 int getNDouble()
const;
144 int getIntVal(
int index)
const;
145 float getFloatVal(
int index)
const;
146 double getDoubleVal(
int index)
const;
148 bool isFixedSize()
const {
return false; };
150 virtual const std::string getTypeName()
const{
151 return std::string(
"FieldSetting");
154 virtual const std::string getDataDescription()
const{
155 return std::string(
"i:#GEMs,GEMStatus,DriftFieldStatus,MagnetFieldStatus")+
156 std::string(
"f:CathodeVoltage,AnodeVoltage,GuardRingVoltage,GEMVoltages,Transferfields,Inductionfield");
163 IMPL::LCGenericObjectImpl* myObj;
172 std::ostream &operator<<(std::ostream &os,
const FieldSetting &fs);
float getGuardRingVoltage() const
return voltage (in V) of the guard ring on the gem modules
Definition: FieldSetting.cc:97
float getGEMVoltage(int GEMID) const
return the voltage of the given number GEM 0 is the nearest the drift region
Definition: FieldSetting.cc:77
void setMagneticField(float Value)
return the magnetic field (in T)
Definition: FieldSetting.cc:155
float getTransferField(int GEMID) const
return the field (in V/mm) between the GEM N and N+1
Definition: FieldSetting.cc:83
float getMagneticField() const
return the magnetic field (in T)
Definition: FieldSetting.cc:109
int getMagneticFieldStatus() const
return the status of the Magnet 0: off 1: running normally 2: ramping up 3: ramping down ...
Definition: FieldSetting.cc:69
void setAnodeVoltage(float Value)
set voltage (in V) of the anode of the field cage (e.g.
Definition: FieldSetting.cc:151
void setGEMVoltage(int GEMID, float Value)
set the voltage of the given number GEM 0 is the nearest the drift region
Definition: FieldSetting.cc:129
float getDriftField(float maxDriftLegth) const
return the driftfield (in V/mm) if the length of the driftregion (in mm) is given ...
Definition: FieldSetting.cc:105
void setTransferField(int GEMID, float Value)
set the field (in V/mm) between the GEM N and N+1
Definition: FieldSetting.cc:134
int getNGEMs() const
return the Number of GEMs
Definition: FieldSetting.cc:61
int getGEMStatus() const
return the status of the GEM System 0: off 1: running normally 2: ramping up 3: ramping down 4: tripp...
Definition: FieldSetting.cc:73
void setCathodeVoltage(float Value)
set voltage (in V) of the cathode of the field cage
Definition: FieldSetting.cc:143
void setInductionField(float Value)
set the field (in V/mm) between the last GEM and the Pad-Readout-Plane
Definition: FieldSetting.cc:139
void setDriftFieldStatus(int Value)
set the status of a drift field (see getDriftFieldStatus)
Definition: FieldSetting.cc:117
float getAnodeVoltage() const
return voltage (in V) of the anode of the field cage (e.g.
Definition: FieldSetting.cc:101
void setNGEMs(int Value)
set the Number of GEMs is protected, numberof GEMs is to imported for consistence can only be set by ...
Definition: FieldSetting.cc:113
class to store the field setting of a TPC with GEM-based amplification system
Definition: FieldSetting.h:19
float getInductionField() const
return the field (in V/mm) between the last GEM and the Pad-Readout-Plane
Definition: FieldSetting.cc:89
void setGEMStatus(int Value)
set the status of a GEM (see getGEMStatus)
Definition: FieldSetting.cc:125
float getCathodeVoltage() const
return voltage (in V) of the cathode of the field cage
Definition: FieldSetting.cc:93
void setMagneticFieldStatus(int Value)
set the status of a magnet (see getMagneticFieldStatus)
Definition: FieldSetting.cc:121
int getDriftFieldStatus() const
return the status of the DriftField System 0: off 1: running normally 2: ramping up 3: ramping down ...
Definition: FieldSetting.cc:65
void setGuardRingVoltage(float Value)
set voltage (in V) of the guard ring on gem module
Definition: FieldSetting.cc:147