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)
 
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)
 
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) 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::RandGaussQ * ranGauss () const
 
CLHEP::RandPoissonQ * ranPois () const
 
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
 
CLHEP::RandGaussQ * m_RandGauss
 
CLHEP::RandPoissonQ * m_RandPoisson
 
const CaloVShapem_shape
 
bool m_useLCcorrection
 

Detailed Description

Definition at line 30 of file EcalHitResponse.h.

Member Typedef Documentation

Definition at line 34 of file EcalHitResponse.h.

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

Definition at line 36 of file EcalHitResponse.h.

Member Enumeration Documentation

anonymous enum
Enumerator
BUNCHSPACE 

Definition at line 38 of file EcalHitResponse.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file EcalHitResponse.cc.

References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), m_RandGauss, and m_RandPoisson.

27  :
28  m_parameterMap ( parameterMap ) ,
29  m_shape ( shape ) ,
30  m_hitCorrection ( 0 ) ,
31  m_PECorrection ( 0 ) ,
32  m_hitFilter ( 0 ) ,
33  m_geometry ( 0 ) ,
34  m_lasercals ( 0 ) ,
35  m_RandPoisson ( 0 ) ,
36  m_RandGauss ( 0 ) ,
37  m_minBunch ( -10 ) ,
38  m_maxBunch ( 10 ) ,
39  m_phaseShift ( 1 ) ,
40  m_iTime ( 0 ) ,
41  m_useLCcorrection ( 0 )
42 {
44  if ( !rng.isAvailable() )
45  {
46  throw cms::Exception("Configuration")
47  << "EcalHitResponse requires the RandomNumberGeneratorService\n"
48  "which is not present in the configuration file. You must add the service\n"
49  "in the configuration file or remove the modules that require it.";
50  }
51  m_RandPoisson = new CLHEP::RandPoissonQ( rng->getEngine() ) ;
52  m_RandGauss = new CLHEP::RandGaussQ( rng->getEngine() ) ;
53 }
const CaloVShape * m_shape
CLHEP::RandGaussQ * m_RandGauss
edm::TimeValue_t m_iTime
const CaloVHitCorrection * m_hitCorrection
bool isAvailable() const
Definition: Service.h:46
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
const EcalLaserDbService * m_lasercals
const CaloSubdetectorGeometry * m_geometry
const CaloVSimParameterMap * m_parameterMap
const CaloVPECorrection * m_PECorrection
CLHEP::RandPoissonQ * m_RandPoisson
const CaloVHitFilter * m_hitFilter
EcalHitResponse::~EcalHitResponse ( )
virtual

Definition at line 55 of file EcalHitResponse.cc.

References m_RandGauss, and m_RandPoisson.

56 {
57  delete m_RandPoisson ;
58  delete m_RandGauss ;
59 }
CLHEP::RandGaussQ * m_RandGauss
CLHEP::RandPoissonQ * m_RandPoisson

Member Function Documentation

void EcalHitResponse::add ( const EcalSamples pSam)

Definition at line 312 of file EcalHitResponse.cc.

References findSignal(), and CaloTSamplesBase< Ttype >::id().

313 {
314  EcalSamples& sam ( *findSignal( pSam->id() ) ) ;
315  sam += (*pSam) ;
316 }
CaloTSamplesBase< float > EcalSamples
EcalSamples * findSignal(const DetId &detId)
void EcalHitResponse::add ( const PCaloHit hit)
virtual

Reimplemented in EBHitResponse.

Definition at line 165 of file EcalHitResponse.cc.

References CaloVHitFilter::accepts(), edm::isNotFinite(), m_hitFilter, putAnalogSignal(), and PCaloHit::time().

