LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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)
 
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 25 of file PhotonCalibratorStandard.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file PhotonCalibratorStandard.h.

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

Member Function Documentation

double calib::PhotonCalibratorStandard::PE ( double  adcs,
int  opchannel 
) 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 50 of file IPhotonCalibrator.h.

References recob::OpHit::PE().

51  {
52  return oh.PE();
53  }
double PE() const
Definition: OpHit.h:69
double calib::IPhotonCalibrator::PE ( const recob::OpFlash of) const
inlineinherited

Definition at line 55 of file IPhotonCalibrator.h.

References recob::OpFlash::TotalPE().

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

Definition at line 47 of file PhotonCalibratorStandard.h.

References fSPEShift.

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

Definition at line 46 of file PhotonCalibratorStandard.h.

References fSPESize.

void calib::PhotonCalibratorStandard::SetUseArea ( bool  useArea)
inline

Definition at line 48 of file PhotonCalibratorStandard.h.

References fUseArea.

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

Implements calib::IPhotonCalibrator.

Definition at line 43 of file PhotonCalibratorStandard.h.

References fUseArea.

Member Data Documentation

float calib::PhotonCalibratorStandard::fSPEShift
private

Definition at line 56 of file PhotonCalibratorStandard.h.

Referenced by PE(), and SetSPEShift().

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 55 of file PhotonCalibratorStandard.h.

Referenced by PE(), and SetSPESize().

bool calib::PhotonCalibratorStandard::fUseArea
private

Definition at line 57 of file PhotonCalibratorStandard.h.

Referenced by SetUseArea(), and UseArea().


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