CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes
EcalHitResponse Class Referenceabstract

#include <EcalHitResponse.h>

Inheritance diagram for EcalHitResponse:
EBHitResponseImpl< constset > EEHitResponse ESHitResponse

Public Types

typedef std::unordered_map< uint32_t, double > CalibCache
 
typedef CaloTSamplesBase< float > EcalSamples
 
typedef std::vector< unsigned int > VecInd
 

Public Member Functions

virtual void add (const CaloSamples &hit)
 
void add (const EcalSamples *pSam)
 
virtual void add (const PCaloHit &hit, CLHEP::HepRandomEngine *)
 
 EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
 
virtual void finalizeHits ()
 
const EcalSamplesfindDetId (const DetId &detId) const
 
virtual void initializeHits ()
 
virtual const EcalSamplesoperator[] (unsigned int i) const =0
 
virtual EcalSamplesoperator[] (unsigned int i)=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 ()
 

Public Attributes

const float kSamplePeriod = ecalPh1::Samp_Period
 

Protected Member Functions

double analogSignalAmplitude (const DetId &id, double energy, CLHEP::HepRandomEngine *)
 
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 const EcalSamplesvSamAll (unsigned int i) const =0
 
virtual EcalSamplesvSamAll (unsigned int i)=0
 

Protected Attributes

const CaloSubdetectorGeometrym_geometry
 
const CaloVHitCorrectionm_hitCorrection
 
const CaloVHitFilterm_hitFilter
 
const EcalLaserDbServicem_lasercals
 
const CaloVSimParameterMapm_parameterMap
 
const CaloVPECorrectionm_PECorrection
 
const CaloVShapem_shape
 

Private Attributes

VecInd m_index
 
edm::TimeValue_t m_iTime
 
CalibCache m_laserCalibCache
 
int m_maxBunch
 
int m_minBunch
 
double m_phaseShift
 
bool m_useLCcorrection
 

Detailed Description

Definition at line 29 of file EcalHitResponse.h.

Member Typedef Documentation

◆ CalibCache

typedef std::unordered_map<uint32_t, double> EcalHitResponse::CalibCache

Definition at line 35 of file EcalHitResponse.h.

◆ EcalSamples

Definition at line 31 of file EcalHitResponse.h.

◆ VecInd

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

Definition at line 33 of file EcalHitResponse.h.

Constructor & Destructor Documentation

◆ EcalHitResponse()

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

Definition at line 20 of file EcalHitResponse.cc.

21  : m_parameterMap(parameterMap),
22  m_shape(shape),
23  m_hitCorrection(nullptr),
24  m_PECorrection(nullptr),
25  m_hitFilter(nullptr),
26  m_geometry(nullptr),
27  m_lasercals(nullptr),
28  m_minBunch(-32),
29  m_maxBunch(10),
30  m_phaseShift(1),
31  m_iTime(0),
32  m_useLCcorrection(false) {}

◆ ~EcalHitResponse()

EcalHitResponse::~EcalHitResponse ( )
virtual

Definition at line 34 of file EcalHitResponse.cc.

34 {}

Member Function Documentation

◆ add() [1/3]

void EcalHitResponse::add ( const CaloSamples hit)
virtual

Definition at line 96 of file EcalHitResponse.cc.

96  {
97  const DetId detId(hit.id());
98 
99  EcalSamples& result(*findSignal(detId));
100 
101  const int rsize(result.size());
102 
103  if (rsize != hit.size()) {
104  throw cms::Exception("EcalDigitization") << "CaloSamples and EcalSamples have different sizes. Type Mismatach";
105  }
106 
107  for (int bin(0); bin != rsize; ++bin) {
108  result[bin] += hit[bin];
109  }
110 }

References newFWLiteAna::bin, Exception, findSignal(), hit::id, and mps_fire::result.

Referenced by counter.Counter::register().

◆ add() [2/3]

void EcalHitResponse::add ( const EcalSamples pSam)

Definition at line 209 of file EcalHitResponse.cc.

209  {
210  EcalSamples& sam(*findSignal(pSam->id()));
211  sam += (*pSam);
212 }

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

Referenced by counter.Counter::register().

◆ add() [3/3]

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

Reimplemented in EBHitResponseImpl< constset >.

Definition at line 90 of file EcalHitResponse.cc.

90  {
91  if (!edm::isNotFinite(hit.time()) && (nullptr == m_hitFilter || m_hitFilter->accepts(hit))) {
92  putAnalogSignal(hit, engine);
93  }
94 }

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

Referenced by counter.Counter::register().

◆ analogSignalAmplitude()

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

Definition at line 174 of file EcalHitResponse.cc.

174  {
175  const CaloSimParameters& parameters(*params(detId));
176 
177  // OK, the "energy" in the hit could be a real energy, deposited energy,
178  // or pe count. This factor converts to photoelectrons
179 
180  double lasercalib = 1.;
181  if (m_useLCcorrection == true && detId.subdetId() != 3) {
182  auto cache = m_laserCalibCache.find(detId);
183  if (cache != m_laserCalibCache.end()) {
184  lasercalib = cache->second;
185  } else {
186  lasercalib = 1.0 / findLaserConstant(detId);
187  m_laserCalibCache.emplace(detId, lasercalib);
188  }
189  }
190 
191  double npe(energy * lasercalib * parameters.simHitToPhotoelectrons(detId));
192 
193  // do we need to doPoisson statistics for the photoelectrons?
194  if (parameters.doPhotostatistics()) {
195  npe = CLHEP::RandPoissonQ::shoot(engine, npe);
196  }
197  if (nullptr != m_PECorrection)
198  npe = m_PECorrection->correctPE(detId, npe, engine);
199 
200  return npe;
201 }

References utilities::cache(), CaloVPECorrection::correctPE(), HCALHighEnergyHPDFilter_cfi::energy, findLaserConstant(), m_laserCalibCache, m_PECorrection, m_useLCcorrection, params(), and DetId::subdetId().

Referenced by putAnalogSignal().

◆ blankOutUsedSamples()

void EcalHitResponse::blankOutUsedSamples ( )
protected

Definition at line 79 of file EcalHitResponse.cc.

80 {
81  const unsigned int size(m_index.size());
82 
83  for (unsigned int i(0); i != size; ++i) {
84  vSamAll(m_index[i])->setZero();
85  }
86  m_index.erase(m_index.begin(), // done and make ready to start over
87  m_index.end());
88 }

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

Referenced by initializeHits(), and run().

◆ finalizeHits()

void EcalHitResponse::finalizeHits ( )
virtual

Reimplemented in EBHitResponseImpl< constset >.

Definition at line 118 of file EcalHitResponse.cc.

118 {}

◆ findDetId()

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

Definition at line 224 of file EcalHitResponse.cc.

224  {
225  const unsigned int di(CaloGenericDetId(detId).denseIndex());
226  return vSamAll(di);
227 }

References vSamAll().

Referenced by ESDigitizer::run().

◆ findLaserConstant()

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

Definition at line 161 of file EcalHitResponse.cc.

161  {
162  const edm::Timestamp& evtTimeStamp = edm::Timestamp(m_iTime);
163  return (m_lasercals->getLaserCorrection(detId, evtTimeStamp));
164 }

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

Referenced by analogSignalAmplitude().

◆ findSignal()

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

Definition at line 166 of file EcalHitResponse.cc.

166  {
167  const unsigned int di(CaloGenericDetId(detId).denseIndex());
168  EcalSamples* result(vSamAll(di));
169  if (result->zero())
170  m_index.push_back(di);
171  return result;
172 }

References m_index, mps_fire::result, and vSamAll().

Referenced by add(), and putAnalogSignal().

◆ geometry()

const CaloSubdetectorGeometry * EcalHitResponse::geometry ( ) const
protected

Definition at line 46 of file EcalHitResponse.cc.

46  {
47  assert(nullptr != m_geometry);
48  return m_geometry;
49 }