166 {
167  if (!edm::isNotFinite( hit.time() ) && ( 0 == m_hitFilter || m_hitFilter->accepts( hit ) ) ) {
168  putAnalogSignal( hit ) ;
169 
170  }
171 }
double time() const
Definition: PCaloHit.h:36
bool isNotFinite(T x)
Definition: isFinite.h:10
virtual bool accepts(const PCaloHit &hit) const =0
virtual void putAnalogSignal(const PCaloHit &inputHit)
const CaloVHitFilter * m_hitFilter
void EcalHitResponse::add ( const CaloSamples hit)
virtual

Definition at line 174 of file EcalHitResponse.cc.

References newFWLiteAna::bin, edm::hlt::Exception, findSignal(), CaloSamples::id(), query::result, and CaloSamples::size().

175 {
176  const DetId detId ( hit.id() ) ;
177 
178  EcalSamples& result ( *findSignal( detId ) ) ;
179 
180  const int rsize ( result.size() ) ;
181 
182  if(rsize != hit.size()) {
183  throw cms::Exception("EcalDigitization")
184  << "CaloSamples and EcalSamples have different sizes. Type Mismatach";
185  }
186 
187  for( int bin ( 0 ) ; bin != rsize ; ++bin )
188  {
189  result[ bin ] += hit[ bin ] ;
190  }
191 
192 }
tuple result
Definition: query.py:137
CaloTSamplesBase< float > EcalSamples
Definition: DetId.h:18
int size() const
get the size
Definition: CaloSamples.h:24
EcalSamples * findSignal(const DetId &detId)
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21
double EcalHitResponse::analogSignalAmplitude ( const DetId id,
float  energy 
) const
protected

Definition at line 281 of file EcalHitResponse.cc.

References CaloVPECorrection::correctPE(), CaloSimParameters::doPhotostatistics(), findLaserConstant(), m_PECorrection, m_useLCcorrection, Parameters::parameters, params(), ranPois(), CaloSimParameters::simHitToPhotoelectrons(), and DetId::subdetId().

Referenced by putAnalogSignal().

282 {
283  const CaloSimParameters& parameters ( *params( detId ) ) ;
284 
285  // OK, the "energy" in the hit could be a real energy, deposited energy,
286  // or pe count. This factor converts to photoelectrons
287 
288  float lasercalib = 1.;
289  if(m_useLCcorrection == true && detId.subdetId() != 3) {
290  lasercalib = findLaserConstant(detId);
291  }
292 
293  double npe ( energy/lasercalib*parameters.simHitToPhotoelectrons( detId ) ) ;
294 
295  // do we need to doPoisson statistics for the photoelectrons?
296  if( parameters.doPhotostatistics() ) npe = ranPois()->fire( npe ) ;
297 
298  if( 0 != m_PECorrection ) npe = m_PECorrection->correctPE( detId, npe ) ;
299 
300  return npe ;
301 }
dictionary parameters
Definition: Parameters.py:2
double findLaserConstant(const DetId &detId) const
Main class for Parameters in different subdetectors.
const CaloSimParameters * params(const DetId &detId) const
const CaloVPECorrection * m_PECorrection
CLHEP::RandPoissonQ * ranPois() const
virtual double correctPE(const DetId &detId, double npe) const =0
void EcalHitResponse::blankOutUsedSamples ( )
protected

Definition at line 152 of file EcalHitResponse.cc.

References i, m_index, CaloTSamplesBase< Ttype >::setZero(), findQualityFiles::size, and vSamAll().

Referenced by EBHitResponse::initializeHits(), initializeHits(), EBHitResponse::run(), and run().

153 {
154  const unsigned int size ( m_index.size() ) ;
155 
156  for( unsigned int i ( 0 ) ; i != size ; ++i )
157  {
158  vSamAll( m_index[i] )->setZero() ;
159  }
160  m_index.erase( m_index.begin() , // done and make ready to start over
161  m_index.end() ) ;
162 }
int i
Definition: DBlmapReader.cc:9
virtual EcalSamples * vSamAll(unsigned int i)=0
tuple size
Write out results.
void EcalHitResponse::finalizeHits ( )
virtual

