9 #ifndef UTIL_CALORIMETRYALG_H 10 #define UTIL_CALORIMETRYALG_H 36 Name(
"CalAmpConstants"),
37 Comment(
"ADC to electrons constants for each plane.")
41 Name(
"CalAreaConstants"),
42 Comment(
"Area to electrons constants for each plane.")
46 Name(
"CaloUseModBox"),
47 Comment(
"Use modified box model if true, birks otherwise")
51 Name(
"CaloLifeTimeForm"),
52 Comment(
"0 = exponential, 1 = exponential + constant")
56 Name(
"CaloDoLifeTimeCorrection"),
57 Comment(
"Apply lifetime correction if true")
70 void reconfigure(
const Config& config);
75 double dEdx_AMP(
recob::Hit const& hit,
double pitch,
double T0=0)
const;
76 double dEdx_AMP(
double dQ,
double time,
double pitch,
unsigned int plane,
double T0=0)
const;
77 double dEdx_AMP(
double dQdx,
double time,
unsigned int plane,
double T0=0)
const;
80 double dEdx_AREA(
recob::Hit const& hit,
double pitch,
double T0=0)
const;
81 double dEdx_AREA(
double dQ,
double time,
double pitch,
unsigned int plane,
double T0=0)
const;
82 double dEdx_AREA(
double dQdx,
double time,
unsigned int plane,
double T0=0)
const;
85 {
return adc / fCalAmpConstants[plane]; }
88 {
return area / fCalAreaConstants[plane]; }
90 double LifetimeCorrection(
double time,
double T0=0)
const;
97 double dEdx_from_dQdx_e(
double dQdx_e,
double time,
double T0=0)
const;
107 #endif // UTIL_CALORIMETRYALG_H
Reconstruction base classes.
void reconfigure(const fhicl::ParameterSet &pset)
art::ServiceHandle< geo::Geometry > geom
double ElectronsFromADCArea(double area, unsigned short plane) const
double ElectronsFromADCPeak(double adc, unsigned short plane) const
bool fDoLifeTimeCorrection
std::vector< double > fCalAmpConstants
const detinfo::DetectorProperties * detprop
Detector simulation of raw signals on wires.
CalorimetryAlg(const fhicl::ParameterSet &pset)
2D representation of charge deposited in the TDC/wire plane
art framework interface to geometry description
std::vector< double > fCalAreaConstants