All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 22 of file PhotonCalibratorStandard.h.

Constructor & Destructor Documentation

calib::PhotonCalibratorStandard::PhotonCalibratorStandard ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry &  reg 
)
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 32 of file PhotonCalibratorStandard.h.

33  : fSPESize ( size ),
34  fSPEShift ( shift ),
35  fUseArea ( useArea )
36  {}
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
shift
Definition: fcl_checks.sh:26

Member Function Documentation

double calib::PhotonCalibratorStandard::PE ( double  adcs,
int  opchannel 
) const
inlineoverridevirtual
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.

43 { fSPESize = size; }
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
void calib::PhotonCalibratorStandard::SetUseArea ( bool  useArea)
inline

Definition at line 45 of file PhotonCalibratorStandard.h.

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

Implements calib::IPhotonCalibrator.

Definition at line 40 of file PhotonCalibratorStandard.h.

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: