#include <EEHitResponse.h>
Public Types | |
typedef CaloTSamples< float, 10 > | EESamples |
Public Member Functions | |
EEHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
virtual bool | keepBlank () const |
virtual EcalSamples * | operator[] (unsigned int i) |
virtual const EcalSamples * | operator[] (unsigned int i) const |
virtual unsigned int | samplesSize () const |
virtual | ~EEHitResponse () |
Protected Member Functions | |
virtual unsigned int | samplesSizeAll () const |
virtual EcalSamples * | vSam (unsigned int i) |
virtual const EcalSamples * | vSamAll (unsigned int i) const |
virtual EcalSamples * | vSamAll (unsigned int i) |
Private Attributes | |
std::vector< EESamples > | m_vSam |
Definition at line 7 of file EEHitResponse.h.
typedef CaloTSamples<float,10> EEHitResponse::EESamples |
Definition at line 11 of file EEHitResponse.h.
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.
{ }
virtual bool EEHitResponse::keepBlank | ( | ) | const [inline, virtual] |
const EcalHitResponse::EcalSamples * EEHitResponse::operator[] | ( | unsigned int | i | ) | const [virtual] |
Implements EcalHitResponse.
Definition at line 53 of file EEHitResponse.cc.
EcalHitResponse::EcalSamples * EEHitResponse::operator[] | ( | unsigned int | i | ) | [virtual] |
Implements EcalHitResponse.
Definition at line 59 of file EEHitResponse.cc.
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.
const EcalHitResponse::EcalSamples * EEHitResponse::vSamAll | ( | unsigned int | i | ) | const [protected, virtual] |
Implements EcalHitResponse.
Definition at line 77 of file EEHitResponse.cc.
EcalHitResponse::EcalSamples * EEHitResponse::vSamAll | ( | unsigned int | i | ) | [protected, virtual] |
Implements EcalHitResponse.
Definition at line 71 of file EEHitResponse.cc.
std::vector<EESamples> EEHitResponse::m_vSam [private] |
Definition at line 38 of file EEHitResponse.h.
Referenced by EEHitResponse(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().