CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
EEHitResponse Class Reference

#include <EEHitResponse.h>

Inheritance diagram for EEHitResponse:
EcalHitResponse

Public Types

typedef CaloTSamples< float, 10 > EESamples
 
- Public Types inherited from EcalHitResponse
enum  { BUNCHSPACE = 25 }
 
typedef std::unordered_map< uint32_t, double > CalibCache
 
typedef CaloTSamplesBase< float > EcalSamples
 
typedef std::vector< unsigned int > VecInd
 

Public Member Functions

 EEHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
 
virtual bool keepBlank () const
 
EcalSamplesoperator[] (unsigned int i) override
 
const EcalSamplesoperator[] (unsigned int i) const override
 
unsigned int samplesSize () const override
 
 ~EEHitResponse () override
 
- Public Member Functions inherited from EcalHitResponse
void add (const EcalSamples *pSam)
 
virtual void add (const PCaloHit &hit, CLHEP::HepRandomEngine *)
 
virtual void add (const CaloSamples &hit)
 
 EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
 
virtual void finalizeHits ()
 
const EcalSamplesfindDetId (const DetId &detId) const
 
virtual void initializeHits ()
 
virtual void run (MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *)
 
void setBunchRange (int minBunch, int maxBunch)
 
void setEventTime (const edm::TimeValue_t &iTime)
 
void setGeometry (const CaloSubdetectorGeometry *geometry)
 
void setHitCorrection (const CaloVHitCorrection *hitCorrection)
 
void setHitFilter (const CaloVHitFilter *filter)
 
void setLaserConstants (const EcalLaserDbService *laser, bool &useLCcorrection)
 
void setPECorrection (const CaloVPECorrection *peCorrection)
 
void setPhaseShift (double phaseShift)
 
bool withinBunchRange (int bunchCrossing) const
 
virtual ~EcalHitResponse ()
 

Protected Member Functions

unsigned int samplesSizeAll () const override
 
EcalSamplesvSam (unsigned int i) override
 
EcalSamplesvSamAll (unsigned int i) override
 
const EcalSamplesvSamAll (unsigned int i) const override
 
- Protected Member Functions inherited from EcalHitResponse
double analogSignalAmplitude (const DetId &id, double energy, CLHEP::HepRandomEngine *)
 
void blankOutUsedSamples ()
 
double findLaserConstant (const DetId &detId) const
 
EcalSamplesfindSignal (const DetId &detId)
 
const CaloSubdetectorGeometrygeometry () const
 
const CaloVHitFilterhitFilter () const
 
VecIndindex ()
 
const VecIndindex () const
 
int maxBunch () const
 
int minBunch () const
 
const CaloSimParametersparams (const DetId &detId) const
 
double phaseShift () const
 
virtual void putAnalogSignal (const PCaloHit &inputHit, CLHEP::HepRandomEngine *)
 
const CaloVShapeshape () const
 
double timeOfFlight (const DetId &detId) const
 

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 11 of file EEHitResponse.cc.

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

12  :
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 }
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
size
Write out results.
Main class for Parameters in different subdetectors.
EcalHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
EEHitResponse::~EEHitResponse ( )
override

Definition at line 33 of file EEHitResponse.cc.

34 {
35 }

Member Function Documentation

virtual bool EEHitResponse::keepBlank ( ) const
inlinevirtual

Definition at line 18 of file EEHitResponse.h.

References funct::false, mps_fire::i, operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().

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

Implements EcalHitResponse.

Definition at line 56 of file EEHitResponse.cc.

References mps_fire::i, and m_vSam.

Referenced by keepBlank().

57 {
58  return &m_vSam[ i ] ;
59 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
const EcalHitResponse::EcalSamples * EEHitResponse::operator[] ( unsigned int  i) const
overridevirtual

Implements EcalHitResponse.

Definition at line 50 of file EEHitResponse.cc.

References mps_fire::i, and m_vSam.

51 {
52  return &m_vSam[ i ] ;
53 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
unsigned int EEHitResponse::samplesSize ( ) const
overridevirtual

Implements EcalHitResponse.

Definition at line 38 of file EEHitResponse.cc.

References m_vSam.

Referenced by keepBlank().

39 {
40  return m_vSam.size() ;
41 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
unsigned int EEHitResponse::samplesSizeAll ( ) const
overrideprotectedvirtual

Implements EcalHitResponse.

Definition at line 44 of file EEHitResponse.cc.

References m_vSam.

Referenced by keepBlank().

45 {
46  return m_vSam.size() ;
47 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
EcalHitResponse::EcalSamples * EEHitResponse::vSam ( unsigned int  i)
overrideprotectedvirtual

Implements EcalHitResponse.

Definition at line 62 of file EEHitResponse.cc.

References mps_fire::i, and m_vSam.

Referenced by keepBlank().

63 {
64  return &m_vSam[ i ] ;
65 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i)
overrideprotectedvirtual

Implements EcalHitResponse.

Definition at line 68 of file EEHitResponse.cc.

References mps_fire::i, and m_vSam.

Referenced by keepBlank().

69 {
70  return &m_vSam[ i ] ;
71 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
const EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i) const
overrideprotectedvirtual

Implements EcalHitResponse.

Definition at line 74 of file EEHitResponse.cc.

References mps_fire::i, and m_vSam.

75 {
76  return &m_vSam[ i ] ;
77 }
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38

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().