#include <HGCDigitizerBase.h>
Public Types | |
typedef edm::SortedCollection< DFr > | DColl |
typedef DFr | DigiType |
Public Member Functions | |
HGCDigitizerBase (const edm::ParameterSet &ps) | |
CTOR. More... | |
float | keV2fC () const |
getters More... | |
void | run (std::unique_ptr< DColl > &digiColl, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, uint32_t digitizationType, CLHEP::HepRandomEngine *engine) |
steer digitization mode More... | |
virtual void | runDigitizer (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, uint32_t digitizerType, CLHEP::HepRandomEngine *engine) |
to be specialized by top class More... | |
void | runSimple (std::unique_ptr< DColl > &coll, hgc::HGCSimHitDataAccumulator &simData, const CaloSubdetectorGeometry *theGeom, const std::unordered_set< DetId > &validIds, CLHEP::HepRandomEngine *engine) |
a trivial digitization: sum energies and digitize without noise More... | |
std::array< float, 3 > | tdcForToAOnset () const |
float | tdcOnset () const |
bool | toaModeByEnergy () const |
void | updateOutput (std::unique_ptr< DColl > &coll, const DFr &rawDataFrame) |
prepares the output according to the number of time samples to produce More... | |
virtual | ~HGCDigitizerBase () |
DTOR. More... | |
Protected Attributes | |
double | bxTime_ |
std::vector< double > | cce_ |
bool | doTimeSamples_ |
float | keV2fC_ |
edm::ParameterSet | myCfg_ |
std::unique_ptr< HGCFEElectronics< DFr > > | myFEelectronics_ |
std::vector< float > | noise_fC_ |
Definition at line 25 of file HGCDigitizerBase.h.
typedef edm::SortedCollection<DFr> HGCDigitizerBase< DFr >::DColl |
Definition at line 30 of file HGCDigitizerBase.h.
typedef DFr HGCDigitizerBase< DFr >::DigiType |
Definition at line 28 of file HGCDigitizerBase.h.
HGCDigitizerBase< DFr >::HGCDigitizerBase | ( | const edm::ParameterSet & | ps | ) |
CTOR.
Definition at line 49 of file HGCDigitizerBase.cc.
References hgcalDigitizer_cfi::feCfg, edm::ParameterSet::getParameter(), and edm::swap().
|
inlinevirtual |
|
inline |
void HGCDigitizerBase< DFr >::run | ( | std::unique_ptr< DColl > & | digiColl, |
hgc::HGCSimHitDataAccumulator & | simData, | ||
const CaloSubdetectorGeometry * | theGeom, | ||
const std::unordered_set< DetId > & | validIds, | ||
uint32_t | digitizationType, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
steer digitization mode
Definition at line 80 of file HGCDigitizerBase.cc.
|
inlinevirtual |
to be specialized by top class
Reimplemented in HGCHEbackDigitizer, HGCEEDigitizer, and HGCHEfrontDigitizer.
Definition at line 66 of file HGCDigitizerBase.h.
void HGCDigitizerBase< DFr >::runSimple | ( | std::unique_ptr< DColl > & | coll, |
hgc::HGCSimHitDataAccumulator & | simData, | ||
const CaloSubdetectorGeometry * | theGeom, | ||
const std::unordered_set< DetId > & | validIds, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
a trivial digitization: sum energies and digitize without noise
Definition at line 91 of file HGCDigitizerBase.cc.
References f, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, SiStripPI::max, hgc_digi::HGCCellInfo::size, and hgc_digi::HGCCellInfo::thickness.
Referenced by HGCDigitizerBase< HGCEEDataFrame >::tdcForToAOnset().
|
inline |
Definition at line 49 of file HGCDigitizerBase.h.
|
inline |
Definition at line 48 of file HGCDigitizerBase.h.
|
inline |
Definition at line 47 of file HGCDigitizerBase.h.
void HGCDigitizerBase< DFr >::updateOutput | ( | std::unique_ptr< DColl > & | coll, |
const DFr & | rawDataFrame | ||
) |
prepares the output according to the number of time samples to produce
Definition at line 144 of file HGCDigitizerBase.cc.
Referenced by HGCDigitizerBase< HGCEEDataFrame >::tdcForToAOnset().
|
protected |
Definition at line 99 of file HGCDigitizerBase.h.
|
protected |
Definition at line 93 of file HGCDigitizerBase.h.
|
protected |
Definition at line 102 of file HGCDigitizerBase.h.
|
protected |
Definition at line 87 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< HGCEEDataFrame >::keV2fC().
|
protected |
Definition at line 77 of file HGCDigitizerBase.h.
|
protected |
Definition at line 96 of file HGCDigitizerBase.h.
Referenced by HGCDigitizerBase< HGCEEDataFrame >::tdcForToAOnset(), HGCDigitizerBase< HGCEEDataFrame >::tdcOnset(), and HGCDigitizerBase< HGCEEDataFrame >::toaModeByEnergy().
|
protected |
Definition at line 90 of file HGCDigitizerBase.h.