CMS 3D CMS Logo

EEHitResponse.cc
Go to the documentation of this file.
9 
10 
12  const CaloVShape* shape ) :
13 
14  EcalHitResponse( parameterMap, shape )
15 {
16  const EEDetId detId ( EEDetId::detIdFromDenseIndex( 0 ) ) ;
17  const CaloSimParameters& parameters ( parameterMap->simParameters( detId ) ) ;
18 
19  const unsigned int rSize ( parameters.readoutFrameSize() ) ;
20  const unsigned int nPre ( parameters.binOfMaximum() - 1 ) ;
21 
22  const unsigned int size ( EEDetId::kSizeForDenseIndexing ) ;
23 
24  m_vSam.reserve( size ) ;
25 
26  for( unsigned int i ( 0 ) ; i != size ; ++i )
27  {
28  m_vSam.emplace_back(CaloGenericDetId( detId.det(), detId.subdetId(), i ) ,
29  rSize, nPre ) ;
30  }
31 }
32 
34 {
35 }
36 
37 unsigned int
39 {
40  return m_vSam.size() ;
41 }
42 
43 unsigned int
45 {
46  return m_vSam.size() ;
47 }
48 
50 EEHitResponse::operator[]( unsigned int i ) const
51 {
52  return &m_vSam[ i ] ;
53 }
54 
57 {
58  return &m_vSam[ i ] ;
59 }
60 
62 EEHitResponse::vSam( unsigned int i )
63 {
64  return &m_vSam[ i ] ;
65 }
66 
68 EEHitResponse::vSamAll( unsigned int i )
69 {
70  return &m_vSam[ i ] ;
71 }
72 
74 EEHitResponse::vSamAll( unsigned int i ) const
75 {
76  return &m_vSam[ i ] ;
77 }
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
Main class for Parameters in different subdetectors.
unsigned int samplesSize() const override
EcalSamples * vSam(unsigned int i) override
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
unsigned int samplesSizeAll() const override
EEHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
~EEHitResponse() override
EcalSamples * vSamAll(unsigned int i) override
Detector det() const
get the detector field from this detid
Definition: DetId.h:35