References cms::cuda::assert(), and m_geometry.

Referenced by setGeometry(), and timeOfFlight().

◆ hitFilter()

const CaloVHitFilter * EcalHitResponse::hitFilter ( ) const
protected

Definition at line 222 of file EcalHitResponse.cc.

222 { return m_hitFilter; }

References m_hitFilter.

◆ index() [1/2]

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

◆ index() [2/2]

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

Definition at line 220 of file EcalHitResponse.cc.

220 { return m_index; }

References m_index.

Referenced by BeautifulSoup.PageElement::insert().

◆ initializeHits()

void EcalHitResponse::initializeHits ( )
virtual

Reimplemented in EBHitResponseImpl< constset >.

Definition at line 116 of file EcalHitResponse.cc.

116 { blankOutUsedSamples(); }

References blankOutUsedSamples().

◆ maxBunch()

int EcalHitResponse::maxBunch ( ) const
protected

Definition at line 216 of file EcalHitResponse.cc.

216 { return m_maxBunch; }

References m_maxBunch.

Referenced by setBunchRange().

◆ minBunch()

int EcalHitResponse::minBunch ( ) const
protected

Definition at line 214 of file EcalHitResponse.cc.

214 { return m_minBunch; }

References m_minBunch.

Referenced by setBunchRange().

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ params()

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

Definition at line 36 of file EcalHitResponse.cc.

36  {
37  assert(nullptr != m_parameterMap);
38  return &m_parameterMap->simParameters(detId);
39 }

References cms::cuda::assert(), m_parameterMap, and CaloVSimParameterMap::simParameters().

Referenced by analogSignalAmplitude(), and putAnalogSignal().

◆ phaseShift()

double EcalHitResponse::phaseShift ( ) const
protected

Definition at line 60 of file EcalHitResponse.cc.

60 { return m_phaseShift; }

References m_phaseShift.

Referenced by setPhaseShift().

◆ putAnalogSignal()

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

Reimplemented in EBHitResponseImpl< constset >.

Definition at line 132 of file EcalHitResponse.cc.

132  {
133  const DetId detId(hit.id());
134 
135  const CaloSimParameters* parameters(params(detId));
136 
137  const double signal(analogSignalAmplitude(detId, hit.energy(), engine));
138 
139  double time = hit.time();
140 
141  if (m_hitCorrection) {
142  time += m_hitCorrection->delay(hit, engine);
143  }
144 
145  const double jitter(time - timeOfFlight(detId));
146 
147  const double tzero = (shape()->timeToRise() + parameters->timePhase() - jitter -
148  kSamplePeriod * (parameters->binOfMaximum() - m_phaseShift));
149  double binTime(tzero);
150 
151  EcalSamples& result(*findSignal(detId));
152 
153  const unsigned int rsize(result.size());
154 
155  for (unsigned int bin(0); bin != rsize; ++bin) {
156  result[bin] += (*shape())(binTime)*signal;
157  binTime += kSamplePeriod;
158  }
159 }

References analogSignalAmplitude(), newFWLiteAna::bin, CaloVHitCorrection::delay(), findSignal(), hit::id, kSamplePeriod, m_hitCorrection, m_phaseShift, params(), mps_fire::result, shape(), protons_cff::time, timeOfFlight(), CaloVShape::timeToRise(), and tzero.

Referenced by add(), and run().

◆ run()

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

Reimplemented in EBHitResponseImpl< constset >.

Definition at line 120 of file EcalHitResponse.cc.

120  {
122 
123  for (MixCollection<PCaloHit>::MixItr hitItr(hits.begin()); hitItr != hits.end(); ++hitItr) {
124  const PCaloHit& hit(*hitItr);
125  const int bunch(hitItr.bunch());
126  if (withinBunchRange(bunch) && !edm::isNotFinite(hit.time()) &&
127  (nullptr == m_hitFilter || m_hitFilter->accepts(hit)))
128  putAnalogSignal(hit, engine);
129  }
130 }

