CMS 3D CMS Logo

CaloSimParameters Class Reference

Main class for Parameters in different subdetectors. More...

#include <SimCalorimetry/CaloSimAlgos/interface/CaloSimParameters.h>

Inheritance diagram for CaloSimParameters:

CastorSimParameters HcalSimParameters HFSimParameters

List of all members.

Public Member Functions

int binOfMaximum () const
 CaloSimParameters (const edm::ParameterSet &p)
 CaloSimParameters (double simHitToPhotoelectrons, double photoelectronsToAnalog, double samplingFactor, double timePhase, int readoutFrameSize, int binOfMaximum, bool doPhotostatistics, bool syncPhase=true)
bool doPhotostatistics () const
 whether or not to apply Poisson statistics to photoelectrons
virtual double photoelectronsToAnalog (const DetId &detId) const
double photoelectronsToAnalog () const
 the factor which goes from photoelectrons to whatever gets read by ADCs
int readoutFrameSize () const
 for now, the LinearFrames and trhe digis will be one-to-one.
virtual double simHitToPhotoelectrons (const DetId &) const
double simHitToPhotoelectrons () const
 the factor which goes from whatever units the SimHit amplitudes are in (could be deposited GeV, real GeV, or photoelectrons) and converts to photoelectrons probably should make everything virtual, but this is enough for HCAL
bool syncPhase () const
 choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams)
double timePhase () const
 the adjustment you need to apply to get the signal where you want it
virtual ~CaloSimParameters ()

Private Attributes

int binOfMaximum_
bool doPhotostatistics_
double photoelectronsToAnalog_
int readoutFrameSize_
double simHitToPhotoelectrons_
bool syncPhase_
double timePhase_


Detailed Description

Main class for Parameters in different subdetectors.

Definition at line 14 of file CaloSimParameters.h.


Constructor & Destructor Documentation

CaloSimParameters::CaloSimParameters ( double  simHitToPhotoelectrons,
double  photoelectronsToAnalog,
double  samplingFactor,
double  timePhase,
int  readoutFrameSize,
int  binOfMaximum,
bool  doPhotostatistics,
bool  syncPhase = true 
)

Definition at line 4 of file CaloSimParameters.cc.

CaloSimParameters::CaloSimParameters ( const edm::ParameterSet p  ) 

Definition at line 20 of file CaloSimParameters.cc.

00021 : simHitToPhotoelectrons_( p.getParameter<double>("simHitToPhotoelectrons") ),
00022   photoelectronsToAnalog_( p.getParameter<double>("photoelectronsToAnalog") ),
00023   timePhase_( p.getParameter<double>("timePhase") ),
00024   readoutFrameSize_( p.getParameter<int>("readoutFrameSize") ),
00025   binOfMaximum_( p.getParameter<int>("binOfMaximum") ),
00026   doPhotostatistics_( p.getParameter<bool>("doPhotoStatistics") ),
00027   syncPhase_( p.getParameter<bool>("syncPhase") )
00028 {
00029 }

virtual CaloSimParameters::~CaloSimParameters (  )  [inline, virtual]

Definition at line 25 of file CaloSimParameters.h.

00025 {};


Member Function Documentation

int CaloSimParameters::binOfMaximum (  )  const [inline]

Definition at line 44 of file CaloSimParameters.h.

References binOfMaximum_.

