CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
int i
Definition: DBlmapReader.cc:9
virtual ~EEHitResponse()
virtual unsigned int samplesSize() const
Electronic response of the preamp.
Definition: CaloVShape.h:11
virtual unsigned int samplesSizeAll() const
Main class for Parameters in different subdetectors.
virtual EcalSamples * operator[](unsigned int i)
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
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
virtual EcalSamples * vSamAll(unsigned int i)
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
virtual EcalSamples * vSam(unsigned int i)
tuple size
Write out results.