#include <HPDNoiseLibraryReader.h>
Public Member Functions | |
std::vector< std::pair < HcalDetId, const float * > > | getBiasedNoisyHcalDetIds () |
std::vector< std::pair < HcalDetId, const float * > > | getBiasedNoisyHcalDetIds (int timeSliceId) |
double | getIonFeedbackNoise (HcalDetId id, double energy, double bias) |
std::vector< std::pair < HcalDetId, const float * > > | getNoisyHcalDetIds () |
std::vector< std::pair < HcalDetId, const float * > > | getNoisyHcalDetIds (int timeSliceId) |
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 |
CLHEP::RandFlat * | theRandFlat |
CLHEP::RandGaussQ * | theRandGaussQ |
HPDNoiseReader * | theReader |
Protected Member Functions | |
void | setRandomEngine () |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
Private Member Functions | |
void | clearPhi () |
void | fillRates () |
void | getBiasedNoisyPhis () |
HPDNoiseData * | getNoiseData (int iphi) |
void | getNoisyPhis () |
bool | IsNoiseApplicable (int iphi) |
std::string | itos (int i) |
void | Rannor (double &a, double &b) |
void | shuffleData (int timeSliceId, float *&data) |
Definition at line 43 of file HPDNoiseLibraryReader.h.
HPDNoiseLibraryReader::HPDNoiseLibraryReader | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 21 of file HPDNoiseLibraryReader.cc.
References HPDNoiseReader::allNames(), fillRates(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), setRandomEngine(), theHPDName, theNames, and theReader.
HPDNoiseLibraryReader::~HPDNoiseLibraryReader | ( | ) |
Definition at line 44 of file HPDNoiseLibraryReader.cc.
References theRandFlat, and theRandGaussQ.
|
private |
Definition at line 392 of file HPDNoiseLibraryReader.cc.
References theNoisyPhi.
Referenced by getBiasedNoisyPhis(), and getNoisyPhis().
|
private |
Definition at line 87 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 | ( | ) |
Definition at line 235 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 | ) |
Definition at line 212 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 152 of file HPDNoiseLibraryReader.cc.
References clearPhi(), i, theDischargeNoiseRate, theNoisyPhi, and theRandFlat.
Referenced by getBiasedNoisyHcalDetIds().
double HPDNoiseLibraryReader::getIonFeedbackNoise | ( | HcalDetId | id, |
double | energy, | ||
double | bias | ||
) |
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 255 of file HPDNoiseLibraryReader.cc.
References a, b, edm::hlt::Exception, j, p4, pe2Charge, Rannor(), theIonFeedbackFirstPeakRate, theIonFeedbackSecondPeakRate, theRandFlat, and theRandGaussQ.
|
private |
Definition at line 100 of file HPDNoiseLibraryReader.cc.
References dtNoiseDBValidation_cfg::cerr, data, HPDNoiseReader::getEntry(), HPDNoiseReader::getHandle(), IsNoiseApplicable(), itos(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, theHPDName, theRandFlat, theReader, HPDNoiseReader::totalEntries(), and HPDNoiseReader::valid().
Referenced by getBiasedNoisyHcalDetIds(), and getNoisyHcalDetIds().
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds | ( | ) |
Definition at line 171 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 | ) |
Definition at line 191 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 138 of file HPDNoiseLibraryReader.cc.
References clearPhi(), i, theDischargeNoiseRate, theNoisyPhi, and theRandFlat.
Referenced by getNoisyHcalDetIds().
|
static |
Definition at line 52 of file HPDNoiseLibraryReader.cc.
References HDQMDatabaseProducer::config, edmplugin::standard::config(), edmplugin::PluginManager::configure(), edm::ServiceRegistry::createServicesFromConfig(), edmplugin::PluginManager::isAvailable(), cmsPerfStripChart::operate(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 322 of file HPDNoiseLibraryReader.cc.
References spr::find(), and theNoisyPhi.
Referenced by getNoiseData().
|
private |
Definition at line 385 of file HPDNoiseLibraryReader.cc.
References i, and alignCSCRings::s.
Referenced by getNoiseData().
|
private |
Definition at line 372 of file HPDNoiseLibraryReader.cc.
References alignCSCRings::r, theRandFlat, x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by getIonFeedbackNoise().
|
protected |
Definition at line 67 of file HPDNoiseLibraryReader.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), and edm::Service< T >::isAvailable().
Referenced by HPDNoiseLibraryReader().
|
protected |
Definition at line 76 of file HPDNoiseLibraryReader.cc.
References theRandFlat, and theRandGaussQ.
|
private |
Definition at line 333 of file HPDNoiseLibraryReader.cc.
References createTree::dd, i, gen::k, and max().
Referenced by getBiasedNoisyHcalDetIds(), and getNoisyHcalDetIds().
std::vector<float> HPDNoiseLibraryReader::theDischargeNoiseRate |
Definition at line 96 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getBiasedNoisyPhis(), and getNoisyPhis().
std::string HPDNoiseLibraryReader::theHPDName |
Definition at line 104 of file HPDNoiseLibraryReader.h.
Referenced by getNoiseData(), and HPDNoiseLibraryReader().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackFirstPeakRate |
Definition at line 97 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackSecondPeakRate |
Definition at line 98 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<std::string> HPDNoiseLibraryReader::theNames |
Definition at line 103 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and HPDNoiseLibraryReader().
std::vector<int> HPDNoiseLibraryReader::theNoisyPhi |
Definition at line 99 of file HPDNoiseLibraryReader.h.
Referenced by clearPhi(), getBiasedNoisyHcalDetIds(), getBiasedNoisyPhis(), getNoisyHcalDetIds(), getNoisyPhis(), and IsNoiseApplicable().
CLHEP::RandFlat* HPDNoiseLibraryReader::theRandFlat |
Definition at line 100 of file HPDNoiseLibraryReader.h.
Referenced by getBiasedNoisyPhis(), getIonFeedbackNoise(), getNoiseData(), getNoisyPhis(), Rannor(), setRandomEngine(), and ~HPDNoiseLibraryReader().
CLHEP::RandGaussQ* HPDNoiseLibraryReader::theRandGaussQ |
Definition at line 101 of file HPDNoiseLibraryReader.h.
Referenced by getIonFeedbackNoise(), setRandomEngine(), and ~HPDNoiseLibraryReader().
HPDNoiseReader* HPDNoiseLibraryReader::theReader |
Definition at line 102 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getNoiseData(), and HPDNoiseLibraryReader().