References CaloVHitFilter::accepts(), blankOutUsedSamples(), hfClusterShapes_cfi::hits, edm::isNotFinite(), m_hitFilter, putAnalogSignal(), and withinBunchRange().

◆ samplesSize()

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

◆ samplesSizeAll()

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

◆ setBunchRange()

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

Definition at line 51 of file EcalHitResponse.cc.

51  {
54 }

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

◆ setEventTime()

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

Definition at line 68 of file EcalHitResponse.cc.

68  {
69  m_iTime = iTime;
70  //clear the laser cache for each event time
72 }

References m_iTime, and m_laserCalibCache.

◆ setGeometry()

void EcalHitResponse::setGeometry ( const CaloSubdetectorGeometry geometry)

Definition at line 56 of file EcalHitResponse.cc.

56 { m_geometry = geometry; }

References geometry(), and m_geometry.

◆ setHitCorrection()

void EcalHitResponse::setHitCorrection ( const CaloVHitCorrection hitCorrection)

Definition at line 64 of file EcalHitResponse.cc.

64 { m_hitCorrection = hitCorrection; }

References m_hitCorrection.

◆ setHitFilter()

void EcalHitResponse::setHitFilter ( const CaloVHitFilter filter)

Definition at line 62 of file EcalHitResponse.cc.

62 { m_hitFilter = filter; }

References ALCARECOTkAlBeamHalo_cff::filter, and m_hitFilter.

◆ setLaserConstants()

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

Definition at line 74 of file EcalHitResponse.cc.

74  {
76  m_useLCcorrection = useLCcorrection;
77 }

References EcalCondDBWriter_cfi::laser, m_lasercals, and m_useLCcorrection.

◆ setPECorrection()

void EcalHitResponse::setPECorrection ( const CaloVPECorrection peCorrection)

Definition at line 66 of file EcalHitResponse.cc.

66 { m_PECorrection = peCorrection; }

References m_PECorrection.

◆ setPhaseShift()

void EcalHitResponse::setPhaseShift ( double  phaseShift)

Definition at line 58 of file EcalHitResponse.cc.

References m_phaseShift, and phaseShift().

◆ shape()

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

Definition at line 41 of file EcalHitResponse.cc.

41  {
42  assert(nullptr != m_shape);
43  return m_shape;
44 }

References cms::cuda::assert(), and m_shape.

Referenced by ESHitResponse::ESHitResponse(), and putAnalogSignal().

◆ timeOfFlight()

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

Definition at line 203 of file EcalHitResponse.cc.

203  {
204  auto cellGeometry(geometry()->getGeometry(detId));
205  assert(nullptr != cellGeometry);
206  return cellGeometry->getPosition().mag() * cm / c_light; // Units of c_light: mm/ns
207 }

References cms::cuda::assert(), and geometry().

Referenced by putAnalogSignal().

◆ vSam()

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

◆ vSamAll() [1/2]

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

◆ vSamAll() [2/2]

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

◆ withinBunchRange()

bool EcalHitResponse::withinBunchRange ( int  bunchCrossing) const

Definition at line 112 of file EcalHitResponse.cc.

112  {
113  return (m_minBunch <= bunchCrossing && m_maxBunch >= bunchCrossing);
114 }

Referenced by run().

Member Data Documentation

◆ kSamplePeriod

const float EcalHitResponse::kSamplePeriod = ecalPh1::Samp_Period

Definition at line 41 of file EcalHitResponse.h.

Referenced by putAnalogSignal().

◆ m_geometry

const CaloSubdetectorGeometry* EcalHitResponse::m_geometry
protected

Definition at line 125 of file EcalHitResponse.h.

Referenced by geometry(), and setGeometry().

◆ m_hitCorrection

const CaloVHitCorrection* EcalHitResponse::m_hitCorrection
protected

Definition at line 122 of file EcalHitResponse.h.

Referenced by putAnalogSignal(), and setHitCorrection().

◆ m_hitFilter

const CaloVHitFilter* EcalHitResponse::m_hitFilter
protected

