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
ESHitResponse Class Reference

#include <ESHitResponse.h>

Inheritance diagram for ESHitResponse:
EcalHitResponse

Public Types

typedef CaloTSamples< float, 3 > ESSamples
 
- Public Types inherited from EcalHitResponse
enum  { BUNCHSPACE = 25 }
 
typedef CaloTSamplesBase< float > EcalSamples
 
typedef std::vector< unsigned int > VecInd
 

Public Member Functions

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

Detailed Description

Definition at line 7 of file ESHitResponse.h.

Member Typedef Documentation

Definition at line 11 of file ESHitResponse.h.

Constructor & Destructor Documentation

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

11  :
12  EcalHitResponse( parameterMap , shape )
13 {
14  assert( 0 != parameterMap ) ;
15  assert( 0 != shape ) ;
16  const ESDetId detId ( ESDetId::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 ( ESDetId::kSizeForDenseIndexing ) ;
23 
24  m_vSam.reserve( size ) ;
25 
26  for( unsigned int i ( 0 ) ; i != size ; ++i )
27  {
28  m_vSam.emplace_back(
29  CaloGenericDetId( detId.det(), detId.subdetId(), i ) ,
30  rSize, nPre ) ;
31  }
32 }
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)
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
std::vector< ESSamples > m_vSam
Definition: ESHitResponse.h:38
static ESDetId detIdFromDenseIndex(uint32_t din)
Definition: ESDetId.h:60
tuple size
Write out results.
ESHitResponse::~ESHitResponse ( )
virtual

Definition at line 34 of file ESHitResponse.cc.

35 {
36 }

Member Function Documentation

virtual bool ESHitResponse::keepBlank ( ) const
inlinevirtual

Definition at line 18 of file ESHitResponse.h.

References edm::false.

18 { return false ; }
volatile std::atomic< bool > shutdown_flag false
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.

58 {
59  return &m_vSam[ index()[ i ] ] ;
60 }
int i
Definition: DBlmapReader.cc:9
std::vector< ESSamples > m_vSam
Definition: ESHitResponse.h:38
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.

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

Implements EcalHitResponse.

Definition at line 39 of file ESHitResponse.cc.

References EcalHitResponse::index().

40 {
41  return index().size() ;
42 }
unsigned int ESHitResponse::samplesSizeAll ( ) const
protectedvirtual

Implements EcalHitResponse.

Definition at line 45 of file ESHitResponse.cc.

References ESDetId::kSizeForDenseIndexing.

EcalHitResponse::EcalSamples * ESHitResponse::vSam ( unsigned int  i)
protectedvirtual

Implements EcalHitResponse.

Definition at line 63 of file ESHitResponse.cc.

References i, EcalHitResponse::index(), and m_vSam.

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

Implements EcalHitResponse.

Definition at line 69 of file ESHitResponse.cc.

References i, and m_vSam.

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

Implements EcalHitResponse.

Definition at line 75 of file ESHitResponse.cc.

References i, and m_vSam.

76 {
77  return &m_vSam[ i ] ;
78 }
int i
Definition: DBlmapReader.cc:9
std::vector< ESSamples > m_vSam
Definition: ESHitResponse.h:38

Member Data Documentation

std::vector<ESSamples> ESHitResponse::m_vSam
private

Definition at line 38 of file ESHitResponse.h.

Referenced by ESHitResponse(), operator[](), vSam(), and vSamAll().