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]; }
CaloGenericDetId.h
EEHitResponse::samplesSizeAll
unsigned int samplesSizeAll() const override
Definition: EEHitResponse.cc:33
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:29
mps_fire.i
i
Definition: mps_fire.py:428
CaloGenericDetId
Definition: CaloGenericDetId.h:12
CaloVSimParameterMap
Definition: CaloVSimParameterMap.h:7
EEHitResponse::vSamAll
EcalSamples * vSamAll(unsigned int i) override
Definition: EEHitResponse.cc:41
EEHitResponse::vSam
EcalSamples * vSam(unsigned int i) override
Definition: EEHitResponse.cc:39
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
EEDetId.h
CaloTSamplesBase
Definition: CaloTSamplesBase.h:9
CaloSimParameters.h
EEHitResponse.h
CaloVHitFilter.h
EEHitResponse::operator[]
EcalSamples * operator[](unsigned int i) override
Definition: EEHitResponse.cc:37
EEDetId::detIdFromDenseIndex
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
EEDetId::kSizeForDenseIndexing
Definition: EEDetId.h:329
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
CaloVSimParameterMap::simParameters
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
EEDetId
Definition: EEDetId.h:14
EEHitResponse::~EEHitResponse
~EEHitResponse() override
Definition: EEHitResponse.cc:29
CaloVSimParameterMap.h
EcalHitResponse
Definition: EcalHitResponse.h:29
CaloVShape
Electronic response of the preamp.
Definition: CaloVShape.h:11
APDSimParameters.h
CaloVShape.h
EEHitResponse::m_vSam
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:33
EEHitResponse::EEHitResponse
EEHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
Definition: EEHitResponse.cc:10
EEHitResponse::samplesSize
unsigned int samplesSize() const override
Definition: EEHitResponse.cc:31
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443