Reimplemented in EBHitResponse.

Definition at line 208 of file EcalHitResponse.cc.

209 {
210 }
const EcalHitResponse::EcalSamples * EcalHitResponse::findDetId ( const DetId detId) const

Definition at line 349 of file EcalHitResponse.cc.

References vSamAll().

Referenced by ESDigitizer::run().

350 {
351  const unsigned int di ( CaloGenericDetId( detId ).denseIndex() ) ;
352  return vSamAll( di ) ;
353 }
virtual EcalSamples * vSamAll(unsigned int i)=0
double EcalHitResponse::findLaserConstant ( const DetId detId) const
protected

Definition at line 265 of file EcalHitResponse.cc.

References EcalLaserDbService::getLaserCorrection(), m_iTime, and m_lasercals.

Referenced by analogSignalAmplitude().

266 {
267  const edm::Timestamp& evtTimeStamp = edm::Timestamp(m_iTime);
268  return (m_lasercals->getLaserCorrection(detId, evtTimeStamp));
269 }
edm::TimeValue_t m_iTime
float getLaserCorrection(DetId const &xid, edm::Timestamp const &iTime) const
const EcalLaserDbService * m_lasercals
EcalHitResponse::EcalSamples * EcalHitResponse::findSignal ( const DetId detId)
protected

Definition at line 272 of file EcalHitResponse.cc.

References m_index, query::result, vSamAll(), and CaloTSamplesBase< Ttype >::zero().

Referenced by add(), putAnalogSignal(), and EBHitResponse::putAPDSignal().

273 {
274  const unsigned int di ( CaloGenericDetId( detId ).denseIndex() ) ;
275  EcalSamples* result ( vSamAll( di ) ) ;
276  if( result->zero() ) m_index.push_back( di ) ;
277  return result ;
278 }
tuple result
Definition: query.py:137
CaloTSamplesBase< float > EcalSamples
virtual EcalSamples * vSamAll(unsigned int i)=0
const CaloSubdetectorGeometry * EcalHitResponse::geometry ( ) const
protected

Definition at line 88 of file EcalHitResponse.cc.

References m_geometry.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), setGeometry(), and timeOfFlight().

89 {
90  assert( 0 != m_geometry ) ;
91  return m_geometry ;
92 }
const CaloSubdetectorGeometry * m_geometry
const CaloVHitFilter * EcalHitResponse::hitFilter ( ) const
protected

Definition at line 343 of file EcalHitResponse.cc.

References m_hitFilter.

Referenced by EBHitResponse::add(), and EBHitResponse::run().

344 {
345  return m_hitFilter ;
346 }
const CaloVHitFilter * m_hitFilter
EcalHitResponse::VecInd & EcalHitResponse::index ( )
protected
const EcalHitResponse::VecInd & EcalHitResponse::index ( ) const
protected

Definition at line 337 of file EcalHitResponse.cc.

References m_index.

Referenced by BeautifulSoup.PageElement::_invert().

338 {
339  return m_index ;
340 }
void EcalHitResponse::initializeHits ( )
virtual

Reimplemented in EBHitResponse.

Definition at line 202 of file EcalHitResponse.cc.

References blankOutUsedSamples().

203 {
205 }
int EcalHitResponse::maxBunch ( ) const
protected

Definition at line 325 of file EcalHitResponse.cc.

References m_maxBunch.

Referenced by EBHitResponse::run(), and setBunchRange().

326 {
327  return m_maxBunch ;
328 }
int EcalHitResponse::minBunch ( ) const
protected

Definition at line 319 of file EcalHitResponse.cc.

References m_minBunch.

Referenced by EBHitResponse::run(), and setBunchRange().

320 {
321  return m_minBunch ;
322 }
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 74 of file EcalHitResponse.cc.

References m_parameterMap, and CaloVSimParameterMap::simParameters().

Referenced by analogSignalAmplitude(), putAnalogSignal(), and EBHitResponse::putAPDSignal().

