CMS 3D CMS Logo

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

#include <HPDNoiseLibraryReader.h>

Public Member Functions

std::vector< std::pair
< HcalDetId, const float * > > 
getBiasedNoisyHcalDetIds (CLHEP::HepRandomEngine *)
 
std::vector< std::pair
< HcalDetId, const float * > > 
getBiasedNoisyHcalDetIds (int timeSliceId, CLHEP::HepRandomEngine *)
 
double getIonFeedbackNoise (HcalDetId id, double energy, double bias, CLHEP::HepRandomEngine *)
 
std::vector< std::pair
< HcalDetId, const float * > > 
getNoisyHcalDetIds (CLHEP::HepRandomEngine *)
 
std::vector< std::pair
< HcalDetId, const float * > > 
getNoisyHcalDetIds (int timeSliceId, CLHEP::HepRandomEngine *)
 
 HPDNoiseLibraryReader (const edm::ParameterSet &)
 
 ~HPDNoiseLibraryReader ()
 

Static Public Member Functions

static void initializeServices ()
 

Public Attributes

std::vector< float > theDischargeNoiseRate
 
std::string theHPDName
 
std::vector< float > theIonFeedbackFirstPeakRate
 
std::vector< float > theIonFeedbackSecondPeakRate
 
std::vector< std::string > theNames
 
std::vector< int > theNoisyPhi
 
HPDNoiseReadertheReader
 

Private Member Functions

void clearPhi ()
 
void fillRates ()
 
void getBiasedNoisyPhis (CLHEP::HepRandomEngine *)
 
HPDNoiseDatagetNoiseData (int iphi, CLHEP::HepRandomEngine *)
 
void getNoisyPhis (CLHEP::HepRandomEngine *)
 
bool IsNoiseApplicable (int iphi)
 
std::string itos (int i)
 
void Rannor (double &a, double &b, CLHEP::HepRandomEngine *)
 
void shuffleData (int timeSliceId, float *&data)
 

Detailed Description

Definition at line 40 of file HPDNoiseLibraryReader.h.

Constructor & Destructor Documentation

HPDNoiseLibraryReader::HPDNoiseLibraryReader ( const edm::ParameterSet iConfig)

Definition at line 25 of file HPDNoiseLibraryReader.cc.

HPDNoiseLibraryReader::~HPDNoiseLibraryReader ( )

Definition at line 45 of file HPDNoiseLibraryReader.cc.

Member Function Documentation

void HPDNoiseLibraryReader::clearPhi ( )
private

Definition at line 353 of file HPDNoiseLibraryReader.cc.

void HPDNoiseLibraryReader::fillRates ( )
private

Definition at line 48 of file HPDNoiseLibraryReader.cc.

vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds ( CLHEP::HepRandomEngine *  engine)

Definition at line 196 of file HPDNoiseLibraryReader.cc.

vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds ( int  timeSliceId,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 173 of file HPDNoiseLibraryReader.cc.

void HPDNoiseLibraryReader::getBiasedNoisyPhis ( CLHEP::HepRandomEngine *  engine)
private

Definition at line 113 of file HPDNoiseLibraryReader.cc.

double HPDNoiseLibraryReader::getIonFeedbackNoise ( HcalDetId  id,
double  energy,
double  bias,
CLHEP::HepRandomEngine *  engine 
)

HPD Ion feedback simulation based on LED data. A simple simulation which uses gaussian fit to data. biased = false ==> HPD noise from Ion Feedback only, unbiased biased = true ==> HPD noise from Ion Feedback only, biased (rate is X times larger than nominal rate)

Definition at line 216 of file HPDNoiseLibraryReader.cc.

HPDNoiseData * HPDNoiseLibraryReader::getNoiseData ( int  iphi,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 61 of file HPDNoiseLibraryReader.cc.

vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds ( CLHEP::HepRandomEngine *  engine)

Definition at line 132 of file HPDNoiseLibraryReader.cc.

Referenced by HPDNoiseGenerator::fillNoiseSignals().

vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds ( int  timeSliceId,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 152 of file HPDNoiseLibraryReader.cc.

void HPDNoiseLibraryReader::getNoisyPhis ( CLHEP::HepRandomEngine *  engine)
private

Definition at line 99 of file HPDNoiseLibraryReader.cc.

static void HPDNoiseLibraryReader::initializeServices ( )
static
bool HPDNoiseLibraryReader::IsNoiseApplicable ( int  iphi)
private

Definition at line 283 of file HPDNoiseLibraryReader.cc.

string HPDNoiseLibraryReader::itos ( int  i)
private

Definition at line 346 of file HPDNoiseLibraryReader.cc.

void HPDNoiseLibraryReader::Rannor ( double &  a,
double &  b,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 333 of file HPDNoiseLibraryReader.cc.

void HPDNoiseLibraryReader::shuffleData ( int  timeSliceId,
float *&  data 
)
private

Definition at line 294 of file HPDNoiseLibraryReader.cc.

Member Data Documentation

std::vector<float> HPDNoiseLibraryReader::theDischargeNoiseRate

Definition at line 90 of file HPDNoiseLibraryReader.h.

std::string HPDNoiseLibraryReader::theHPDName

Definition at line 96 of file HPDNoiseLibraryReader.h.

std::vector<float> HPDNoiseLibraryReader::theIonFeedbackFirstPeakRate

Definition at line 91 of file HPDNoiseLibraryReader.h.

std::vector<float> HPDNoiseLibraryReader::theIonFeedbackSecondPeakRate

Definition at line 92 of file HPDNoiseLibraryReader.h.

std::vector<std::string> HPDNoiseLibraryReader::theNames

Definition at line 95 of file HPDNoiseLibraryReader.h.

std::vector<int> HPDNoiseLibraryReader::theNoisyPhi

Definition at line 93 of file HPDNoiseLibraryReader.h.

HPDNoiseReader* HPDNoiseLibraryReader::theReader

Definition at line 94 of file HPDNoiseLibraryReader.h.