#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 |
HPDNoiseReader * | theReader |
Private Member Functions | |
void | clearPhi () |
void | fillRates () |
void | getBiasedNoisyPhis (CLHEP::HepRandomEngine *) |
HPDNoiseData * | getNoiseData (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) |
Definition at line 40 of file HPDNoiseLibraryReader.h.
HPDNoiseLibraryReader::HPDNoiseLibraryReader | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 25 of file HPDNoiseLibraryReader.cc.
References HPDNoiseReader::allNames(), archive::filepath, fillRates(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), theHPDName, theNames, and theReader.
HPDNoiseLibraryReader::~HPDNoiseLibraryReader | ( | ) |
Definition at line 45 of file HPDNoiseLibraryReader.cc.
|
private |
Definition at line 353 of file HPDNoiseLibraryReader.cc.
References theNoisyPhi.
Referenced by getBiasedNoisyPhis(), and getNoisyPhis().
|
private |
Definition at line 48 of file HPDNoiseLibraryReader.cc.
References dtNoiseDBValidation_cfg::cerr, HPDNoiseReader::dischargeRate(), HPDNoiseReader::getHandle(), i, HPDNoiseReader::ionFeedbackFirstPeakRate(), HPDNoiseReader::ionFeedbackSecondPeakRate(), theDischargeNoiseRate, theIonFeedbackFirstPeakRate, theIonFeedbackSecondPeakRate, theNames, theReader, and HPDNoiseReader::valid().
Referenced by HPDNoiseLibraryReader().
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds | ( | CLHEP::HepRandomEngine * | engine | ) |
Definition at line 196 of file HPDNoiseLibraryReader.cc.
References data, getBiasedNoisyPhis(), HPDNoiseData::getDataFrame(), HPDNoiseDataFrame::getFrame(), getNoiseData(), i, HPDNoiseDataFrame::id(), query::result, HPDNoiseData::size(), and theNoisyPhi.
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getBiasedNoisyHcalDetIds | ( | int | timeSliceId, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 173 of file HPDNoiseLibraryReader.cc.
References data, getBiasedNoisyPhis(), HPDNoiseData::getDataFrame(), HPDNoiseDataFrame::getFrame(), getNoiseData(), i, HPDNoiseDataFrame::id(), query::result, shuffleData(), HPDNoiseData::size(), and theNoisyPhi.
|
private |
Definition at line 113 of file HPDNoiseLibraryReader.cc.
References clearPhi(), i, theDischargeNoiseRate, and theNoisyPhi.
Referenced by getBiasedNoisyHcalDetIds().
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.
References a, b, edm::hlt::Exception, j, p4, pe2Charge, Rannor(), theIonFeedbackFirstPeakRate, and theIonFeedbackSecondPeakRate.
|
private |
Definition at line 61 of file HPDNoiseLibraryReader.cc.
References dtNoiseDBValidation_cfg::cerr, data, HPDNoiseReader::getEntry(), HPDNoiseReader::getHandle(), IsNoiseApplicable(), itos(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, theHPDName, theReader, HPDNoiseReader::totalEntries(), HPDNoiseReader::valid(), and ecaldqm::zside().
Referenced by getBiasedNoisyHcalDetIds(), and getNoisyHcalDetIds().
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds | ( | CLHEP::HepRandomEngine * | engine | ) |
Definition at line 132 of file HPDNoiseLibraryReader.cc.
References data, HPDNoiseData::getDataFrame(), HPDNoiseDataFrame::getFrame(), getNoiseData(), getNoisyPhis(), i, HPDNoiseDataFrame::id(), query::result, HPDNoiseData::size(), and theNoisyPhi.
Referenced by HPDNoiseGenerator::fillNoiseSignals().
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds | ( | int | timeSliceId, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 152 of file HPDNoiseLibraryReader.cc.
References data, HPDNoiseData::getDataFrame(), HPDNoiseDataFrame::getFrame(), getNoiseData(), getNoisyPhis(), i, HPDNoiseDataFrame::id(), query::result, shuffleData(), HPDNoiseData::size(), and theNoisyPhi.
|
private |
Definition at line 99 of file HPDNoiseLibraryReader.cc.
References clearPhi(), i, theDischargeNoiseRate, and theNoisyPhi.
Referenced by getNoisyHcalDetIds().
|
static |
|
private |
Definition at line 283 of file HPDNoiseLibraryReader.cc.
References spr::find(), and theNoisyPhi.
Referenced by getNoiseData().
|
private |
Definition at line 346 of file HPDNoiseLibraryReader.cc.
References i, and alignCSCRings::s.
Referenced by getNoiseData().
|
private |
Definition at line 333 of file HPDNoiseLibraryReader.cc.
References alignCSCRings::r, x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by getIonFeedbackNoise().
|
private |
Definition at line 294 of file HPDNoiseLibraryReader.cc.
References createTree::dd, i, gen::k, and bookConverter::max.
Referenced by getBiasedNoisyHcalDetIds(), and getNoisyHcalDetIds().
std::vector<float> HPDNoiseLibraryReader::theDischargeNoiseRate |
Definition at line 90 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getBiasedNoisyPhis(), and getNoisyPhis().
std::string HPDNoiseLibraryReader::theHPDName |
Definition at line 96 of file HPDNoiseLibraryReader.h.
Referenced by getNoiseData(), and HPDNoiseLibraryReader().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackFirstPeakRate |
Definition at line 91 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackSecondPeakRate |
Definition at line 92 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<std::string> HPDNoiseLibraryReader::theNames |
Definition at line 95 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and HPDNoiseLibraryReader().
std::vector<int> HPDNoiseLibraryReader::theNoisyPhi |
Definition at line 93 of file HPDNoiseLibraryReader.h.
Referenced by clearPhi(), getBiasedNoisyHcalDetIds(), getBiasedNoisyPhis(), getNoisyHcalDetIds(), getNoisyPhis(), and IsNoiseApplicable().
HPDNoiseReader* HPDNoiseLibraryReader::theReader |
Definition at line 94 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getNoiseData(), and HPDNoiseLibraryReader().