CMS 3D CMS Logo

EEHitResponse.cc
Go to the documentation of this file.
9 
11  :
12 
13  EcalHitResponse(parameterMap, shape) {
14  const EEDetId detId(EEDetId::detIdFromDenseIndex(0));
15  const CaloSimParameters& parameters(parameterMap->simParameters(detId));
16 
17  const unsigned int rSize(parameters.readoutFrameSize());
18  const unsigned int nPre(parameters.binOfMaximum() - 1);
19 
20  const unsigned int size(EEDetId::kSizeForDenseIndexing);
21 
22  m_vSam.reserve(size);
23 
24  for (unsigned int i(0); i != size; ++i) {
25  m_vSam.emplace_back(CaloGenericDetId(detId.det(), detId.subdetId(), i), rSize, nPre);
26  }
27 }
28 
30 
31 unsigned int EEHitResponse::samplesSize() const { return m_vSam.size(); }
32 
33 unsigned int EEHitResponse::samplesSizeAll() const { return m_vSam.size(); }
34 
35 const EcalHitResponse::EcalSamples* EEHitResponse::operator[](unsigned int i) const { return &m_vSam[i]; }
36 
38 
40 
42 
43 const EcalHitResponse::EcalSamples* EEHitResponse::vSamAll(unsigned int i) const { return &m_vSam[i]; }
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
size
Write out results.
EcalSamples * operator[](unsigned int i) override
Electronic response of the preamp.
Definition: CaloVShape.h:11
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
Main class for Parameters in different subdetectors.
EcalSamples * vSam(unsigned int i) override
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:33
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
EEHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
~EEHitResponse() override
unsigned int samplesSizeAll() const override
unsigned int samplesSize() const override
EcalSamples * vSamAll(unsigned int i) override