All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
opdet::DigiPMTSBNDAlgMaker Class Reference

#include <DigiPMTSBNDAlg.hh>

Classes

struct  Config
 

Public Member Functions

 DigiPMTSBNDAlgMaker (Config const &config)
 
std::unique_ptr< DigiPMTSBNDAlgoperator() (detinfo::LArProperties const &larProp, detinfo::DetectorClocksData const &clockData, CLHEP::HepRandomEngine *engine) const
 

Private Attributes

DigiPMTSBNDAlg::ConfigurationParameters_t fBaseConfig
 

Detailed Description

Definition at line 188 of file DigiPMTSBNDAlg.hh.

Constructor & Destructor Documentation

opdet::DigiPMTSBNDAlgMaker::DigiPMTSBNDAlgMaker ( Config const &  config)

Definition at line 462 of file DigiPMTSBNDAlg.cc.

463  {
464  // settings
465  fBaseConfig.PMTChargeToADC = config.pmtchargeToADC();
466  fBaseConfig.PMTBaseline = config.pmtbaseline();
467  fBaseConfig.PMTSaturation = config.pmtsaturation();
468  fBaseConfig.QEDirect = config.qEDirect();
469  fBaseConfig.QERefl = config.qERefl();
470  fBaseConfig.PMTSinglePEmodel = config.PMTsinglePEmodel();
471  fBaseConfig.PMTRiseTime = config.pmtriseTime();
472  fBaseConfig.PMTFallTime = config.pmtfallTime();
473  fBaseConfig.PMTMeanAmplitude = config.pmtmeanAmplitude();
474  fBaseConfig.PMTDarkNoiseRate = config.pmtdarkNoiseRate();
475  fBaseConfig.PMTBaselineRMS = config.pmtbaselineRMS();
476  fBaseConfig.TransitTime = config.transitTime();
477  fBaseConfig.TTS = config.tts();
478  fBaseConfig.CableTime = config.cableTime();
479  fBaseConfig.PMTDataFile = config.pmtDataFile();
480  fBaseConfig.MakeGainFluctuations = config.makeGainFluctuations();
481  config.gainFluctuationsParams.get_if_present(fBaseConfig.GainFluctuationsParams);
482  }
DigiPMTSBNDAlg::ConfigurationParameters_t fBaseConfig

Member Function Documentation

std::unique_ptr< DigiPMTSBNDAlg > opdet::DigiPMTSBNDAlgMaker::operator() ( detinfo::LArProperties const &  larProp,
detinfo::DetectorClocksData const &  clockData,
CLHEP::HepRandomEngine *  engine 
) const

Definition at line 485 of file DigiPMTSBNDAlg.cc.

490  {
491  // set the configuration
492  auto params = fBaseConfig;
493 
494  // set up parameters
495  params.larProp = &larProp;
496  params.frequency = clockData.OpticalClock().Frequency();
497  params.engine = engine;
498 
499  return std::make_unique<DigiPMTSBNDAlg>(params);
500  } // DigiPMTSBNDAlgMaker::create()
DigiPMTSBNDAlg::ConfigurationParameters_t fBaseConfig

Member Data Documentation

DigiPMTSBNDAlg::ConfigurationParameters_t opdet::DigiPMTSBNDAlgMaker::fBaseConfig
private

Definition at line 292 of file DigiPMTSBNDAlg.hh.


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