Definition at line 124 of file EcalHitResponse.h.

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

◆ m_index

VecInd EcalHitResponse::m_index
private

Definition at line 137 of file EcalHitResponse.h.

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

◆ m_iTime

edm::TimeValue_t EcalHitResponse::m_iTime
private

Definition at line 133 of file EcalHitResponse.h.

Referenced by findLaserConstant(), and setEventTime().

◆ m_laserCalibCache

CalibCache EcalHitResponse::m_laserCalibCache
private

Definition at line 135 of file EcalHitResponse.h.

Referenced by analogSignalAmplitude(), and setEventTime().

◆ m_lasercals

const EcalLaserDbService* EcalHitResponse::m_lasercals
protected

Definition at line 126 of file EcalHitResponse.h.

Referenced by findLaserConstant(), and setLaserConstants().

◆ m_maxBunch

int EcalHitResponse::m_maxBunch
private

Definition at line 130 of file EcalHitResponse.h.

Referenced by maxBunch(), and setBunchRange().

◆ m_minBunch

int EcalHitResponse::m_minBunch
private

Definition at line 129 of file EcalHitResponse.h.

Referenced by minBunch(), and setBunchRange().

◆ m_parameterMap

const CaloVSimParameterMap* EcalHitResponse::m_parameterMap
protected

Definition at line 120 of file EcalHitResponse.h.

Referenced by params().

◆ m_PECorrection

const CaloVPECorrection* EcalHitResponse::m_PECorrection
protected

Definition at line 123 of file EcalHitResponse.h.

Referenced by analogSignalAmplitude(), and setPECorrection().

◆ m_phaseShift

double EcalHitResponse::m_phaseShift
private

Definition at line 131 of file EcalHitResponse.h.

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

◆ m_shape

const CaloVShape* EcalHitResponse::m_shape
protected

Definition at line 121 of file EcalHitResponse.h.

Referenced by shape().

◆ m_useLCcorrection

bool EcalHitResponse::m_useLCcorrection
private

Definition at line 134 of file EcalHitResponse.h.

Referenced by analogSignalAmplitude(), and setLaserConstants().

BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
EcalHitResponse::m_phaseShift
double m_phaseShift
Definition: EcalHitResponse.h:131
mps_fire.i
i
Definition: mps_fire.py:428
EcalHitResponse::withinBunchRange
bool withinBunchRange(int bunchCrossing) const
Definition: EcalHitResponse.cc:112
hit::id
unsigned int id
Definition: SiStripHitEffFromCalibTree.cc:92
EcalHitResponse::minBunch
int minBunch() const
Definition: EcalHitResponse.cc:214
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
CaloGenericDetId
Definition: CaloGenericDetId.h:12
EcalHitResponse::CalibCache
std::unordered_map< uint32_t, double > CalibCache
Definition: EcalHitResponse.h:35
EcalHitResponse::blankOutUsedSamples
void blankOutUsedSamples()
Definition: EcalHitResponse.cc:79
edm::isNotFinite
constexpr bool isNotFinite(T x)
Definition: isFinite.h:9
EcalHitResponse::m_hitFilter
const CaloVHitFilter * m_hitFilter
Definition: EcalHitResponse.h:124
EcalHitResponse::timeOfFlight
double timeOfFlight(const DetId &detId) const
Definition: EcalHitResponse.cc:203
CaloVPECorrection::correctPE
virtual double correctPE(const DetId &detId, double npe, CLHEP::HepRandomEngine *) const =0
EcalHitResponse::putAnalogSignal
virtual void putAnalogSignal(const PCaloHit &inputHit, CLHEP::HepRandomEngine *)
Definition: EcalHitResponse.cc:132
EcalHitResponse::EcalSamples
CaloTSamplesBase< float > EcalSamples
Definition: EcalHitResponse.h:31
cms::cuda::assert
assert(be >=bs)
protons_cff.time
time
Definition: protons_cff.py:35
EcalHitResponse::phaseShift
double phaseShift() const
Definition: EcalHitResponse.cc:60
EcalHitResponse::m_minBunch
int m_minBunch
Definition: EcalHitResponse.h:129
CaloVShape::timeToRise
virtual double timeToRise() const =0
EcalHitResponse::m_shape
const CaloVShape * m_shape
Definition: EcalHitResponse.h:121
MixCollection::MixItr
Definition: MixCollection.h:61
CaloVHitCorrection::delay
virtual double delay(const PCaloHit &hit, CLHEP::HepRandomEngine *) const =0
DetId
Definition: DetId.h:17
EcalHitResponse::m_lasercals
const EcalLaserDbService * m_lasercals
Definition: EcalHitResponse.h:126
EcalHitResponse::m_iTime
edm::TimeValue_t m_iTime
Definition: EcalHitResponse.h:133
CaloVHitFilter::accepts
virtual bool accepts(const PCaloHit &hit) const =0
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
CaloVSimParameterMap::simParameters
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
tzero
static const double tzero[3]
Definition: CastorTimeSlew.cc:5
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition: ALCARECOTkAlBeamHalo_cff.py:27
EcalHitResponse::findLaserConstant
double findLaserConstant(const DetId &detId) const
Definition: EcalHitResponse.cc:161
utilities.cache
def cache(function)
Definition: utilities.py:3
EcalHitResponse::params
const CaloSimParameters * params(const DetId &detId) const
Definition: EcalHitResponse.cc:36
EcalHitResponse::vSamAll
virtual EcalSamples * vSamAll(unsigned int i)=0
EcalHitResponse::m_maxBunch
int m_maxBunch
Definition: EcalHitResponse.h:130
EcalHitResponse::m_index
VecInd m_index
Definition: EcalHitResponse.h:137
CaloTSamplesBase::setZero
void setZero()
EcalHitResponse::m_parameterMap
const CaloVSimParameterMap * m_parameterMap
Definition: EcalHitResponse.h:120
EcalHitResponse::m_hitCorrection
const CaloVHitCorrection * m_hitCorrection
Definition: EcalHitResponse.h:122
PCaloHit
Definition: PCaloHit.h:8
EcalHitResponse::geometry
const CaloSubdetectorGeometry * geometry() const
Definition: EcalHitResponse.cc:46
EcalHitResponse::findSignal
EcalSamples * findSignal(const DetId &detId)
Definition: EcalHitResponse.cc:166
EcalHitResponse::maxBunch
int maxBunch() const
Definition: EcalHitResponse.cc:216
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
EcalLaserDbService::getLaserCorrection
float getLaserCorrection(DetId const &xid, edm::Timestamp const &iTime) const
Definition: EcalLaserDbService.cc:30
EcalHitResponse::m_PECorrection
const CaloVPECorrection * m_PECorrection
Definition: EcalHitResponse.h:123
EcalHitResponse::m_useLCcorrection
bool m_useLCcorrection
Definition: EcalHitResponse.h:134
EcalHitResponse::shape
const CaloVShape * shape() const
Definition: EcalHitResponse.cc:41
Exception
Definition: hltDiff.cc:245
EcalHitResponse::m_geometry
const CaloSubdetectorGeometry * m_geometry
Definition: EcalHitResponse.h:125
mps_fire.result
result
Definition: mps_fire.py:311
EcalHitResponse::kSamplePeriod
const float kSamplePeriod
Definition: EcalHitResponse.h:41
EcalHitResponse::m_laserCalibCache
CalibCache m_laserCalibCache
Definition: EcalHitResponse.h:135
EcalHitResponse::analogSignalAmplitude
double analogSignalAmplitude(const DetId &id, double energy, CLHEP::HepRandomEngine *)
Definition: EcalHitResponse.cc:174
EcalCondDBWriter_cfi.laser
laser
Definition: EcalCondDBWriter_cfi.py:46
hit
Definition: SiStripHitEffFromCalibTree.cc:88
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
edm::Timestamp
Definition: Timestamp.h:30