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 | |
virtual void | add (const PCaloHit &hit) |
CaloHitRespoNew (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, const DetId detId) | |
virtual void | finalizeHits () |
virtual void | initializeHits () |
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 |
bool | withinBunchRange (int bunchCrossing) const |
virtual | ~CaloHitRespoNew () |
Protected Member Functions | |
double | analogSignalAmplitude (const DetId &id, float energy) const |
void | blankOutUsedSamples () |
CaloSamples * | findSignal (const DetId &detId) |
const CaloSubdetectorGeometry * | geometry () const |
const CaloVHitFilter * | hitFilter () const |
VecInd & | index () |
int | maxBunch () const |
int | minBunch () 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 |
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, | ||
const DetId | detId | ||
) |
Definition at line 24 of file CaloHitRespoNew.cc.
References setupSamples().
|
virtual |
|
virtual |
Definition at line 218 of file CaloHitRespoNew.cc.
References CaloVHitFilter::accepts(), edm::isNotFinite(), m_hitFilter, putAnalogSignal(), and PCaloHit::time().
Referenced by run().
|
protected |
Definition at line 269 of file CaloHitRespoNew.cc.
References CaloVPECorrection::correctPE(), CaloSimParameters::doPhotostatistics(), m_PECorrection, Parameters::parameters, params(), ranPois(), and CaloSimParameters::simHitToPhotoelectrons().
Referenced by putAnalogSignal().
|
protected |
Definition at line 190 of file CaloHitRespoNew.cc.
References i, m_index, m_vSamp, and findQualityFiles::size.
Referenced by run().
|
inlinevirtual |
Definition at line 74 of file CaloHitRespoNew.h.
|
protected |
Definition at line 261 of file CaloHitRespoNew.cc.
References CaloSamples::isBlank(), m_index, m_vSamp, and query::result.
Referenced by putAnalogSignal().
|
protected |
Definition at line 99 of file CaloHitRespoNew.cc.
References m_geometry.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), setGeometry(), and timeOfFlight().
|
inlineprotected |
|
inlineprotected |
Definition at line 111 of file CaloHitRespoNew.h.
References m_index.
Referenced by BeautifulSoup.PageElement::_invert().
|
inlinevirtual |
Definition at line 72 of file CaloHitRespoNew.h.
|
inlineprotected |
Definition at line 109 of file CaloHitRespoNew.h.
References m_maxBunch.
Referenced by setBunchRange().
|
inlineprotected |
Definition at line 107 of file CaloHitRespoNew.h.
References m_minBunch.
Referenced by setBunchRange().
const CaloSamples & CaloHitRespoNew::operator[] | ( | unsigned int | i | ) | const |
Definition at line 157 of file CaloHitRespoNew.cc.
|
protected |
Definition at line 85 of file CaloHitRespoNew.cc.
References m_parameterMap, and CaloVSimParameterMap::simParameters().
Referenced by analogSignalAmplitude(), putAnalogSignal(), and setupSamples().
|
protected |
Definition at line 126 of file CaloHitRespoNew.cc.
References m_phaseShift.
Referenced by setPhaseShift().
|
protectedvirtual |
Definition at line 226 of file CaloHitRespoNew.cc.
References analogSignalAmplitude(), newFWLiteAna::bin, BUNCHSPACE, CaloVHitCorrection::delay(), PCaloHit::energy(), findSignal(), PCaloHit::id(), m_hitCorrection, m_phaseShift, Parameters::parameters, params(), query::result, shape(), CaloSamples::size(), PCaloHit::time(), cond::rpcobgas::time, timeOfFlight(), CaloVShape::timeToRise(), and tzero.
Referenced by add().
|
protected |
Definition at line 67 of file CaloHitRespoNew.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and m_RandGauss.
|
protected |
Definition at line 49 of file CaloHitRespoNew.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and m_RandPoisson.
Referenced by analogSignalAmplitude().
|
virtual |
Definition at line 203 of file CaloHitRespoNew.cc.
References add(), MixCollection< T >::begin(), blankOutUsedSamples(), MixCollection< T >::end(), m_index, and withinBunchRange().
unsigned int CaloHitRespoNew::samplesSize | ( | ) | const |
void CaloHitRespoNew::setBunchRange | ( | int | minBunch, |
int | maxBunch | ||
) |
Definition at line 106 of file CaloHitRespoNew.cc.
References m_maxBunch, m_minBunch, maxBunch(), and minBunch().
void CaloHitRespoNew::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
Definition at line 114 of file CaloHitRespoNew.cc.
References geometry(), and m_geometry.
void CaloHitRespoNew::setHitCorrection | ( | const CaloVHitCorrection * | hitCorrection | ) |
Definition at line 138 of file CaloHitRespoNew.cc.
References m_hitCorrection.
void CaloHitRespoNew::setHitFilter | ( | const CaloVHitFilter * | filter | ) |
Definition at line 132 of file CaloHitRespoNew.cc.
References alcazmumu_cfi::filter, and m_hitFilter.
void CaloHitRespoNew::setPECorrection | ( | const CaloVPECorrection * | peCorrection | ) |
Definition at line 144 of file CaloHitRespoNew.cc.
References m_PECorrection.
void CaloHitRespoNew::setPhaseShift | ( | double | phaseShift | ) |
|
virtual |
|
protected |
Definition at line 170 of file CaloHitRespoNew.cc.
References CaloSimParameters::binOfMaximum(), DetId::det(), i, m_vSamp, Parameters::parameters, params(), CaloSimParameters::readoutFrameSize(), findQualityFiles::size, and DetId::subdetId().
Referenced by CaloHitRespoNew().
|
protected |
Definition at line 92 of file CaloHitRespoNew.cc.
References m_shape.
Referenced by putAnalogSignal().
|
protected |
Definition at line 287 of file CaloHitRespoNew.cc.
References geometry(), CaloCellGeometry::getPosition(), and PV3DBase< T, PVType, FrameType >::mag().
Referenced by putAnalogSignal().
|
inline |
Definition at line 76 of file CaloHitRespoNew.h.
References m_maxBunch, and m_minBunch.
Referenced by run().
|
private |
Definition at line 122 of file CaloHitRespoNew.h.
Referenced by geometry(), and setGeometry().
|
private |
Definition at line 119 of file CaloHitRespoNew.h.
Referenced by putAnalogSignal(), and setHitCorrection().
|
private |
Definition at line 121 of file CaloHitRespoNew.h.
Referenced by add(), hitFilter(), and setHitFilter().
|
private |
Definition at line 133 of file CaloHitRespoNew.h.
Referenced by blankOutUsedSamples(), findSignal(), index(), and run().
|
private |
Definition at line 129 of file CaloHitRespoNew.h.
Referenced by maxBunch(), setBunchRange(), and withinBunchRange().
|
private |
Definition at line 128 of file CaloHitRespoNew.h.
Referenced by minBunch(), setBunchRange(), and withinBunchRange().
|
private |
Definition at line 117 of file CaloHitRespoNew.h.
Referenced by params().
|
private |
Definition at line 120 of file CaloHitRespoNew.h.
Referenced by analogSignalAmplitude(), and setPECorrection().
|
private |
Definition at line 130 of file CaloHitRespoNew.h.
Referenced by phaseShift(), putAnalogSignal(), and setPhaseShift().
|
mutableprivate |
Definition at line 126 of file CaloHitRespoNew.h.
Referenced by ranGauss(), setRandomEngine(), and ~CaloHitRespoNew().
|
mutableprivate |
Definition at line 124 of file CaloHitRespoNew.h.
Referenced by ranPois(), setRandomEngine(), and ~CaloHitRespoNew().
|
private |
Definition at line 118 of file CaloHitRespoNew.h.
Referenced by shape().
|
private |
Definition at line 132 of file CaloHitRespoNew.h.
Referenced by blankOutUsedSamples(), findSignal(), operator[](), samplesSize(), and setupSamples().