#include <ESHitResponse.h>
Public Types | |
typedef CaloTSamples< float, 3 > | ESSamples |
Public Member Functions | |
ESHitResponse (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 | ~ESHitResponse () |
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< ESSamples > | m_vSam |
Definition at line 7 of file ESHitResponse.h.
typedef CaloTSamples<float,3> ESHitResponse::ESSamples |
Definition at line 11 of file ESHitResponse.h.
ESHitResponse::ESHitResponse | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloVShape * | shape | ||
) |
Definition at line 10 of file ESHitResponse.cc.
References DetId::det(), ESDetId::detIdFromDenseIndex(), i, ESDetId::kSizeForDenseIndexing, m_vSam, Parameters::parameters, CaloVSimParameterMap::simParameters(), findQualityFiles::size, and DetId::subdetId().
: EcalHitResponse( parameterMap , shape ) { assert( 0 != parameterMap ) ; assert( 0 != shape ) ; const ESDetId detId ( ESDetId::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 ( ESDetId::kSizeForDenseIndexing ) ; m_vSam.reserve( size ) ; for( unsigned int i ( 0 ) ; i != size ; ++i ) { m_vSam.emplace_back( CaloGenericDetId( detId.det(), detId.subdetId(), i ) , rSize, nPre ) ; } }
ESHitResponse::~ESHitResponse | ( | ) | [virtual] |
Definition at line 34 of file ESHitResponse.cc.
{ }
virtual bool ESHitResponse::keepBlank | ( | ) | const [inline, virtual] |
const EcalHitResponse::EcalSamples * ESHitResponse::operator[] | ( | unsigned int | i | ) | const [virtual] |
Implements EcalHitResponse.
Definition at line 51 of file ESHitResponse.cc.
References i, EcalHitResponse::index(), and m_vSam.
EcalHitResponse::EcalSamples * ESHitResponse::operator[] | ( | unsigned int | i | ) | [virtual] |
Implements EcalHitResponse.
Definition at line 57 of file ESHitResponse.cc.
References i, EcalHitResponse::index(), and m_vSam.
unsigned int ESHitResponse::samplesSize | ( | ) | const [virtual] |
Implements EcalHitResponse.
Definition at line 39 of file ESHitResponse.cc.
References EcalHitResponse::index().
{ return index().size() ; }
unsigned int ESHitResponse::samplesSizeAll | ( | ) | const [protected, virtual] |
Implements EcalHitResponse.
Definition at line 45 of file ESHitResponse.cc.
References ESDetId::kSizeForDenseIndexing.
{ return ESDetId::kSizeForDenseIndexing ; }
EcalHitResponse::EcalSamples * ESHitResponse::vSam | ( | unsigned int | i | ) | [protected, virtual] |
Implements EcalHitResponse.
Definition at line 63 of file ESHitResponse.cc.
References i, EcalHitResponse::index(), and m_vSam.
const EcalHitResponse::EcalSamples * ESHitResponse::vSamAll | ( | unsigned int | i | ) | const [protected, virtual] |
Implements EcalHitResponse.
Definition at line 75 of file ESHitResponse.cc.
EcalHitResponse::EcalSamples * ESHitResponse::vSamAll | ( | unsigned int | i | ) | [protected, virtual] |
Implements EcalHitResponse.
Definition at line 69 of file ESHitResponse.cc.
std::vector<ESSamples> ESHitResponse::m_vSam [private] |
Definition at line 38 of file ESHitResponse.h.
Referenced by ESHitResponse(), operator[](), vSam(), and vSamAll().