Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
gar::detinfo::ECALPropertiesStandard Class Reference

Properties related to liquid argon environment in the detector. More...

#include <ECALPropertiesStandard.h>

Inheritance diagram for gar::detinfo::ECALPropertiesStandard:
gar::detinfo::ECALProperties

Classes

struct  Configuration_t
 structure with all configuration parameters More...
 

Public Types

using ConfigurationParameters_t = Configuration_t
 

Public Member Functions

 ECALPropertiesStandard ()
 
 ECALPropertiesStandard (fhicl::ParameterSet const &pset, std::set< std::string > ignore_params={})
 
 ECALPropertiesStandard (ECALPropertiesStandard const &)=delete
 
virtual ~ECALPropertiesStandard ()=default
 
bool Configure (fhicl::ParameterSet const &pset, std::set< std::string > ignore_params={})
 Configures the provider. More...
 
bool Update (uint64_t ts=0)
 
virtual double EffectivePixel () const override
 SiPM Number of effective pixels (px) More...
 
virtual double LightYield () const override
 Light yield of the tile (px/MIP) More...
 
virtual double SiPMGain () const override
 SiPM Gain (ADC/px) More...
 
virtual double ScintBirksConstant () const override
 Birks constant (mm/MeV) More...
 
virtual double IntercalibrationFactor () const override
 Intercalibration factor. More...
 
virtual double ADCSaturation () const override
 
virtual double TimeResolution () const override
 
virtual double MeVtoMIP () const override
 
virtual double NoisePx () const override
 
void SetEffectivePixel (double effpx)
 
void SetLightYield (double ly)
 
void SetSiPMGain (double gain)
 
void SetScintBirksConstant (double birks)
 
void SetIntercalibrationFactor (double intercalib)
 
void SetADCSaturation (double adcsaturation)
 
void SetTimeResolution (double timeresolution)
 
void SetMeVtoMIP (double mevtomip)
 
void SetNoisePx (double noisepx)
 
- Public Member Functions inherited from gar::detinfo::ECALProperties
 ECALProperties (const ECALProperties &)=delete
 
 ECALProperties (ECALProperties &&)=delete
 
ECALPropertiesoperator= (const ECALProperties &)=delete
 
ECALPropertiesoperator= (ECALProperties &&)=delete
 
virtual ~ECALProperties ()=default
 

Protected Attributes

bool fIsConfigured
 
double fNeffPx
 px More...
 
double fLY
 px/MIP More...
 
double fGain
 ADC/px. More...
 
double fBirks
 mm/MeV More...
 
double fInterCalib
 
double fADCSaturation
 12-bits More...
 
double fTimeResolution
 in ns More...
 
double fMeVtoMIP
 in MeV / MIP More...
 
double fNoisepx
 noise in px More...
 

Additional Inherited Members

- Protected Member Functions inherited from gar::detinfo::ECALProperties
 ECALProperties ()=default
 

Detailed Description

Properties related to liquid argon environment in the detector.

This class can access databases via DatabaseUtil service.

Note
Some of the database connection properties are established before the beginning of the job and if they change this service will not be aware of it. These properties petrain, so far, only the connection mode and not any content of the databases themselves.
2: the database connection features for this base class have been removed

Definition at line 46 of file ECALPropertiesStandard.h.

Member Typedef Documentation

Definition at line 139 of file ECALPropertiesStandard.h.

Constructor & Destructor Documentation

gar::detinfo::ECALPropertiesStandard::ECALPropertiesStandard ( )

Definition at line 21 of file ECALPropertiesStandard.cxx.

gar::detinfo::ECALPropertiesStandard::ECALPropertiesStandard ( fhicl::ParameterSet const &  pset,
std::set< std::string ignore_params = {} 
)
explicit

Definition at line 27 of file ECALPropertiesStandard.cxx.

30 {
31  this->Configure(pset, ignore_params);
32 }
bool Configure(fhicl::ParameterSet const &pset, std::set< std::string > ignore_params={})
Configures the provider.
gar::detinfo::ECALPropertiesStandard::ECALPropertiesStandard ( ECALPropertiesStandard const &  )
delete
virtual gar::detinfo::ECALPropertiesStandard::~ECALPropertiesStandard ( )
virtualdefault

Member Function Documentation

virtual double gar::detinfo::ECALPropertiesStandard::ADCSaturation ( ) const
inlineoverridevirtual

Implements gar::detinfo::ECALProperties.

Definition at line 83 of file ECALPropertiesStandard.h.

bool gar::detinfo::ECALPropertiesStandard::Configure ( fhicl::ParameterSet const &  pset,
std::set< std::string ignore_params = {} 
)

Configures the provider.

Parameters
pconfiguration parameter set
ignore_paramsparameters to be ignored (optional)

