CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
EcalHitResponse Class Referenceabstract

#include <EcalHitResponse.h>

Inheritance diagram for EcalHitResponse:
EBHitResponse EEHitResponse ESHitResponse

Public Types

enum  { BUNCHSPACE = 25 }
 
typedef CaloTSamplesBase< float > EcalSamples
 
typedef std::vector< unsigned int > VecInd
 

Public Member Functions

void add (const EcalSamples *pSam)
 
virtual void add (const PCaloHit &hit, CLHEP::HepRandomEngine *)
 
virtual void add (const CaloSamples &hit)
 
 EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
 
virtual void finalizeHits ()
 
const EcalSamplesfindDetId (const DetId &detId) const
 
virtual void initializeHits ()
 
virtual EcalSamplesoperator[] (unsigned int i)=0
 
virtual const EcalSamplesoperator[] (unsigned int i) const =0
 
virtual void run (MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *)
 
virtual unsigned int samplesSize () const =0
 
void setBunchRange (int minBunch, int maxBunch)
 
void setEventTime (const edm::TimeValue_t &iTime)
 
void setGeometry (const CaloSubdetectorGeometry *geometry)
 
void setHitCorrection (const CaloVHitCorrection *hitCorrection)
 
void setHitFilter (const CaloVHitFilter *filter)
 
void setLaserConstants (const EcalLaserDbService *laser, bool &useLCcorrection)
 
void setPECorrection (const CaloVPECorrection *peCorrection)
 
void setPhaseShift (double phaseShift)
 
bool withinBunchRange (int bunchCrossing) const
 
virtual ~EcalHitResponse ()
 

Protected Member Functions

double analogSignalAmplitude (const DetId &id, float energy, CLHEP::HepRandomEngine *) const
 
void blankOutUsedSamples ()
 
double findLaserConstant (const DetId &detId) const
 
EcalSamplesfindSignal (const DetId &detId)
 
const CaloSubdetectorGeometrygeometry () const
 
const CaloVHitFilterhitFilter () const
 
VecIndindex ()
 
const VecIndindex () const
 
int maxBunch () const
 
int minBunch () const
 
const CaloSimParametersparams (const DetId &detId) const
 
double phaseShift () const
 
virtual void putAnalogSignal (const PCaloHit &inputHit, CLHEP::HepRandomEngine *)
 
virtual unsigned int samplesSizeAll () const =0
 
const CaloVShapeshape () const
 
double timeOfFlight (const DetId &detId) const
 
virtual EcalSamplesvSam (unsigned int i)=0
 
virtual EcalSamplesvSamAll (unsigned int i)=0
 
virtual const EcalSamplesvSamAll (unsigned int i) const =0
 

Private Attributes

const CaloSubdetectorGeometrym_geometry
 
const CaloVHitCorrectionm_hitCorrection
 
const CaloVHitFilterm_hitFilter
 
VecInd m_index
 
edm::TimeValue_t m_iTime
 
const EcalLaserDbServicem_lasercals
 
int m_maxBunch
 
int m_minBunch
 
const CaloVSimParameterMapm_parameterMap
 
const CaloVPECorrectionm_PECorrection
 
double m_phaseShift
 
const CaloVShapem_shape
 
bool m_useLCcorrection
 

Detailed Description

Definition at line 28 of file EcalHitResponse.h.

Member Typedef Documentation

Definition at line 32 of file EcalHitResponse.h.

typedef std::vector< unsigned int > EcalHitResponse::VecInd

Definition at line 34 of file EcalHitResponse.h.

Member Enumeration Documentation

anonymous enum
Enumerator
BUNCHSPACE 

Definition at line 36 of file EcalHitResponse.h.

Constructor & Destructor Documentation

EcalHitResponse::EcalHitResponse ( const CaloVSimParameterMap parameterMap,
const CaloVShape shape 
)

Definition at line 22 of file EcalHitResponse.cc.

EcalHitResponse::~EcalHitResponse ( )
virtual

Definition at line 39 of file EcalHitResponse.cc.

Member Function Documentation

void EcalHitResponse::add ( const EcalSamples pSam)

Definition at line 283 of file EcalHitResponse.cc.

Referenced by counter.Counter::register().

void EcalHitResponse::add ( const PCaloHit hit,
CLHEP::HepRandomEngine *  engine 
)
virtual

Reimplemented in EBHitResponse.

Definition at line 135 of file EcalHitResponse.cc.

Referenced by counter.Counter::register().

void EcalHitResponse::add ( const CaloSamples hit)
virtual

Definition at line 143 of file EcalHitResponse.cc.

Referenced by counter.Counter::register().

double EcalHitResponse::analogSignalAmplitude ( const DetId id,
float  energy,
CLHEP::HepRandomEngine *  engine 
) const
protected

Definition at line 250 of file EcalHitResponse.cc.

void EcalHitResponse::blankOutUsedSamples ( )
protected

Definition at line 122 of file EcalHitResponse.cc.

void EcalHitResponse::finalizeHits ( )
virtual

Reimplemented in EBHitResponse.

Definition at line 177 of file EcalHitResponse.cc.

const EcalHitResponse::EcalSamples * EcalHitResponse::findDetId ( const DetId detId) const

Definition at line 320 of file EcalHitResponse.cc.

double EcalHitResponse::findLaserConstant ( const DetId detId) const
protected

Definition at line 234 of file EcalHitResponse.cc.

EcalHitResponse::EcalSamples * EcalHitResponse::findSignal ( const DetId detId)
protected

