9 #ifndef UTIL_CALORIMETRYALG_H 10 #define UTIL_CALORIMETRYALG_H 27 class DetectorClocksData;
28 class DetectorPropertiesData;
44 Name(
"CalAmpConstants"),
45 Comment(
"ADC to electrons constants for each plane.")};
48 Name(
"CalAreaConstants"),
49 Comment(
"Area to electrons constants for each plane.")};
52 Comment(
"Use modified box model if true, birks otherwise")};
55 Comment(
"0 = exponential, 1 = exponential + constant")};
58 Comment(
"Apply lifetime correction if true")};
61 Comment(
"Alpha value in modified box recombination."),
67 "String compiled into a TF1. Should return the Mod-Box beta value as a function of phi."),
72 Comment(
"Parameters for the ModBoxBTF1 function.")};
75 Comment(
"Alpha value in modified box recombination."),
81 "String compiled into a TF1. Should return the Birks k value as a function of phi."),
86 Comment(
"Parameters for the BirksKTF1 function. List of doubles.")};
105 double T0 = 0)
const;
112 double phi = 90)
const;
120 double phi = 90)
const;
127 double T0 = 0)
const;
133 double T0 = 0)
const;
140 double phi = 90)
const;
148 double phi = 90)
const;
152 return adc / fCalAmpConstants[plane];
157 return area / fCalAreaConstants[plane];
163 double T0 = 0)
const;
166 double BirksCorrection(
double dQdx,
double phi,
double rho,
double E_field)
const;
167 double ModBoxCorrection(
double dQdx,
double phi,
double rho,
double E_field)
const;
176 double T0 = 0)
const;
183 double phi = 90)
const;
199 #endif // UTIL_CALORIMETRYALG_H
std::vector< double > const fCalAreaConstants
Reconstruction base classes.
Declaration of signal hit object.
double ElectronsFromADCArea(double area, unsigned short plane) const
double ElectronsFromADCPeak(double adc, unsigned short plane) const
art::ServiceHandle< geo::Geometry const > geom
bool const fDoLifeTimeCorrection
General LArSoft Utilities.
std::vector< double > const fCalAmpConstants
Detector simulation of raw signals on wires.
CalorimetryAlg(const fhicl::ParameterSet &pset)
Contains all timing reference information for the detector.
2D representation of charge deposited in the TDC/wire plane
constexpr double kRecombA
A constant.
constexpr double kModBoxA
Modified Box Alpha.
Collection of Physical constants used in LArSoft.
art framework interface to geometry description
map< int, array< map< int, double >, 2 >> Table