This method will validate the parameter set (except for the parameters it's explicitly told to ignore) and extract the useful information out of it.

Definition at line 35 of file ECALPropertiesStandard.cxx.

37 {
38  std::set<std::string> ignorable_keys = gar::IgnorableProviderConfigKeys();
39  ignorable_keys.insert(ignore_params.begin(), ignore_params.end());
40 
41  // validation happens here:
43  Configuration_t const& config = config_table();
44 
45  SetEffectivePixel (config.EffectivePixel() );
46  SetLightYield (config.LightYield() );
47  SetSiPMGain (config.SiPMGain() );
48  SetScintBirksConstant (config.ScintBirksConstant() );
49  SetIntercalibrationFactor (config.IntercalibrationFactor() );
50  SetADCSaturation (config.ADCSaturation() );
51  SetTimeResolution (config.TimeResolution() );
52  SetMeVtoMIP (config.MeVtoMIP() );
53  SetNoisePx (config.NoisePx() );
54 
55  fIsConfigured = true;
56 
57  return true;
58 }
void SetADCSaturation(double adcsaturation)
static Config * config
Definition: config.cpp:1054
std::set< std::string > const & IgnorableProviderConfigKeys()
Returns a list of configuration keys that providers should ignore.
Definition: ProviderUtil.h:35
void SetIntercalibrationFactor(double intercalib)
void SetTimeResolution(double timeresolution)
virtual double gar::detinfo::ECALPropertiesStandard::EffectivePixel ( ) const
inlineoverridevirtual

SiPM Number of effective pixels (px)

g/cm^2

Implements gar::detinfo::ECALProperties.

Definition at line 68 of file ECALPropertiesStandard.h.

virtual double gar::detinfo::ECALPropertiesStandard::IntercalibrationFactor ( ) const
inlineoverridevirtual

Intercalibration factor.

Implements gar::detinfo::ECALProperties.

Definition at line 80 of file ECALPropertiesStandard.h.

virtual double gar::detinfo::ECALPropertiesStandard::LightYield ( ) const
inlineoverridevirtual

Light yield of the tile (px/MIP)

Implements gar::detinfo::ECALProperties.

Definition at line 71 of file ECALPropertiesStandard.h.

virtual double gar::detinfo::ECALPropertiesStandard::MeVtoMIP ( ) const
inlineoverridevirtual

Implements gar::detinfo::ECALProperties.

Definition at line 89 of file ECALPropertiesStandard.h.

89 { return fMeVtoMIP; }
virtual double gar::detinfo::ECALPropertiesStandard::NoisePx ( ) const
inlineoverridevirtual

Implements gar::detinfo::ECALProperties.

Definition at line 92 of file ECALPropertiesStandard.h.

92 { return fNoisepx; }
virtual double gar::detinfo::ECALPropertiesStandard::ScintBirksConstant ( ) const
inlineoverridevirtual

Birks constant (mm/MeV)

Implements gar::detinfo::ECALProperties.

Definition at line 77 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetADCSaturation ( double  adcsaturation)
inline

Definition at line 99 of file ECALPropertiesStandard.h.

99 { fADCSaturation = adcsaturation; }
void gar::detinfo::ECALPropertiesStandard::SetEffectivePixel ( double  effpx)
inline

Definition at line 94 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetIntercalibrationFactor ( double  intercalib)
inline

Definition at line 98 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetLightYield ( double  ly)
inline

Definition at line 95 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetMeVtoMIP ( double  mevtomip)
inline

Definition at line 101 of file ECALPropertiesStandard.h.

101 { fMeVtoMIP = mevtomip; }
void gar::detinfo::ECALPropertiesStandard::SetNoisePx ( double  noisepx)
inline

Definition at line 102 of file ECALPropertiesStandard.h.

102 { fNoisepx = noisepx; }
void gar::detinfo::ECALPropertiesStandard::SetScintBirksConstant ( double  birks)
inline

Definition at line 97 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetSiPMGain ( double  gain)
inline

Definition at line 96 of file ECALPropertiesStandard.h.

void gar::detinfo::ECALPropertiesStandard::SetTimeResolution ( double  timeresolution)
inline

Definition at line 100 of file ECALPropertiesStandard.h.

100 { fTimeResolution = timeresolution; }
virtual double gar::detinfo::ECALPropertiesStandard::SiPMGain ( ) const
inlineoverridevirtual

SiPM Gain (ADC/px)

Implements gar::detinfo::ECALProperties.

Definition at line 74 of file ECALPropertiesStandard.h.

virtual double gar::detinfo::ECALPropertiesStandard::TimeResolution ( ) const
inlineoverridevirtual

Implements gar::detinfo::ECALProperties.

Definition at line 86 of file ECALPropertiesStandard.h.

bool gar::detinfo::ECALPropertiesStandard::Update ( uint64_t  ts = 0)

Definition at line 61 of file ECALPropertiesStandard.cxx.

62 {
63  if (ts == 0) return false;
64 
65  return true;
66 }

Member Data Documentation

double gar::detinfo::ECALPropertiesStandard::fADCSaturation
protected

12-bits

Definition at line 132 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fBirks
protected

mm/MeV

Definition at line 130 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fGain
protected

ADC/px.

Definition at line 129 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fInterCalib
protected

Definition at line 131 of file ECALPropertiesStandard.h.

bool gar::detinfo::ECALPropertiesStandard::fIsConfigured
protected

Definition at line 125 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fLY
protected

px/MIP

Definition at line 128 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fMeVtoMIP
protected

in MeV / MIP

Definition at line 134 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fNeffPx
protected

px

Definition at line 127 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fNoisepx
protected

noise in px

Definition at line 135 of file ECALPropertiesStandard.h.

double gar::detinfo::ECALPropertiesStandard::fTimeResolution
protected

in ns

Definition at line 133 of file ECALPropertiesStandard.h.


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