Public Member Functions | Private Attributes | List of all members
calib::PhotonCalibratorStandard Class Reference

#include <PhotonCalibratorStandard.h>

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

Public Member Functions

 PhotonCalibratorStandard (fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
 
 PhotonCalibratorStandard (float size, float shift, bool useArea)
 
double PE (double adcs, int opchannel) const override
 
bool UseArea () const override
 
void SetSPESize (float size)
 
void SetSPEShift (float shift)
 
void SetUseArea (bool useArea)
 
- Public Member Functions inherited from calib::IPhotonCalibrator
 IPhotonCalibrator (IPhotonCalibrator const &)=delete
 
 IPhotonCalibrator (IPhotonCalibrator &&)=delete
 
IPhotonCalibratoroperator= (IPhotonCalibrator const &)=delete
 
IPhotonCalibratoroperator= (IPhotonCalibrator &&)=delete
 
 IPhotonCalibrator ()
 
virtual ~IPhotonCalibrator ()=default
 
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 24 of file PhotonCalibratorStandard.h.

Constructor & Destructor Documentation

calib::PhotonCalibratorStandard::PhotonCalibratorStandard ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry reg 
)
inline

Definition at line 27 of file PhotonCalibratorStandard.h.

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

Definition at line 34 of file PhotonCalibratorStandard.h.

35  : fSPESize ( size ),
36  fSPEShift ( shift ),
37  fUseArea ( useArea )
38  {}
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92

Member Function Documentation

double calib::PhotonCalibratorStandard::PE ( double  adcs,
int  opchannel 
) const
inlineoverridevirtual
void calib::PhotonCalibratorStandard::SetSPEShift ( float  shift)
inline

Definition at line 46 of file PhotonCalibratorStandard.h.

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

Definition at line 45 of file PhotonCalibratorStandard.h.

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

Definition at line 47 of file PhotonCalibratorStandard.h.

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

Member Data Documentation

float calib::PhotonCalibratorStandard::fSPEShift
private

Definition at line 55 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 54 of file PhotonCalibratorStandard.h.

bool calib::PhotonCalibratorStandard::fUseArea
private

Definition at line 56 of file PhotonCalibratorStandard.h.


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