75 {
76  assert( 0 != m_parameterMap ) ;
77  return &m_parameterMap->simParameters( detId ) ;
78 }
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
const CaloVSimParameterMap * m_parameterMap
double EcalHitResponse::phaseShift ( ) const
protected

Definition at line 115 of file EcalHitResponse.cc.

References m_phaseShift.

Referenced by EBHitResponse::putAPDSignal(), and setPhaseShift().

116 {
117  return m_phaseShift ;
118 }
void EcalHitResponse::putAnalogSignal ( const PCaloHit inputHit)
protectedvirtual

Definition at line 230 of file EcalHitResponse.cc.

References analogSignalAmplitude(), newFWLiteAna::bin, BUNCHSPACE, CaloVHitCorrection::delay(), PCaloHit::energy(), findSignal(), PCaloHit::id(), m_hitCorrection, m_phaseShift, Parameters::parameters, params(), query::result, shape(), CaloTSamplesBase< Ttype >::size(), PCaloHit::time(), cond::rpcobgas::time, timeOfFlight(), CaloVShape::timeToRise(), and tzero.

Referenced by EBHitResponse::add(), add(), EBHitResponse::run(), and run().

231 {
232  const DetId detId ( hit.id() ) ;
233 
234  const CaloSimParameters* parameters ( params( detId ) ) ;
235 
236  const double signal ( analogSignalAmplitude( detId, hit.energy() ) ) ;
237 
238  double time = hit.time();
239 
240  if(m_hitCorrection) {
241  time += m_hitCorrection->delay( hit ) ;
242  }
243 
244  const double jitter ( time - timeOfFlight( detId ) ) ;
245 
246  const double tzero = ( shape()->timeToRise()
247  + parameters->timePhase()
248  - jitter
249  - BUNCHSPACE*( parameters->binOfMaximum()
250  - m_phaseShift ) ) ;
251  double binTime ( tzero ) ;
252 
253  EcalSamples& result ( *findSignal( detId ) ) ;
254 
255  const unsigned int rsize ( result.size() ) ;
256 
257  for( unsigned int bin ( 0 ) ; bin != rsize ; ++bin )
258  {
259  result[ bin ] += (*shape())( binTime )*signal ;
260  binTime += BUNCHSPACE ;
261  }
262 }
dictionary parameters
Definition: Parameters.py:2
const CaloVShape * shape() const
double analogSignalAmplitude(const DetId &id, float energy) const
double timeOfFlight(const DetId &detId) const
Main class for Parameters in different subdetectors.
const CaloSimParameters * params(const DetId &detId) const
virtual double delay(const PCaloHit &hit) const =0
tuple result
Definition: query.py:137
const CaloVHitCorrection * m_hitCorrection
virtual double timeToRise() const =0
CaloTSamplesBase< float > EcalSamples
unsigned int id
Definition: DetId.h:18
static const double tzero[3]
EcalSamples * findSignal(const DetId &detId)
CLHEP::RandGaussQ * EcalHitResponse::ranGauss ( ) const
protected

Definition at line 68 of file EcalHitResponse.cc.

References m_RandGauss.

Referenced by EBHitResponse::EBHitResponse().

69 {
70  return m_RandGauss ;
71 }
CLHEP::RandGaussQ * m_RandGauss
CLHEP::RandPoissonQ * EcalHitResponse::ranPois ( ) const
protected

Definition at line 62 of file EcalHitResponse.cc.

References m_RandPoisson.

Referenced by analogSignalAmplitude(), and EBHitResponse::apdSignalAmplitude().

63 {
64  return m_RandPoisson ;
65 }
CLHEP::RandPoissonQ * m_RandPoisson
void EcalHitResponse::run ( MixCollection< PCaloHit > &  hits)
virtual

Reimplemented in EBHitResponse.

Definition at line 213 of file EcalHitResponse.cc.