Definition at line 241 of file EcalHitResponse.cc.

const CaloSubdetectorGeometry * EcalHitResponse::geometry ( ) const
protected

Definition at line 58 of file EcalHitResponse.cc.

const CaloVHitFilter * EcalHitResponse::hitFilter ( ) const
protected

Definition at line 314 of file EcalHitResponse.cc.

EcalHitResponse::VecInd & EcalHitResponse::index ( )
protected
const EcalHitResponse::VecInd & EcalHitResponse::index ( ) const
protected

Definition at line 308 of file EcalHitResponse.cc.

void EcalHitResponse::initializeHits ( )
virtual

Reimplemented in EBHitResponse.

Definition at line 171 of file EcalHitResponse.cc.

int EcalHitResponse::maxBunch ( ) const
protected

Definition at line 296 of file EcalHitResponse.cc.

int EcalHitResponse::minBunch ( ) const
protected

Definition at line 290 of file EcalHitResponse.cc.

virtual EcalSamples* EcalHitResponse::operator[] ( unsigned int  i)
pure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

virtual const EcalSamples* EcalHitResponse::operator[] ( unsigned int  i) const
pure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

const CaloSimParameters * EcalHitResponse::params ( const DetId detId) const
protected

Definition at line 44 of file EcalHitResponse.cc.

double EcalHitResponse::phaseShift ( ) const
protected

Definition at line 85 of file EcalHitResponse.cc.

void EcalHitResponse::putAnalogSignal ( const PCaloHit inputHit,
CLHEP::HepRandomEngine *  engine 
)
protectedvirtual

Definition at line 199 of file EcalHitResponse.cc.

void EcalHitResponse::run ( MixCollection< PCaloHit > &  hits,
CLHEP::HepRandomEngine *  engine 
)
virtual

Reimplemented in EBHitResponse.

Definition at line 182 of file EcalHitResponse.cc.

virtual unsigned int EcalHitResponse::samplesSize ( ) const
pure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

virtual unsigned int EcalHitResponse::samplesSizeAll ( ) const
protectedpure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

void EcalHitResponse::setBunchRange ( int  minBunch,
int  maxBunch 
)

Definition at line 65 of file EcalHitResponse.cc.

void EcalHitResponse::setEventTime ( const edm::TimeValue_t iTime)

Definition at line 109 of file EcalHitResponse.cc.

void EcalHitResponse::setGeometry ( const CaloSubdetectorGeometry geometry)

Definition at line 73 of file EcalHitResponse.cc.

void EcalHitResponse::setHitCorrection ( const CaloVHitCorrection hitCorrection)

Definition at line 97 of file EcalHitResponse.cc.

void EcalHitResponse::setHitFilter ( const CaloVHitFilter filter)

Definition at line 91 of file EcalHitResponse.cc.

void EcalHitResponse::setLaserConstants ( const EcalLaserDbService laser,
bool &  useLCcorrection 
)

Definition at line 115 of file EcalHitResponse.cc.

void EcalHitResponse::setPECorrection ( const CaloVPECorrection peCorrection)

Definition at line 103 of file EcalHitResponse.cc.

void EcalHitResponse::setPhaseShift ( double  phaseShift)

Definition at line 79 of file EcalHitResponse.cc.

const CaloVShape * EcalHitResponse::shape ( void  ) const
protected

Definition at line 51 of file EcalHitResponse.cc.

double EcalHitResponse::timeOfFlight ( const DetId detId) const
protected

Definition at line 275 of file EcalHitResponse.cc.

virtual EcalSamples* EcalHitResponse::vSam ( unsigned int  i)
protectedpure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

virtual EcalSamples* EcalHitResponse::vSamAll ( unsigned int  i)
protectedpure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

virtual const EcalSamples* EcalHitResponse::vSamAll ( unsigned int  i) const
protectedpure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

bool EcalHitResponse::withinBunchRange ( int  bunchCrossing) const

Definition at line 165 of file EcalHitResponse.cc.

Member Data Documentation

const CaloSubdetectorGeometry* EcalHitResponse::m_geometry
private

Definition at line 129 of file EcalHitResponse.h.

const CaloVHitCorrection* EcalHitResponse::m_hitCorrection
private

Definition at line 126 of file EcalHitResponse.h.

const CaloVHitFilter* EcalHitResponse::m_hitFilter
private

Definition at line 128 of file EcalHitResponse.h.

VecInd EcalHitResponse::m_index
private

Definition at line 139 of file EcalHitResponse.h.

edm::TimeValue_t EcalHitResponse::m_iTime
private

Definition at line 136 of file EcalHitResponse.h.

const EcalLaserDbService* EcalHitResponse::m_lasercals
private

Definition at line 130 of file EcalHitResponse.h.

int EcalHitResponse::m_maxBunch
private

Definition at line 133 of file EcalHitResponse.h.

int EcalHitResponse::m_minBunch
private

Definition at line 132 of file EcalHitResponse.h.

const CaloVSimParameterMap* EcalHitResponse::m_parameterMap
private

Definition at line 124 of file EcalHitResponse.h.

const CaloVPECorrection* EcalHitResponse::m_PECorrection
private

Definition at line 127 of file EcalHitResponse.h.

double EcalHitResponse::m_phaseShift
private

Definition at line 134 of file EcalHitResponse.h.

const CaloVShape* EcalHitResponse::m_shape
private

Definition at line 125 of file EcalHitResponse.h.

bool EcalHitResponse::m_useLCcorrection
private

Definition at line 137 of file EcalHitResponse.h.