Creates electronics signals from hits. More...
#include <CaloHitRespoNew.h>
Public Types | |
enum | { BUNCHSPACE =25 } |
typedef std::vector< unsigned int > | VecInd |
typedef std::vector< CaloSamples > | VecSam |
Public Member Functions | |
CaloHitRespoNew (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
const CaloSamples & | operator[] (unsigned int i) const |
virtual void | run (MixCollection< PCaloHit > &hits) |
unsigned int | samplesSize () const |
void | setBunchRange (int minBunch, int maxBunch) |
void | setGeometry (const CaloSubdetectorGeometry *geometry) |
void | setHitCorrection (const CaloVHitCorrection *hitCorrection) |
void | setHitFilter (const CaloVHitFilter *filter) |
void | setPECorrection (const CaloVPECorrection *peCorrection) |
void | setPhaseShift (double phaseShift) |
virtual void | setRandomEngine (CLHEP::HepRandomEngine &engine) const |
virtual | ~CaloHitRespoNew () |
Protected Member Functions | |
double | analogSignalAmplitude (const PCaloHit &hit) const |
void | blankOutUsedSamples () |
CaloSamples * | findSignal (const DetId &detId) |
const CaloSubdetectorGeometry * | geometry () const |
const CaloSimParameters * | params (const DetId &detId) const |
double | phaseShift () const |
virtual void | putAnalogSignal (const PCaloHit &inputHit) |
CLHEP::RandGaussQ * | ranGauss () const |
CLHEP::RandPoissonQ * | ranPois () const |
void | setupSamples (const DetId &detId) |
const CaloVShape * | shape () const |
double | timeOfFlight (const DetId &detId) const |
Private Attributes | |
const CaloSubdetectorGeometry * | m_geometry |
const CaloVHitCorrection * | m_hitCorrection |
const CaloVHitFilter * | m_hitFilter |
VecInd | m_index |
int | m_maxBunch |
int | m_minBunch |
const CaloVSimParameterMap * | m_parameterMap |
const CaloVPECorrection * | m_PECorrection |
double | m_phaseShift |
CLHEP::RandGaussQ * | m_RandGauss |
CLHEP::RandPoissonQ * | m_RandPoisson |
bool | m_setup |
const CaloVShape * | m_shape |
VecSam | m_vSamp |
Creates electronics signals from hits.
Definition at line 34 of file CaloHitRespoNew.h.
typedef std::vector< unsigned int > CaloHitRespoNew::VecInd |
Definition at line 39 of file CaloHitRespoNew.h.
typedef std::vector< CaloSamples > CaloHitRespoNew::VecSam |
Definition at line 38 of file CaloHitRespoNew.h.
anonymous enum |
Enumerator | |
---|---|
BUNCHSPACE |
Definition at line 41 of file CaloHitRespoNew.h.
CaloHitRespoNew::CaloHitRespoNew | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloVShape * | shape | ||
) |
Definition at line 23 of file CaloHitRespoNew.cc.
|
virtual |
|
protected |
Definition at line 264 of file CaloHitRespoNew.cc.
References CaloVPECorrection::correctPE(), PCaloHit::energy(), PCaloHit::id(), m_PECorrection, Parameters::parameters, params(), and ranPois().
Referenced by putAnalogSignal().
|
protected |
Definition at line 189 of file CaloHitRespoNew.cc.
References i, m_index, m_vSamp, and findQualityFiles::size.
Referenced by run().
|
protected |
Definition at line 256 of file CaloHitRespoNew.cc.
References CaloSamples::isBlank(), m_index, m_vSamp, and query::result.
Referenced by EBHitResponse::putAnalogSignal(), and putAnalogSignal().
|
protected |
Definition at line 97 of file CaloHitRespoNew.cc.
References m_geometry.
Referenced by python.Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), setGeometry(), and timeOfFlight().
const CaloSamples & CaloHitRespoNew::operator[] | ( | unsigned int | i | ) | const |
Definition at line 155 of file CaloHitRespoNew.cc.
|
protected |
Definition at line 83 of file CaloHitRespoNew.cc.
References m_parameterMap, and CaloVSimParameterMap::simParameters().
Referenced by analogSignalAmplitude(), EBHitResponse::putAnalogSignal(), putAnalogSignal(), and setupSamples().
|
protected |
Definition at line 124 of file CaloHitRespoNew.cc.
References m_phaseShift.
Referenced by EBHitResponse::putAnalogSignal(), and setPhaseShift().
|
protectedvirtual |
Reimplemented in EBHitResponse.
Definition at line 223 of file CaloHitRespoNew.cc.
References analogSignalAmplitude(), newFWLiteAna::bin, BUNCHSPACE, CaloVHitCorrection::correct(), findSignal(), PCaloHit::id(), m_hitCorrection, m_phaseShift, Parameters::parameters, params(), query::result, shape(), CaloSamples::size(), PCaloHit::time(), timeOfFlight(), CaloVShape::timeToRise(), and tzero.
Referenced by EBHitResponse::putAnalogSignal(), and run().
|
protected |
Definition at line 65 of file CaloHitRespoNew.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and m_RandGauss.
Referenced by EBHitResponse::EBHitResponse().
|
protected |
Definition at line 47 of file CaloHitRespoNew.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and m_RandPoisson.
Referenced by analogSignalAmplitude(), and EBHitResponse::apdSignalAmplitude().
|
virtual |
Definition at line 202 of file CaloHitRespoNew.cc.
References CaloVHitFilter::accepts(), MixCollection< T >::begin(), blankOutUsedSamples(), MixCollection< T >::end(), edm::detail::isnan(), m_hitFilter, m_index, m_maxBunch, m_minBunch, m_setup, putAnalogSignal(), setupSamples(), MixCollection< T >::size(), and PCaloHit::time().
unsigned int CaloHitRespoNew::samplesSize | ( | ) | const |
void CaloHitRespoNew::setBunchRange | ( | int | minBunch, |
int | maxBunch | ||
) |
void CaloHitRespoNew::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
Definition at line 112 of file CaloHitRespoNew.cc.
References geometry(), and m_geometry.
Referenced by EcalTBDigiProducer::produce(), and EcalDigiProducer::updateGeometry().
void CaloHitRespoNew::setHitCorrection | ( | const CaloVHitCorrection * | hitCorrection | ) |
Definition at line 136 of file CaloHitRespoNew.cc.
References m_hitCorrection.
void CaloHitRespoNew::setHitFilter | ( | const CaloVHitFilter * | filter | ) |
Definition at line 130 of file CaloHitRespoNew.cc.
References align_tpl::filter, and m_hitFilter.
void CaloHitRespoNew::setPECorrection | ( | const CaloVPECorrection * | peCorrection | ) |
Definition at line 142 of file CaloHitRespoNew.cc.
References m_PECorrection.
void CaloHitRespoNew::setPhaseShift | ( | double | phaseShift | ) |
Definition at line 118 of file CaloHitRespoNew.cc.
References m_phaseShift, and phaseShift().
Referenced by EcalDigiProducer::EcalDigiProducer(), and EcalTBDigiProducer::setPhaseShift().
|
virtual |
|
protected |
Definition at line 168 of file CaloHitRespoNew.cc.
References CaloSimParameters::binOfMaximum(), DetId::det(), i, m_setup, m_vSamp, Parameters::parameters, params(), CaloSimParameters::readoutFrameSize(), findQualityFiles::size, DetId::subdetId(), and funct::true.
Referenced by run().
|
protected |
Definition at line 90 of file CaloHitRespoNew.cc.
References m_shape.
Referenced by putAnalogSignal().
|
protected |
Definition at line 284 of file CaloHitRespoNew.cc.
References geometry(), CaloCellGeometry::getPosition(), and PV3DBase< T, PVType, FrameType >::mag().
Referenced by EBHitResponse::putAnalogSignal(), and putAnalogSignal().
|
private |
Definition at line 102 of file CaloHitRespoNew.h.
Referenced by geometry(), and setGeometry().
|
private |
Definition at line 99 of file CaloHitRespoNew.h.
Referenced by putAnalogSignal(), and setHitCorrection().
|
private |
Definition at line 101 of file CaloHitRespoNew.h.
Referenced by run(), and setHitFilter().
|
private |
Definition at line 114 of file CaloHitRespoNew.h.
Referenced by blankOutUsedSamples(), findSignal(), and run().
|
private |
Definition at line 109 of file CaloHitRespoNew.h.
Referenced by run(), and setBunchRange().
|
private |
Definition at line 108 of file CaloHitRespoNew.h.
Referenced by run(), and setBunchRange().
|
private |
Definition at line 97 of file CaloHitRespoNew.h.
Referenced by params().
|
private |
Definition at line 100 of file CaloHitRespoNew.h.
Referenced by analogSignalAmplitude(), and setPECorrection().
|
private |
Definition at line 110 of file CaloHitRespoNew.h.
Referenced by phaseShift(), putAnalogSignal(), and setPhaseShift().
|
mutableprivate |
Definition at line 106 of file CaloHitRespoNew.h.
Referenced by ranGauss(), setRandomEngine(), and ~CaloHitRespoNew().
|
mutableprivate |
Definition at line 104 of file CaloHitRespoNew.h.
Referenced by ranPois(), setRandomEngine(), and ~CaloHitRespoNew().
|
private |
Definition at line 111 of file CaloHitRespoNew.h.
Referenced by run(), and setupSamples().
|
private |
Definition at line 98 of file CaloHitRespoNew.h.
Referenced by shape().
|
private |
Definition at line 113 of file CaloHitRespoNew.h.
Referenced by blankOutUsedSamples(), findSignal(), operator[](), samplesSize(), and setupSamples().