#include <DetectorPropertiesData.h>
Public Member Functions | |
DetectorPropertiesData (DetectorProperties const &properties, double x_ticks_coefficient, std::vector< std::vector< std::vector< double >>> &&x_ticks_offsets, std::vector< std::vector< double >> &&drift_direction) | |
double | Efield (unsigned int planegap=0) const |
kV/cm More... | |
double | DriftVelocity (double efield=0., double temperature=0.) const |
cm/us More... | |
double | BirksCorrection (double dQdX) const |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm. More... | |
double | BirksCorrection (double dQdX, double EField) const |
double | ModBoxCorrection (double dQdX) const |
double | ModBoxCorrection (double dQdX, double EField) const |
double | ElectronLifetime () const |
double | Density (double temperature=0.) const |
Returns argon density at a given temperature. More... | |
double | Temperature () const |
In kelvin. More... | |
double | Eloss (double mom, double mass, double tcut) const |
Restricted mean energy loss (dE/dx) More... | |
double | ElossVar (double mom, double mass) const |
Energy loss fluctuation ( ) More... | |
double | ElectronsToADC () const |
unsigned int | NumberTimeSamples () const |
unsigned int | ReadOutWindowSize () const |
double | TimeOffsetU () const |
double | TimeOffsetV () const |
double | TimeOffsetZ () const |
double | TimeOffsetY () const |
double | ConvertXToTicks (double X, int p, int t, int c) const |
double | ConvertXToTicks (double X, geo::PlaneID const &planeid) const |
double | ConvertTicksToX (double ticks, int p, int t, int c) const |
double | ConvertTicksToX (double ticks, geo::PlaneID const &planeid) const |
double | GetXTicksOffset (int p, int t, int c) const |
double | GetXTicksOffset (geo::PlaneID const &planeid) const |
double | GetXTicksCoefficient (int t, int c) const |
double | GetXTicksCoefficient (geo::TPCID const &tpcid) const |
double | GetXTicksCoefficient () const |
bool | SimpleBoundary () const |
Private Attributes | |
detinfo::DetectorProperties const & | fProperties |
double const | fXTicksCoefficient |
std::vector< std::vector < std::vector< double > > > const | fXTicksOffsets |
std::vector< std::vector < double > > const | fDriftDirection |
Definition at line 11 of file DetectorPropertiesData.h.
|
explicit |
Definition at line 4 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::BirksCorrection | ( | double | dQdX | ) | const |
dQ/dX in electrons/cm, returns dE/dX in MeV/cm.
Definition at line 29 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::BirksCorrection | ( | double | dQdX, |
double | EField | ||
) | const |
Definition at line 34 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ConvertTicksToX | ( | double | ticks, |
int | p, | ||
int | t, | ||
int | c | ||
) | const |
Definition at line 115 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ConvertTicksToX | ( | double | ticks, |
geo::PlaneID const & | planeid | ||
) | const |
Definition at line 125 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ConvertXToTicks | ( | double | X, |
int | p, | ||
int | t, | ||
int | c | ||
) | const |
Definition at line 99 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ConvertXToTicks | ( | double | X, |
geo::PlaneID const & | planeid | ||
) | const |
Definition at line 109 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::Density | ( | double | temperature = 0. | ) | const |
Returns argon density at a given temperature.
temperature | the temperature in kelvin |
Density is nearly a linear function of temperature. See the NIST tables for details Slope is between -6.2 and -6.1, intercept is 1928 kg/m^3. This parameterization will be good to better than 0.5%.g/cm^3
Definition at line 75 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::DriftVelocity | ( | double | efield = 0. , |
double | temperature = 0. |
||
) | const |
cm/us
Definition at line 23 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::Efield | ( | unsigned int | planegap = 0 | ) | const |
kV/cm
Definition at line 17 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ElectronLifetime | ( | ) | const |
Definition at line 69 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ElectronsToADC | ( | ) | const |
Definition at line 51 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::Eloss | ( | double | mom, |
double | mass, | ||
double | tcut | ||
) | const |
Restricted mean energy loss (dE/dx)
mom | momentum of incident particle [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
tcut | maximum kinetic energy of delta rays [MeV]; 0 for unlimited |
Returned value is always positive. For unrestricted mean energy loss, set tcut = 0 (special case), or tcut large.
Based on Bethe-Bloch formula as contained in particle data book. Material parameters are from the configuration.
Definition at line 87 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ElossVar | ( | double | mom, |
double | mass | ||
) | const |
Energy loss fluctuation ( )
mom | momentum of incident particle in [GeV/c] |
mass | mass of incident particle [GeV/c^2] |
Based on Bichsel formula referred to but not given in PDG.
Definition at line 93 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | int | t, |
int | c | ||
) | const |
Definition at line 160 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | geo::TPCID const & | tpcid | ) | const |
double detinfo::DetectorPropertiesData::GetXTicksCoefficient | ( | ) | const |
Definition at line 166 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::GetXTicksOffset | ( | int | p, |
int | t, | ||
int | c | ||
) | const |
Definition at line 148 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::GetXTicksOffset | ( | geo::PlaneID const & | planeid | ) | const |
Definition at line 154 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ModBoxCorrection | ( | double | dQdX | ) | const |
Definition at line 40 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::ModBoxCorrection | ( | double | dQdX, |
double | EField | ||
) | const |
Definition at line 45 of file DetectorPropertiesData.cc.
unsigned int detinfo::DetectorPropertiesData::NumberTimeSamples | ( | ) | const |
Definition at line 57 of file DetectorPropertiesData.cc.
unsigned int detinfo::DetectorPropertiesData::ReadOutWindowSize | ( | ) | const |
Definition at line 63 of file DetectorPropertiesData.cc.
bool detinfo::DetectorPropertiesData::SimpleBoundary | ( | ) | const |
Definition at line 172 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::Temperature | ( | ) | const |
In kelvin.
Definition at line 81 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::TimeOffsetU | ( | ) | const |
Definition at line 132 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::TimeOffsetV | ( | ) | const |
Definition at line 137 of file DetectorPropertiesData.cc.
double detinfo::DetectorPropertiesData::TimeOffsetY | ( | ) | const |
double detinfo::DetectorPropertiesData::TimeOffsetZ | ( | ) | const |
Definition at line 142 of file DetectorPropertiesData.cc.
|
private |
Definition at line 99 of file DetectorPropertiesData.h.
|
private |
Definition at line 96 of file DetectorPropertiesData.h.
|
private |
Definition at line 97 of file DetectorPropertiesData.h.
|
private |
Definition at line 98 of file DetectorPropertiesData.h.