#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 |
HcalTopology | theTopology |
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 45 of file HPDNoiseLibraryReader.h.
HPDNoiseLibraryReader::HPDNoiseLibraryReader | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 22 of file HPDNoiseLibraryReader.cc.
References HPDNoiseReader::allNames(), fillRates(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), setRandomEngine(), theHPDName, theNames, and theReader.
HPDNoiseLibraryReader::~HPDNoiseLibraryReader | ( | ) |
Definition at line 45 of file HPDNoiseLibraryReader.cc.
References theRandFlat, and theRandGaussQ.
|
private |
Definition at line 398 of file HPDNoiseLibraryReader.cc.
References theNoisyPhi.
Referenced by getBiasedNoisyPhis(), and getNoisyPhis().
|
private |
Definition at line 88 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 239 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 215 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 153 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 261 of file HPDNoiseLibraryReader.cc.
References a, b, edm::hlt::Exception, j, p4, pe2Charge, Rannor(), theIonFeedbackFirstPeakRate, theIonFeedbackSecondPeakRate, theRandFlat, and theRandGaussQ.
|
private |
Definition at line 101 of file HPDNoiseLibraryReader.cc.
References dtNoiseDBValidation_cfg::cerr, data, HPDNoiseReader::getEntry(), HPDNoiseReader::getHandle(), IsNoiseApplicable(), itos(), mergeVDriftHistosByStation::name, theHPDName, theRandFlat, theReader, HPDNoiseReader::totalEntries(), and HPDNoiseReader::valid().
Referenced by getBiasedNoisyHcalDetIds(), and getNoisyHcalDetIds().
vector< pair< HcalDetId, const float * > > HPDNoiseLibraryReader::getNoisyHcalDetIds | ( | ) |
Definition at line 172 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 193 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 139 of file HPDNoiseLibraryReader.cc.
References clearPhi(), i, theDischargeNoiseRate, theNoisyPhi, and theRandFlat.
Referenced by getNoisyHcalDetIds().
|
static |
Definition at line 53 of file HPDNoiseLibraryReader.cc.
References HDQMDatabaseProducer::config, edmplugin::standard::config(), edmplugin::PluginManager::configure(), edm::ServiceRegistry::createServicesFromConfig(), edmplugin::PluginManager::isAvailable(), and cmsPerfStripChart::operate().
|
private |
Definition at line 328 of file HPDNoiseLibraryReader.cc.
References spr::find(), and theNoisyPhi.
Referenced by getNoiseData().
|
private |
Definition at line 391 of file HPDNoiseLibraryReader.cc.
References i, and alignCSCRings::s.
Referenced by getNoiseData().
|
private |
Definition at line 378 of file HPDNoiseLibraryReader.cc.
References alignCSCRings::r, theRandFlat, vdt::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by getIonFeedbackNoise().
|
protected |
Definition at line 68 of file HPDNoiseLibraryReader.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), and edm::Service< T >::isAvailable().
Referenced by HPDNoiseLibraryReader().
|
protected |
Definition at line 77 of file HPDNoiseLibraryReader.cc.
References theRandFlat, and theRandGaussQ.
|
private |
Definition at line 339 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 100 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getBiasedNoisyPhis(), and getNoisyPhis().
std::string HPDNoiseLibraryReader::theHPDName |
Definition at line 108 of file HPDNoiseLibraryReader.h.
Referenced by getNoiseData(), and HPDNoiseLibraryReader().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackFirstPeakRate |
Definition at line 101 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<float> HPDNoiseLibraryReader::theIonFeedbackSecondPeakRate |
Definition at line 102 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and getIonFeedbackNoise().
std::vector<std::string> HPDNoiseLibraryReader::theNames |
Definition at line 107 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), and HPDNoiseLibraryReader().
std::vector<int> HPDNoiseLibraryReader::theNoisyPhi |
Definition at line 103 of file HPDNoiseLibraryReader.h.
Referenced by clearPhi(), getBiasedNoisyHcalDetIds(), getBiasedNoisyPhis(), getNoisyHcalDetIds(), getNoisyPhis(), and IsNoiseApplicable().
CLHEP::RandFlat* HPDNoiseLibraryReader::theRandFlat |
Definition at line 104 of file HPDNoiseLibraryReader.h.
Referenced by getBiasedNoisyPhis(), getIonFeedbackNoise(), getNoiseData(), getNoisyPhis(), Rannor(), setRandomEngine(), and ~HPDNoiseLibraryReader().
CLHEP::RandGaussQ* HPDNoiseLibraryReader::theRandGaussQ |
Definition at line 105 of file HPDNoiseLibraryReader.h.
Referenced by getIonFeedbackNoise(), setRandomEngine(), and ~HPDNoiseLibraryReader().
HPDNoiseReader* HPDNoiseLibraryReader::theReader |
Definition at line 106 of file HPDNoiseLibraryReader.h.
Referenced by fillRates(), getNoiseData(), and HPDNoiseLibraryReader().
HcalTopology HPDNoiseLibraryReader::theTopology |
Definition at line 97 of file HPDNoiseLibraryReader.h.