References CaloVHitFilter::accepts(), MixCollection< T >::begin(), blankOutUsedSamples(), MixCollection< T >::end(), edm::isNotFinite(), m_hitFilter, putAnalogSignal(), PCaloHit::time(), and withinBunchRange().

214 {
216 
217  for( MixCollection<PCaloHit>::MixItr hitItr ( hits.begin() ) ;
218  hitItr != hits.end() ; ++hitItr )
219  {
220  const PCaloHit& hit ( *hitItr ) ;
221  const int bunch ( hitItr.bunch() ) ;
222  if( withinBunchRange(bunch) &&
223  !edm::isNotFinite( hit.time() ) &&
224  ( 0 == m_hitFilter ||
226  }
227 }
iterator end()
bool isNotFinite(T x)
Definition: isFinite.h:10
virtual bool accepts(const PCaloHit &hit) const =0
virtual void putAnalogSignal(const PCaloHit &inputHit)
iterator begin()
const CaloVHitFilter * m_hitFilter
bool withinBunchRange(int bunchCrossing) const
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 95 of file EcalHitResponse.cc.

References m_maxBunch, m_minBunch, maxBunch(), and minBunch().

97 {
100 }
int maxBunch() const
int minBunch() const
void EcalHitResponse::setEventTime ( const edm::TimeValue_t iTime)

Definition at line 139 of file EcalHitResponse.cc.

References m_iTime.

Referenced by EcalDigiProducer::checkCalibrations().

140 {
141  m_iTime = iTime;
142 }
edm::TimeValue_t m_iTime
void EcalHitResponse::setGeometry ( const CaloSubdetectorGeometry geometry)

Definition at line 103 of file EcalHitResponse.cc.

References geometry(), and m_geometry.

Referenced by EcalDigiProducer::updateGeometry().

104 {
105  m_geometry = geometry ;
106 }
const CaloSubdetectorGeometry * m_geometry
const CaloSubdetectorGeometry * geometry() const
void EcalHitResponse::setHitCorrection ( const CaloVHitCorrection hitCorrection)

Definition at line 127 of file EcalHitResponse.cc.

References m_hitCorrection.

128 {
129  m_hitCorrection = hitCorrection ;
130 }
const CaloVHitCorrection * m_hitCorrection
void EcalHitResponse::setHitFilter ( const CaloVHitFilter filter)

Definition at line 121 of file EcalHitResponse.cc.

References alcazmumu_cfi::filter, and m_hitFilter.

122 {
123  m_hitFilter = filter ;
124 }
const CaloVHitFilter * m_hitFilter
void EcalHitResponse::setLaserConstants ( const EcalLaserDbService laser,
bool &  useLCcorrection 
)

Definition at line 145 of file EcalHitResponse.cc.

References m_lasercals, and m_useLCcorrection.

Referenced by EcalDigiProducer::checkCalibrations().

146 {
147  m_lasercals = laser;
148  m_useLCcorrection = useLCcorrection;
149 }
const EcalLaserDbService * m_lasercals
void EcalHitResponse::setPECorrection ( const CaloVPECorrection peCorrection)

Definition at line 133 of file EcalHitResponse.cc.

References m_PECorrection.

134 {
135  m_PECorrection = peCorrection ;
136 }
const CaloVPECorrection * m_PECorrection
void EcalHitResponse::setPhaseShift ( double  phaseShift)

Definition at line 109 of file EcalHitResponse.cc.

References m_phaseShift, and phaseShift().

Referenced by EcalDigiProducer::EcalDigiProducer(), and EcalTBDigiProducer::setPhaseShift().

110 {
112 }
double phaseShift() const
const CaloVShape * EcalHitResponse::shape ( void  ) const
protected

Definition at line 81 of file EcalHitResponse.cc.

References m_shape.

Referenced by putAnalogSignal().

82 {
83  assert( 0 != m_shape ) ;
84  return m_shape ;
85 }
const CaloVShape * m_shape
double EcalHitResponse::timeOfFlight ( const DetId detId) const
protected

Definition at line 304 of file EcalHitResponse.cc.

References geometry(), CaloCellGeometry::getPosition(), and PV3DBase< T, PVType, FrameType >::mag().

Referenced by putAnalogSignal(), and EBHitResponse::putAPDSignal().

305 {
306  const CaloCellGeometry* cellGeometry ( geometry()->getGeometry( detId ) ) ;
307  assert( 0 != cellGeometry ) ;
308  return cellGeometry->getPosition().mag()*cm/c_light ; // Units of c_light: mm/ns
309 }
const CaloSubdetectorGeometry * geometry() const
virtual EcalSamples* EcalHitResponse::vSam ( unsigned int  i)
protectedpure virtual

Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.

virtual EcalSamples* EcalHitResponse::vSamAll ( unsigned int  i)
protectedpure virtual
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 196 of file EcalHitResponse.cc.

Referenced by run().

197 {
198  return(m_minBunch <= bunchCrossing && m_maxBunch >= bunchCrossing);
199 }

Member Data Documentation

const CaloSubdetectorGeometry* EcalHitResponse::m_geometry
private

Definition at line 135 of file EcalHitResponse.h.

Referenced by geometry(), and setGeometry().

const CaloVHitCorrection* EcalHitResponse::m_hitCorrection
private

Definition at line 132 of file EcalHitResponse.h.

Referenced by putAnalogSignal(), and setHitCorrection().

const CaloVHitFilter* EcalHitResponse::m_hitFilter
private

Definition at line 134 of file EcalHitResponse.h.

Referenced by add(), hitFilter(), run(), and setHitFilter().

VecInd EcalHitResponse::m_index
private

Definition at line 148 of file EcalHitResponse.h.

Referenced by blankOutUsedSamples(), findSignal(), and index().

edm::TimeValue_t EcalHitResponse::m_iTime
private

Definition at line 145 of file EcalHitResponse.h.

Referenced by findLaserConstant(), and setEventTime().

const EcalLaserDbService* EcalHitResponse::m_lasercals
private

Definition at line 136 of file EcalHitResponse.h.

Referenced by findLaserConstant(), and setLaserConstants().

int EcalHitResponse::m_maxBunch
private

Definition at line 142 of file EcalHitResponse.h.

Referenced by maxBunch(), and setBunchRange().

int EcalHitResponse::m_minBunch
private

Definition at line 141 of file EcalHitResponse.h.

Referenced by minBunch(), and setBunchRange().

const CaloVSimParameterMap* EcalHitResponse::m_parameterMap
private

Definition at line 130 of file EcalHitResponse.h.

Referenced by params().

const CaloVPECorrection* EcalHitResponse::m_PECorrection
private

Definition at line 133 of file EcalHitResponse.h.

Referenced by analogSignalAmplitude(), and setPECorrection().

double EcalHitResponse::m_phaseShift
private

Definition at line 143 of file EcalHitResponse.h.

Referenced by phaseShift(), putAnalogSignal(), and setPhaseShift().

CLHEP::RandGaussQ* EcalHitResponse::m_RandGauss
mutableprivate

Definition at line 139 of file EcalHitResponse.h.

Referenced by EcalHitResponse(), ranGauss(), and ~EcalHitResponse().

CLHEP::RandPoissonQ* EcalHitResponse::m_RandPoisson
mutableprivate

Definition at line 138 of file EcalHitResponse.h.

Referenced by EcalHitResponse(), ranPois(), and ~EcalHitResponse().

const CaloVShape* EcalHitResponse::m_shape
private

Definition at line 131 of file EcalHitResponse.h.

Referenced by shape().

bool EcalHitResponse::m_useLCcorrection
private

Definition at line 146 of file EcalHitResponse.h.

Referenced by analogSignalAmplitude(), and setLaserConstants().