#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 66 of file HGCDigitizerBase.h.
typedef edm::SortedCollection<DFr> HGCDigitizerBase< DFr >::DColl |
Definition at line 71 of file HGCDigitizerBase.h.
typedef DFr HGCDigitizerBase< DFr >::DigiType |
Definition at line 69 of file HGCDigitizerBase.h.
HGCDigitizerBase< DFr >::HGCDigitizerBase | ( | const edm::ParameterSet & | ps | ) |
CTOR.
Definition at line 9 of file HGCDigitizerBase.cc.
References hgcalDigitizer_cfi::feCfg, edm::ParameterSet::getParameter(), hgcalLayerClusters_cff::noises, 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 45 of file HGCDigitizerBase.cc.
|
inlinevirtual |
to be specialized by top class
Reimplemented in HGCHEbackDigitizer, HGCEEDigitizer, and HGCHEfrontDigitizer.
Definition at line 107 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 56 of file HGCDigitizerBase.cc.
References hgc_digi_utils::addCellMetadata(), f, hgc_digi::HGCCellInfo::hit_info, mps_fire::i, SiStripPI::max, hgc_digi::HGCCellInfo::size, and hgc_digi::HGCCellInfo::thickness.
|
inline |
Definition at line 90 of file HGCDigitizerBase.h.
|
inline |
Definition at line 89 of file HGCDigitizerBase.h.
|
inline |
Definition at line 88 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 109 of file HGCDigitizerBase.cc.
|
protected |
Definition at line 140 of file HGCDigitizerBase.h.
|
protected |
Definition at line 134 of file HGCDigitizerBase.h.
|
protected |
Definition at line 143 of file HGCDigitizerBase.h.
|
protected |
Definition at line 128 of file HGCDigitizerBase.h.
|
protected |
Definition at line 118 of file HGCDigitizerBase.h.
|
protected |
Definition at line 137 of file HGCDigitizerBase.h.
|
protected |
Definition at line 131 of file HGCDigitizerBase.h.