LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "CalorimetryAlg.h"
Classes | |
struct | Config |
Public Member Functions | |
CalorimetryAlg (const fhicl::ParameterSet &pset) | |
CalorimetryAlg (const Config &config) | |
double | dEdx_AMP (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, recob::Hit const &hit, double pitch, double T0=0) const |
double | dEdx_AMP (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx, double time, unsigned int plane, double T0=0) const |
double | dEdx_AMP (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, recob::Hit const &hit, double pitch, double T0, double EField, double phi=90) const |
double | dEdx_AMP (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx, double time, unsigned int plane, double T0, double EField, double phi=90) const |
double | dEdx_AREA (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, recob::Hit const &hit, double pitch, double T0=0) const |
double | dEdx_AREA (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx, double time, unsigned int plane, double T0=0) const |
double | dEdx_AREA (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, recob::Hit const &hit, double pitch, double T0, double EField, double phi=90) const |
double | dEdx_AREA (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx, double time, unsigned int plane, double T0, double EField, double phi=90) const |
double | ElectronsFromADCPeak (double adc, unsigned short plane) const |
double | ElectronsFromADCArea (double area, unsigned short plane) const |
double | LifetimeCorrection (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double time, double T0=0) const |
double | BirksCorrection (double dQdx, double phi, double rho, double E_field) const |
double | ModBoxCorrection (double dQdx, double phi, double rho, double E_field) const |
Private Member Functions | |
double | dEdx_from_dQdx_e (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx_e, double time, double T0=0) const |
double | dEdx_from_dQdx_e (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double dQdx_e, double time, double T0, double EField, double phi=90) const |
Private Attributes | |
art::ServiceHandle< geo::Geometry const > | geom |
std::vector< double > const | fCalAmpConstants |
std::vector< double > const | fCalAreaConstants |
bool const | fUseModBox |
int const | fLifeTimeForm |
bool const | fDoLifeTimeCorrection |
double | fModBoxA |
TF1 | fModBoxBF |
double | fBirksA |
TF1 | fBirksKF |
Definition at line 37 of file CalorimetryAlg.h.
|
inline |
Definition at line 89 of file CalorimetryAlg.h.
calo::CalorimetryAlg::CalorimetryAlg | ( | const Config & | config | ) |
Definition at line 23 of file CalorimetryAlg.cxx.
References calo::CalorimetryAlg::Config::CalAmpConstants, fBirksA, fBirksKF, fCalAreaConstants, fDoLifeTimeCorrection, fLifeTimeForm, fModBoxA, fModBoxBF, fUseModBox, util::kModBoxB, and util::kRecombk.
double calo::CalorimetryAlg::BirksCorrection | ( | double | dQdx, |
double | phi, | ||
double | rho, | ||
double | E_field | ||
) | const |
Definition at line 262 of file CalorimetryAlg.cxx.
References tca::dEdx(), fBirksA, fBirksKF, and util::kGeVToElectrons.
Referenced by dEdx_from_dQdx_e().
double calo::CalorimetryAlg::dEdx_AMP | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
recob::Hit const & | hit, | ||
double | pitch, | ||
double | T0 = 0 |
||
) | const |
Definition at line 60 of file CalorimetryAlg.cxx.
References detinfo::DetectorPropertiesData::Efield(), recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), geo::PlaneID::Plane, and recob::Hit::WireID().
Referenced by dEdx_AMP(), shwf::ShowerReco::LongTransEnergy(), calo::Calorimetry::produce(), calo::GnocchiCalorimetry::produce(), and showerreco::ShowerRecoAlg::RecoOneShower().
double calo::CalorimetryAlg::dEdx_AMP | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
double | dQdx, | ||
double | time, | ||
unsigned int | plane, | ||
double | T0 = 0 |
||
) | const |
Definition at line 76 of file CalorimetryAlg.cxx.
References dEdx_from_dQdx_e(), detinfo::DetectorPropertiesData::Efield(), and fCalAmpConstants.
double calo::CalorimetryAlg::dEdx_AMP | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
recob::Hit const & | hit, | ||
double | pitch, | ||
double | T0, | ||
double | EField, | ||
double | phi = 90 |
||
) | const |
Definition at line 91 of file CalorimetryAlg.cxx.
References dEdx_AMP(), recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), geo::PlaneID::Plane, and recob::Hit::WireID().
double calo::CalorimetryAlg::dEdx_AMP | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
double | dQdx, | ||
double | time, | ||
unsigned int | plane, | ||
double | T0, | ||
double | EField, | ||
double | phi = 90 |
||
) | const |
Definition at line 110 of file CalorimetryAlg.cxx.
References dEdx_from_dQdx_e(), and fCalAmpConstants.
double calo::CalorimetryAlg::dEdx_AREA | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
recob::Hit const & | hit, | ||
double | pitch, | ||
double | T0 = 0 |
||
) | const |
Definition at line 127 of file CalorimetryAlg.cxx.
References detinfo::DetectorPropertiesData::Efield(), recob::Hit::Integral(), recob::Hit::PeakTime(), geo::PlaneID::Plane, and recob::Hit::WireID().
Referenced by calo::TrackCalorimetryAlg::AnalyzeHit(), mvapid::MVAAlg::CalcSegmentdEdxDist(), ShowerRecoTools::ShowerUnidirectiondEdx::CalculateElement(), ShowerRecoTools::ShowerTrajPointdEdx::CalculateElement(), ems::EMShower3D::ConvertFrom(), ems::EMShower3D::ConvertFrom2(), tca::dEdx(), dEdx_AREA(), shower::EMShowerAlg::FinddEdx_(), shwf::ShowerReco::LongTransEnergy(), shower::EMShowerAlg::MakeShower(), calo::ShowerCalorimetry::produce(), calo::Calorimetry::produce(), calo::GnocchiCalorimetry::produce(), and showerreco::ShowerRecoAlg::RecoOneShower().
double calo::CalorimetryAlg::dEdx_AREA | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
double | dQdx, | ||
double | time, | ||
unsigned int | plane, | ||
double | T0 = 0 |
||
) | const |
Definition at line 143 of file CalorimetryAlg.cxx.
References dEdx_from_dQdx_e(), detinfo::DetectorPropertiesData::Efield(), and fCalAreaConstants.
double calo::CalorimetryAlg::dEdx_AREA | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
recob::Hit const & | hit, | ||
double | pitch, | ||
double | T0, | ||
double | EField, | ||
double | phi = 90 |
||
) | const |
Definition at line 158 of file CalorimetryAlg.cxx.
References dEdx_AREA(), recob::Hit::Integral(), recob::Hit::PeakTime(), geo::PlaneID::Plane, and recob::Hit::WireID().
double calo::CalorimetryAlg::dEdx_AREA | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
double | dQdx, | ||
double | time, | ||
unsigned int | plane, | ||
double | T0, | ||
double | EField, | ||
double | phi = 90 |
||
) | const |
Definition at line 177 of file CalorimetryAlg.cxx.
References dEdx_from_dQdx_e(), and fCalAreaConstants.
|
private |
Definition at line 192 of file CalorimetryAlg.cxx.
References detinfo::DetectorPropertiesData::Efield().
Referenced by dEdx_AMP(), and dEdx_AREA().
|
private |
Definition at line 200 of file CalorimetryAlg.cxx.
References BirksCorrection(), detinfo::DetectorPropertiesData::Density(), fDoLifeTimeCorrection, fUseModBox, LifetimeCorrection(), and ModBoxCorrection().
|
inline |
Definition at line 155 of file CalorimetryAlg.h.
Referenced by ShowerRecoTools::ShowerNumElectronsEnergy::CalculateEnergy(), and showerreco::ShowerRecoAlg::RecoOneShower().
|
inline |
Definition at line 150 of file CalorimetryAlg.h.
Referenced by img::DataProviderAlg::DataProviderAlg(), and showerreco::ShowerRecoAlg::RecoOneShower().
double calo::CalorimetryAlg::LifetimeCorrection | ( | detinfo::DetectorClocksData const & | clock_data, |
detinfo::DetectorPropertiesData const & | det_prop, | ||
double | time, | ||
double | T0 = 0 |
||
) | const |
Definition at line 221 of file CalorimetryAlg.cxx.
References e, detinfo::DetectorPropertiesData::ElectronLifetime(), fLifeTimeForm, detinfo::sampling_rate(), and detinfo::trigger_offset().
Referenced by ShowerRecoTools::ShowerNumElectronsEnergy::CalculateEnergy(), nnet::PointIdEffTest::countPfpDep(), dEdx_from_dQdx_e(), shower::TCShowerElectronLikelihood::getShowerProfile(), showerreco::ShowerRecoAlg::RecoOneShower(), img::DataProviderAlg::resizeView(), shower::TCShowerTemplateMaker::showerProfile(), and nnet::PointIdEffTest::testCNN().
double calo::CalorimetryAlg::ModBoxCorrection | ( | double | dQdx, |
double | phi, | ||
double | rho, | ||
double | E_field | ||
) | const |
Definition at line 247 of file CalorimetryAlg.cxx.
References tca::dEdx(), fModBoxA, fModBoxBF, and util::kGeVToElectrons.
Referenced by dEdx_from_dQdx_e().
|
private |
Definition at line 194 of file CalorimetryAlg.h.
Referenced by BirksCorrection(), and CalorimetryAlg().
|
private |
Definition at line 195 of file CalorimetryAlg.h.
Referenced by BirksCorrection(), and CalorimetryAlg().
|
private |
Definition at line 185 of file CalorimetryAlg.h.
Referenced by dEdx_AMP().
|
private |
Definition at line 186 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and dEdx_AREA().
|
private |
Definition at line 189 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and dEdx_from_dQdx_e().
|
private |
Definition at line 188 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and LifetimeCorrection().
|
private |
Definition at line 192 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and ModBoxCorrection().
|
private |
Definition at line 193 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and ModBoxCorrection().
|
private |
Definition at line 187 of file CalorimetryAlg.h.
Referenced by CalorimetryAlg(), and dEdx_from_dQdx_e().
|
private |
Definition at line 170 of file CalorimetryAlg.h.