CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 CaloTSamplesBase< float > EcalSamples
 
typedef std::vector< unsigned int > VecInd
 

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 ()
 
- Public Member Functions inherited from EcalHitResponse
void add (const EcalSamples *pSam)
 
virtual void add (const PCaloHit &hit)
 
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)
 
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

virtual unsigned int samplesSizeAll () const
 
virtual EcalSamplesvSam (unsigned int i)
 
virtual EcalSamplesvSamAll (unsigned int i)
 
virtual const EcalSamplesvSamAll (unsigned int i) const
 
- Protected Member Functions inherited from EcalHitResponse
double analogSignalAmplitude (const DetId &id, float energy) const
 
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::RandGaussQ * ranGauss () const
 
CLHEP::RandPoissonQ * ranPois () const
 
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 13 of file EEHitResponse.cc.

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

14  :
15 
16  EcalHitResponse( parameterMap, shape )
17 {
18  const EEDetId detId ( EEDetId::detIdFromDenseIndex( 0 ) ) ;
19  const CaloSimParameters& parameters ( parameterMap->simParameters( detId ) ) ;
20 
21  const unsigned int rSize ( parameters.readoutFrameSize() ) ;
22  const unsigned int nPre ( parameters.binOfMaximum() - 1 ) ;
23 
24  const unsigned int size ( EEDetId::kSizeForDenseIndexing ) ;
25 
26  m_vSam.reserve( size ) ;
27 
28  for( unsigned int i ( 0 ) ; i != size ; ++i )
29  {
30  m_vSam.emplace_back(CaloGenericDetId( detId.det(), detId.subdetId(), i ) ,
31  rSize, nPre ) ;
32  }
33 }
static EEDetId detIdFromDenseIndex(uint32_t din)
Definition: EEDetId.h:220
int i
Definition: DBlmapReader.cc:9
dictionary parameters
Definition: Parameters.py:2
Main class for Parameters in different subdetectors.
EcalHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
tuple size
Write out results.
EEHitResponse::~EEHitResponse ( )
virtual

Definition at line 35 of file EEHitResponse.cc.

36 {
37 }

Member Function Documentation

virtual bool EEHitResponse::keepBlank ( ) const
inlinevirtual

Definition at line 18 of file EEHitResponse.h.

References edm::false.

18 { return false ; }
volatile std::atomic< bool > shutdown_flag false
EcalHitResponse::EcalSamples * EEHitResponse::operator[] ( unsigned int  i)
virtual

Implements EcalHitResponse.

Definition at line 58 of file EEHitResponse.cc.

References i, and m_vSam.

59 {
60  return &m_vSam[ i ] ;
61 }
int i
Definition: DBlmapReader.cc:9
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
const EcalHitResponse::EcalSamples * EEHitResponse::operator[] ( unsigned int  i) const
virtual

Implements EcalHitResponse.

Definition at line 52 of file EEHitResponse.cc.

References i, and m_vSam.

53 {
54  return &m_vSam[ i ] ;
55 }
int i
Definition: DBlmapReader.cc:9
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
unsigned int EEHitResponse::samplesSize ( ) const
virtual

Implements EcalHitResponse.

Definition at line 40 of file EEHitResponse.cc.

References m_vSam.

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

Implements EcalHitResponse.

Definition at line 46 of file EEHitResponse.cc.

References m_vSam.

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

Implements EcalHitResponse.

Definition at line 64 of file EEHitResponse.cc.

References i, and m_vSam.

65 {
66  return &m_vSam[ i ] ;
67 }
int i
Definition: DBlmapReader.cc:9
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i)
protectedvirtual

Implements EcalHitResponse.

Definition at line 70 of file EEHitResponse.cc.

References i, and m_vSam.

71 {
72  return &m_vSam[ i ] ;
73 }
int i
Definition: DBlmapReader.cc:9
std::vector< EESamples > m_vSam
Definition: EEHitResponse.h:38
const EcalHitResponse::EcalSamples * EEHitResponse::vSamAll ( unsigned int  i) const
protectedvirtual

Implements EcalHitResponse.

Definition at line 76 of file EEHitResponse.cc.

References i, and m_vSam.

77 {
78  return &m_vSam[ i ] ;
79 }
int i
Definition: DBlmapReader.cc:9
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().