LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
calib::PhotonCalibratorStandard Class Reference

#include "PhotonCalibratorStandard.h"

Inheritance diagram for calib::PhotonCalibratorStandard:
calib::IPhotonCalibrator

Public Member Functions

 PhotonCalibratorStandard (fhicl::ParameterSet const &pset)
 
 PhotonCalibratorStandard (float size, float shift, bool useArea)
 
double PE (double adcs, int) const override
 
bool UseArea () const override
 
void SetSPESize (float size)
 
void SetSPEShift (float shift)
 
void SetUseArea (bool useArea)
 
double PE (const recob::OpHit &oh) const
 Convenience. More...
 
double PE (const recob::OpFlash &of) const
 

Private Attributes

float fSPESize
 
float fSPEShift
 
bool fUseArea
 

Detailed Description

Definition at line 23 of file PhotonCalibratorStandard.h.

Constructor & Destructor Documentation

calib::PhotonCalibratorStandard::PhotonCalibratorStandard ( fhicl::ParameterSet const &  pset)
inline

Definition at line 25 of file PhotonCalibratorStandard.h.

26  : fSPESize(pset.get<float>("SPESize"))
27  , fSPEShift(pset.get<float>("SPEShift", 0.))
28  , fUseArea(pset.get<bool>("UseArea"))
29  {}
calib::PhotonCalibratorStandard::PhotonCalibratorStandard ( float  size,
float  shift,
bool  useArea 
)
inline

Definition at line 31 of file PhotonCalibratorStandard.h.

32  : fSPESize(size), fSPEShift(shift), fUseArea(useArea)
33  {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101

Member Function Documentation

double calib::PhotonCalibratorStandard::PE ( double  adcs,
int   
) const
inlineoverridevirtual
double calib::IPhotonCalibrator::PE ( const recob::OpHit oh) const
inlineinherited

Convenience.

Need a 3D position because result depends on position along length of bar. This is going to be pretty imprecise even so.

Definition at line 39 of file IPhotonCalibrator.h.

References recob::OpHit::PE().

39 { return oh.PE(); }
double PE() const
Definition: OpHit.h:122
double calib::IPhotonCalibrator::PE ( const recob::OpFlash of) const
inlineinherited

Definition at line 41 of file IPhotonCalibrator.h.

References recob::OpFlash::TotalPE().

41 { return of.TotalPE(); }
double TotalPE() const
Definition: OpFlash.cxx:94
void calib::PhotonCalibratorStandard::SetSPEShift ( float  shift)
inline

Definition at line 44 of file PhotonCalibratorStandard.h.

void calib::PhotonCalibratorStandard::SetSPESize ( float  size)
inline

Definition at line 43 of file PhotonCalibratorStandard.h.

References util::size().

43 { fSPESize = size; }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
void calib::PhotonCalibratorStandard::SetUseArea ( bool  useArea)
inline

Definition at line 45 of file PhotonCalibratorStandard.h.

bool calib::PhotonCalibratorStandard::UseArea ( ) const
inlineoverridevirtual

Member Data Documentation

float calib::PhotonCalibratorStandard::fSPEShift
private

Definition at line 53 of file PhotonCalibratorStandard.h.

float calib::PhotonCalibratorStandard::fSPESize
private

Need a 3D position because result depends on position along length of bar. This is going to be pretty imprecise even so.

Definition at line 52 of file PhotonCalibratorStandard.h.

bool calib::PhotonCalibratorStandard::fUseArea
private

Definition at line 54 of file PhotonCalibratorStandard.h.


The documentation for this class was generated from the following file: