CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HcalAmplifier Class Reference

#include <HcalAmplifier.h>

Public Member Functions

virtual void amplify (CaloSamples &linearFrame, CLHEP::HepRandomEngine *) const
 
 HcalAmplifier (const CaloVSimParameterMap *parameters, bool addNoise, bool PreMix1, bool PreMix2)
 
void setADCPeds (const HcalPedestals *ADCPeds)
 
void setCholesky (const HcalCholeskyMatrices *Cholesky)
 
void setDbService (const HcalDbService *service)
 the Producer will probably update this every event More...
 
void setHBtuningParameter (double tp)
 
void setHEtuningParameter (double tp)
 
void setHFtuningParameter (double tp)
 
void setHOtuningParameter (double tp)
 
void setIonFeedbackSim (HPDIonFeedbackSim *feedbackSim)
 
void setNoiseSignalGenerator (const CaloVNoiseSignalGenerator *noiseSignalGenerator)
 
void setStartingCapId (int capId)
 
void setTimeSlewSim (HcalTimeSlewSim *timeSlewSim)
 
void setUseOldHB (bool useOld)
 
void setUseOldHE (bool useOld)
 
void setUseOldHF (bool useOld)
 
void setUseOldHO (bool useOld)
 
virtual ~HcalAmplifier ()
 

Private Member Functions

void addPedestals (CaloSamples &frame, CLHEP::HepRandomEngine *) const
 
void makeNoise (const HcalCholeskyMatrix &thisChanCholesky, int fFrames, double *fGauss, double *fNoise, int m) const
 
void makeNoiseOld (HcalGenericDetId::HcalGenericSubdetector hcalSubDet, const HcalCalibrationWidths &width, int fFrames, double *fGauss, double *fNoise) const
 
void pe2fC (CaloSamples &frame) const
 

Private Attributes

bool addNoise_
 
double HB_ff
 
double HE_ff
 
double HF_ff
 
double HO_ff
 
const HcalPedestalsmyADCPeds
 
const HcalCholeskyMatricesmyCholeskys
 
bool preMixAdd_
 
bool preMixDigi_
 
const HcalDbServicetheDbService
 
HPDIonFeedbackSimtheIonFeedbackSim
 
const CaloVNoiseSignalGeneratortheNoiseSignalGenerator
 
const CaloVSimParameterMaptheParameterMap
 
unsigned theStartingCapId
 
HcalTimeSlewSimtheTimeSlewSim
 
bool useOldHB
 
bool useOldHE
 
bool useOldHF
 
bool useOldHO
 

Detailed Description

Definition at line 23 of file HcalAmplifier.h.

Constructor & Destructor Documentation

HcalAmplifier::HcalAmplifier ( const CaloVSimParameterMap parameters,
bool  addNoise,
bool  PreMix1,
bool  PreMix2 
)

Definition at line 24 of file HcalAmplifier.cc.

virtual HcalAmplifier::~HcalAmplifier ( )
inlinevirtual

Definition at line 27 of file HcalAmplifier.h.

27 {}

Member Function Documentation

void HcalAmplifier::addPedestals ( CaloSamples frame,
CLHEP::HepRandomEngine *  engine 
) const
private

Definition at line 85 of file HcalAmplifier.cc.

void HcalAmplifier::amplify ( CaloSamples linearFrame,
CLHEP::HepRandomEngine *  engine 
) const
virtual

Definition at line 49 of file HcalAmplifier.cc.

Referenced by HcalElectronicsSim::convert().

void HcalAmplifier::makeNoise ( const HcalCholeskyMatrix thisChanCholesky,
int  fFrames,
double *  fGauss,
double *  fNoise,
int  m 
) const
private

Definition at line 190 of file HcalAmplifier.cc.

void HcalAmplifier::makeNoiseOld ( HcalGenericDetId::HcalGenericSubdetector  hcalSubDet,
const HcalCalibrationWidths width,
int  fFrames,
double *  fGauss,
double *  fNoise 
) const
private

Definition at line 200 of file HcalAmplifier.cc.

void HcalAmplifier::pe2fC ( CaloSamples frame) const
private

Definition at line 70 of file HcalAmplifier.cc.

void HcalAmplifier::setADCPeds ( const HcalPedestals ADCPeds)
inline

Definition at line 54 of file HcalAmplifier.h.

References myADCPeds.

54 { myADCPeds = ADCPeds; }
const HcalPedestals * myADCPeds
Definition: HcalAmplifier.h:67
void HcalAmplifier::setCholesky ( const HcalCholeskyMatrices Cholesky)
inline

Definition at line 53 of file HcalAmplifier.h.

References myCholeskys.

53 { myCholeskys = Cholesky; }
const HcalCholeskyMatrices * myCholeskys
Definition: HcalAmplifier.h:66
void HcalAmplifier::setDbService ( const HcalDbService service)

the Producer will probably update this every event

Definition at line 43 of file HcalAmplifier.cc.

void HcalAmplifier::setHBtuningParameter ( double  tp)

Definition at line 76 of file HcalAmplifier.cc.

void HcalAmplifier::setHEtuningParameter ( double  tp)

Definition at line 77 of file HcalAmplifier.cc.

void HcalAmplifier::setHFtuningParameter ( double  tp)

Definition at line 78 of file HcalAmplifier.cc.

void HcalAmplifier::setHOtuningParameter ( double  tp)

Definition at line 79 of file HcalAmplifier.cc.

void HcalAmplifier::setIonFeedbackSim ( HPDIonFeedbackSim feedbackSim)
inline

Definition at line 31 of file HcalAmplifier.h.

References theIonFeedbackSim.

31 {theIonFeedbackSim = feedbackSim;}
HPDIonFeedbackSim * theIonFeedbackSim
Definition: HcalAmplifier.h:68
void HcalAmplifier::setNoiseSignalGenerator ( const CaloVNoiseSignalGenerator noiseSignalGenerator)
inline

if it's set, the amplifier will only use it to check if it has already added noise

Definition at line 35 of file HcalAmplifier.h.

References theNoiseSignalGenerator.

35  {
36  theNoiseSignalGenerator = noiseSignalGenerator;
37  }
const CaloVNoiseSignalGenerator * theNoiseSignalGenerator
Definition: HcalAmplifier.h:65
void HcalAmplifier::setStartingCapId ( int  capId)
inline

Definition at line 44 of file HcalAmplifier.h.

References theStartingCapId.

Referenced by HcalElectronicsSim::newEvent(), and HcalElectronicsSim::setStartingCapId().

44 {theStartingCapId = capId;}
unsigned theStartingCapId
Definition: HcalAmplifier.h:70
void HcalAmplifier::setTimeSlewSim ( HcalTimeSlewSim timeSlewSim)
inline

Definition at line 38 of file HcalAmplifier.h.

References theTimeSlewSim.

38  {
39  theTimeSlewSim = timeSlewSim;
40  }
HcalTimeSlewSim * theTimeSlewSim
Definition: HcalAmplifier.h:69
void HcalAmplifier::setUseOldHB ( bool  useOld)

Definition at line 80 of file HcalAmplifier.cc.

void HcalAmplifier::setUseOldHE ( bool  useOld)

Definition at line 81 of file HcalAmplifier.cc.

void HcalAmplifier::setUseOldHF ( bool  useOld)

Definition at line 82 of file HcalAmplifier.cc.

void HcalAmplifier::setUseOldHO ( bool  useOld)

Definition at line 83 of file HcalAmplifier.cc.

Member Data Documentation

bool HcalAmplifier::addNoise_
private

Definition at line 71 of file HcalAmplifier.h.

double HcalAmplifier::HB_ff
private

Definition at line 79 of file HcalAmplifier.h.

double HcalAmplifier::HE_ff
private

Definition at line 80 of file HcalAmplifier.h.

double HcalAmplifier::HF_ff
private

Definition at line 81 of file HcalAmplifier.h.

double HcalAmplifier::HO_ff
private

Definition at line 82 of file HcalAmplifier.h.

const HcalPedestals* HcalAmplifier::myADCPeds
private

Definition at line 67 of file HcalAmplifier.h.

Referenced by setADCPeds().

const HcalCholeskyMatrices* HcalAmplifier::myCholeskys
private

Definition at line 66 of file HcalAmplifier.h.

Referenced by setCholesky().

bool HcalAmplifier::preMixAdd_
private

Definition at line 73 of file HcalAmplifier.h.

bool HcalAmplifier::preMixDigi_
private

Definition at line 72 of file HcalAmplifier.h.

const HcalDbService* HcalAmplifier::theDbService
private

Definition at line 63 of file HcalAmplifier.h.

HPDIonFeedbackSim* HcalAmplifier::theIonFeedbackSim
private

Definition at line 68 of file HcalAmplifier.h.

Referenced by setIonFeedbackSim().

const CaloVNoiseSignalGenerator* HcalAmplifier::theNoiseSignalGenerator
private

Definition at line 65 of file HcalAmplifier.h.

Referenced by setNoiseSignalGenerator().

const CaloVSimParameterMap* HcalAmplifier::theParameterMap
private

Definition at line 64 of file HcalAmplifier.h.

unsigned HcalAmplifier::theStartingCapId
private

Definition at line 70 of file HcalAmplifier.h.

Referenced by setStartingCapId().

HcalTimeSlewSim* HcalAmplifier::theTimeSlewSim
private

Definition at line 69 of file HcalAmplifier.h.

Referenced by setTimeSlewSim().

bool HcalAmplifier::useOldHB
private

Definition at line 74 of file HcalAmplifier.h.

bool HcalAmplifier::useOldHE
private

Definition at line 75 of file HcalAmplifier.h.

bool HcalAmplifier::useOldHF
private

Definition at line 76 of file HcalAmplifier.h.

bool HcalAmplifier::useOldHO
private

Definition at line 77 of file HcalAmplifier.h.