CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Private Attributes

EEHitResponse Class Reference

#include <EEHitResponse.h>

Inheritance diagram for EEHitResponse:
EcalHitResponse

List of all members.

Public Types

typedef CaloTSamples< float, 10 > EESamples

Public Member Functions

 EEHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
virtual bool keepBlank () const
virtual EcalSamplesoperator[] (unsigned int i)
virtual const EcalSamplesoperator[] (unsigned int i) const
virtual unsigned int samplesSize () const
virtual ~EEHitResponse ()

Protected Member Functions

virtual unsigned int samplesSizeAll () const
virtual EcalSamplesvSam (unsigned int i)
virtual const EcalSamplesvSamAll (unsigned int i) const
virtual EcalSamplesvSamAll (unsigned int i)

Private Attributes

std::vector< EESamplesm_vSam

Detailed Description

Definition at line 7 of file EEHitResponse.h.


Member Typedef Documentation

Definition at line 11 of file EEHitResponse.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file EEHitResponse.cc.

References DetId::det(), EEDetId::detIdFromDenseIndex(), i, EEDetId::kSizeForDenseIndexing, m_vSam, Parameters::parameters, CaloVSimParameterMap::simParameters(), findQualityFiles::size, and DetId::subdetId().

                                                                          :

   EcalHitResponse( parameterMap, shape )
{
   const EEDetId detId ( EEDetId::detIdFromDenseIndex( 0 ) ) ;
   const CaloSimParameters& parameters ( parameterMap->simParameters( detId ) ) ;

   const unsigned int rSize ( parameters.readoutFrameSize() ) ;
   const unsigned int nPre  ( parameters.binOfMaximum() - 1 ) ;

   const unsigned int size ( EEDetId::kSizeForDenseIndexing ) ;

   m_vSam.reserve( size ) ;

   for( unsigned int i ( 0 ) ; i != size ; ++i )
   {
      m_vSam.push_back(
         EESamples( CaloGenericDetId( detId.det(), detId.subdetId(), i ) ,
                    rSize, nPre ) ) ;
   }
}
EEHitResponse::~EEHitResponse ( ) [virtual]

Definition at line 36 of file EEHitResponse.cc.

{
}

Member Function Documentation

virtual bool EEHitResponse::keepBlank ( ) const [inline, virtual]

Definition at line 18 of file EEHitResponse.h.

References funct::false.

{ return false ; }
const EcalHitResponse::EcalSamples * EEHitResponse::operator[] ( unsigned int  i) const [virtual]

Implements EcalHitResponse.

Definition at line 53 of file EEHitResponse.cc.

References i, and m_vSam.

{
   return &m_vSam[ i ] ;
}
EcalHitResponse::EcalSamples * EEHitResponse::operator[] ( unsigned int  i) [virtual]

Implements EcalHitResponse.

Definition at line 59 of file EEHitResponse.cc.

References i, and m_vSam.

{
   return &m_vSam[ i ] ;
}
unsigned int EEHitResponse::samplesSize ( ) const [virtual]

Implements EcalHitResponse.

Definition at line 41 of file EEHitResponse.cc.

References m_vSam.

{
   return m_vSam.size() ;
}
unsigned int EEHitResponse::samplesSizeAll ( ) const [protected, virtual]

Implements EcalHitResponse.

Definition at line 47 of file EEHitResponse.cc.

References m_vSam.

{
   return m_vSam.size() ;
}
EcalHitResponse::EcalSamples * EEHitResponse::vSam ( unsigned int  i) [protected, virtual]

Implements EcalHitResponse.

Definition at line 65 of file EEHitResponse.cc.

References i, and m_vSam.

{
   return &m_vSam[ i ] ;
}
const EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i) const [protected, virtual]

Implements EcalHitResponse.

Definition at line 77 of file EEHitResponse.cc.

References i, and m_vSam.

{
   return &m_vSam[ i ] ;
}
EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i) [protected, virtual]

Implements EcalHitResponse.

Definition at line 71 of file EEHitResponse.cc.

References i, and m_vSam.

{
   return &m_vSam[ i ] ;
}

Member Data Documentation

std::vector<EESamples> EEHitResponse::m_vSam [private]

Definition at line 38 of file EEHitResponse.h.

Referenced by EEHitResponse(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().