Referenced by CaloHitResponse::makeBlankSignal(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().

00044 {return binOfMaximum_;}

bool CaloSimParameters::doPhotostatistics (  )  const [inline]

whether or not to apply Poisson statistics to photoelectrons

Definition at line 47 of file CaloSimParameters.h.

References doPhotostatistics_.

Referenced by CaloHitResponse::analogSignalAmplitude().

00047 {return doPhotostatistics_;}

virtual double CaloSimParameters::photoelectronsToAnalog ( const DetId detId  )  const [inline, virtual]

Reimplemented in CastorSimParameters, HcalSimParameters, and HFSimParameters.

Definition at line 36 of file CaloSimParameters.h.

References photoelectronsToAnalog_.

00036 {return photoelectronsToAnalog_;}

double CaloSimParameters::photoelectronsToAnalog (  )  const [inline]

the factor which goes from photoelectrons to whatever gets read by ADCs

Definition at line 35 of file CaloSimParameters.h.

References photoelectronsToAnalog_.

Referenced by HcalAmplifier::amplify(), CastorAmplifier::amplify(), operator<<(), HcalSimParameters::photoelectronsToAnalog(), and HcalSimParameters::simHitToPhotoelectrons().

00035 {return photoelectronsToAnalog_;}

int CaloSimParameters::readoutFrameSize (  )  const [inline]

for now, the LinearFrames and trhe digis will be one-to-one.

Definition at line 42 of file CaloSimParameters.h.

References readoutFrameSize_.

Referenced by CaloHitResponse::makeBlankSignal().

00042 {return readoutFrameSize_;}

virtual double CaloSimParameters::simHitToPhotoelectrons ( const DetId  )  const [inline, virtual]

Reimplemented in HcalSimParameters.

Definition at line 32 of file CaloSimParameters.h.

References simHitToPhotoelectrons_.

00032 { return simHitToPhotoelectrons_;}

double CaloSimParameters::simHitToPhotoelectrons (  )  const [inline]

the factor which goes from whatever units the SimHit amplitudes are in (could be deposited GeV, real GeV, or photoelectrons) and converts to photoelectrons probably should make everything virtual, but this is enough for HCAL

Definition at line 31 of file CaloSimParameters.h.

References simHitToPhotoelectrons_.

Referenced by CaloHitResponse::analogSignalAmplitude(), CastorHitCorrection::charge(), HcalHitCorrection::charge(), operator<<(), CastorSimParameters::photoelectronsToAnalog(), HFSimParameters::photoelectronsToAnalog(), and HcalSimParameters::simHitToPhotoelectrons().

00031 { return simHitToPhotoelectrons_;}

bool CaloSimParameters::syncPhase (  )  const [inline]

choice of the ADC time alignment (synchronous for LHC, asynchronous for test beams)

Definition at line 50 of file CaloSimParameters.h.

References syncPhase_.

Referenced by HcalTBDigiProducer::setPhaseShift(), and EcalTBDigiProducer::setPhaseShift().

00050 {return syncPhase_; }

double CaloSimParameters::timePhase (  )  const [inline]

the adjustment you need to apply to get the signal where you want it

Definition at line 39 of file CaloSimParameters.h.

References timePhase_.

Referenced by EcalTPGParamBuilder::analyze(), HcalHitCorrection::timeBin(), and CastorHitCorrection::timeBin().

00039 {return timePhase_;}


Member Data Documentation

int CaloSimParameters::binOfMaximum_ [private]

Definition at line 58 of file CaloSimParameters.h.

Referenced by binOfMaximum().

bool CaloSimParameters::doPhotostatistics_ [private]

Definition at line 59 of file CaloSimParameters.h.

Referenced by doPhotostatistics().

double CaloSimParameters::photoelectronsToAnalog_ [private]

Definition at line 55 of file CaloSimParameters.h.

Referenced by photoelectronsToAnalog().

int CaloSimParameters::readoutFrameSize_ [private]

Definition at line 57 of file CaloSimParameters.h.

Referenced by readoutFrameSize().

double CaloSimParameters::simHitToPhotoelectrons_ [private]

Definition at line 54 of file CaloSimParameters.h.

Referenced by simHitToPhotoelectrons().

bool CaloSimParameters::syncPhase_ [private]

Definition at line 60 of file CaloSimParameters.h.

Referenced by syncPhase().

double CaloSimParameters::timePhase_ [private]

Definition at line 56 of file CaloSimParameters.h.

Referenced by timePhase().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:15:54 2009 for CMSSW by  doxygen 1.5.4