#include <EcalBarrelRecHitsMaker.h>
Public Member Functions | |
EcalBarrelRecHitsMaker (edm::ParameterSet const &p) | |
void | init (const edm::EventSetup &es, bool dodigis, bool doMiscalib) |
void | loadEcalBarrelRecHits (edm::Event &iEvent, EBRecHitCollection &ecalHits, EBDigiCollection &ecaldigis, RandomEngineAndDistribution const *) |
~EcalBarrelRecHitsMaker () | |
Private Member Functions | |
void | clean () |
void | geVtoGainAdc (float e, unsigned &gain, unsigned &adc) const |
bool | isHighInterest (int tthi) |
void | loadPCaloHits (const edm::Event &iEvent, RandomEngineAndDistribution const *) |
bool | noisifyTriggerTower (unsigned tthi, RandomEngineAndDistribution const *) |
void | noisifyTriggerTowers (RandomEngineAndDistribution const *) |
void | randomNoisifier (RandomEngineAndDistribution const *) |
Private Attributes | |
float | adcToGeV_ |
std::vector< int > | applyZSCells_ |
std::vector< uint32_t > | barrelRawId_ |
double | calibfactor_ |
std::vector< std::vector< int > > | crystalsinTT_ |
bool | doCustomHighNoise_ |
bool | doDigis_ |
bool | doMisCalib_ |
double | EBHotFraction_ |
const EcalTrigTowerConstituentsMap * | eTTmap_ |
float | geVToAdc1_ |
float | geVToAdc2_ |
float | geVToAdc3_ |
std::vector< double > | highNoiseParameters_ |
const std::vector< float > * | ICMC_ |
edm::InputTag | inputCol_ |
unsigned | maxAdc_ |
double | meanNoiseSigmaEt_ |
unsigned | minAdc_ |
const GaussianTail * | myGaussianTailGenerator_ |
std::vector< std::vector< int > > | neighboringTTs_ |
double | noise_ |
double | noiseADC_ |
std::vector< float > | noisesigma_ |
bool | noisified_ |
double | refactor_ |
double | refactor_mean_ |
float | sat_ |
std::vector< float > | sinTheta_ |
int | SREtaSize_ |
int | SRPhiSize_ |
float | SRThreshold_ |
float | t1_ |
float | t2_ |
std::vector< float > | theCalibConstants_ |
std::vector< float > | theCalorimeterHits_ |
std::vector< int > | theFiredCells_ |
std::vector< unsigned > | theFiredTTs_ |
std::vector< EcalTrigTowerDetId > | theTTDetIds_ |
std::vector< int > | theTTofHighInterest_ |
double | threshold_ |
std::vector< bool > | treatedTTs_ |
std::vector< int > | TTHighInterest_ |
std::vector< float > | TTTEnergy_ |
Definition at line 20 of file EcalBarrelRecHitsMaker.h.
EcalBarrelRecHitsMaker::EcalBarrelRecHitsMaker | ( | edm::ParameterSet const & | p | ) |
Definition at line 31 of file EcalBarrelRecHitsMaker.cc.
References applyZSCells_, alignmentValidation::c1, calibfactor_, crystalsinTT_, doCustomHighNoise_, EBHotFraction_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), highNoiseParameters_, inputCol_, EBDetId::kSizeForDenseIndexing, myGaussianTailGenerator_, neighboringTTs_, noise_, noiseADC_, noisified_, refactor_, refactor_mean_, sinTheta_, mathSSE::sqrt(), SREtaSize_, SRPhiSize_, SRThreshold_, theCalorimeterHits_, theTTDetIds_, threshold_, treatedTTs_, TTHighInterest_, and TTTEnergy_.
EcalBarrelRecHitsMaker::~EcalBarrelRecHitsMaker | ( | ) |
Definition at line 81 of file EcalBarrelRecHitsMaker.cc.
|
private |
Definition at line 86 of file EcalBarrelRecHitsMaker.cc.
References applyZSCells_, noise_, noisified_, findQualityFiles::size, theCalorimeterHits_, theFiredCells_, theFiredTTs_, theTTofHighInterest_, treatedTTs_, TTHighInterest_, and TTTEnergy_.
Referenced by loadEcalBarrelRecHits().
|
private |
Definition at line 564 of file EcalBarrelRecHitsMaker.cc.
References geVToAdc1_, geVToAdc2_, geVToAdc3_, maxAdc_, bookConverter::min, minAdc_, t1_, and t2_.
Referenced by loadEcalBarrelRecHits().
void EcalBarrelRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | doMiscalib | ||
) |
Definition at line 395 of file EcalBarrelRecHitsMaker.cc.
References funct::abs(), adcToGeV_, EcalCondObjectContainer< T >::barrelItems(), barrelRawId_, calibfactor_, crystalsinTT_, doDigis_, doMisCalib_, DetId::Ecal, EcalBarrel, eTTmap_, edm::EventSetup::get(), geVToAdc1_, geVToAdc2_, geVToAdc3_, EBDetId::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, max(), maxAdc_, timingPdfMaker::mean, bookConverter::min, minAdc_, neighboringTTs_, noise_, noiseADC_, noisesigma_, edm::ESHandle< class >::product(), refactor_, refactor_mean_, plotscripts::rms(), sat_, funct::sin(), sinTheta_, findQualityFiles::size, mathSSE::sqrt(), SREtaSize_, SRPhiSize_, t1_, t2_, theCalibConstants_, theTTDetIds_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by CaloRecHitsProducer::beginRun().
|
private |
Definition at line 585 of file EcalBarrelRecHitsMaker.cc.
References neighboringTTs_, query::result, findQualityFiles::size, SRThreshold_, theTTofHighInterest_, TTHighInterest_, and TTTEnergy_.
Referenced by loadEcalBarrelRecHits().
void EcalBarrelRecHitsMaker::loadEcalBarrelRecHits | ( | edm::Event & | iEvent, |
EBRecHitCollection & | ecalHits, | ||
EBDigiCollection & | ecaldigis, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 125 of file EcalBarrelRecHitsMaker.cc.
References ecalMGPA::adc(), applyZSCells_, edm::DataFrameContainer::back(), barrelRawId_, clean(), doDigis_, relval_parameters_module::energy, eTTmap_, geVtoGainAdc(), EcalTrigTowerDetId::hashedIndex(), isHighInterest(), loadPCaloHits(), edm::DataFrameContainer::push_back(), edm::SortedCollection< T, SORT >::push_back(), edm::DataFrameContainer::reserve(), edm::SortedCollection< T, SORT >::reserve(), sat_, SRThreshold_, theCalorimeterHits_, theFiredCells_, threshold_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by CaloRecHitsProducer::produce().
|
private |
Definition at line 188 of file EcalBarrelRecHitsMaker.cc.
References calib, calibfactor_, doMisCalib_, relval_parameters_module::energy, eTTmap_, RandomEngineAndDistribution::gaussShoot(), edm::Event::getByLabel(), ecalpyutils::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), EBDetId::ietaAbs(), inputCol_, noise_, noisesigma_, noisified_, noisifyTriggerTowers(), edm::Handle< T >::product(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, EcalTrigTowerConstituentsMap::towerOf(), and TTTEnergy_.
Referenced by loadEcalBarrelRecHits().
|
private |
Definition at line 283 of file EcalBarrelRecHitsMaker.cc.
References barrelRawId_, calib, calibfactor_, counter, crystalsinTT_, doMisCalib_, relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), EBDetId::ietaAbs(), noise_, noisesigma_, sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, treatedTTs_, and TTTEnergy_.
Referenced by noisifyTriggerTowers().
|
private |
Definition at line 240 of file EcalBarrelRecHitsMaker.cc.
References recoMuon::in, neighboringTTs_, noise_, noisifyTriggerTower(), nTT, randomNoisifier(), theFiredTTs_, treatedTTs_, and TTTEnergy_.
Referenced by loadPCaloHits().
|
private |
Definition at line 323 of file EcalBarrelRecHitsMaker.cc.
References adcToGeV_, applyZSCells_, calib, calibfactor_, doCustomHighNoise_, doMisCalib_, EBHotFraction_, relval_parameters_module::energy, eTTmap_, RandomEngineAndDistribution::flatShoot(), RandomEngineAndDistribution::gaussShoot(), ecalpyutils::hashedIndex(), highNoiseParameters_, ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, timingPdfMaker::mean, myGaussianTailGenerator_, noise_, noisesigma_, RandomEngineAndDistribution::poissonShoot(), GaussianTail::shoot(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, EcalTrigTowerConstituentsMap::towerOf(), TTTEnergy_, and EBDetId::unhashIndex().
Referenced by noisifyTriggerTowers().
|
private |
Definition at line 65 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), and randomNoisifier().
|
private |
Definition at line 59 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), loadEcalBarrelRecHits(), and randomNoisifier().
|
private |
Definition at line 64 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadEcalBarrelRecHits(), and noisifyTriggerTower().
|
private |
Definition at line 48 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 83 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), init(), and noisifyTriggerTower().
|
private |
Definition at line 92 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().
|
private |
Definition at line 41 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), and loadEcalBarrelRecHits().
|
private |
Definition at line 42 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 49 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().
|
private |
Definition at line 71 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadEcalBarrelRecHits(), loadPCaloHits(), and randomNoisifier().
|
private |
Definition at line 66 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 66 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 66 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 91 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().
|
private |
Definition at line 106 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), and randomNoisifier().
|
private |
Definition at line 53 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and loadPCaloHits().
|
private |
Definition at line 68 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 102 of file EcalBarrelRecHitsMaker.h.
|
private |
Definition at line 67 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 50 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and randomNoisifier().
|
private |
Definition at line 81 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), init(), isHighInterest(), and noisifyTriggerTowers().
|
private |
Definition at line 47 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), init(), loadPCaloHits(), noisifyTriggerTower(), noisifyTriggerTowers(), and randomNoisifier().
|
private |
Definition at line 104 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 101 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 52 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), and loadPCaloHits().
|
private |
Definition at line 43 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 44 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 69 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), and loadEcalBarrelRecHits().
|
private |
Definition at line 99 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 96 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 97 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 95 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), isHighInterest(), and loadEcalBarrelRecHits().
|
private |
Definition at line 69 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 69 of file EcalBarrelRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 61 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 55 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), loadEcalBarrelRecHits(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 57 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), loadEcalBarrelRecHits(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 77 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), loadPCaloHits(), noisifyTriggerTower(), noisifyTriggerTowers(), and randomNoisifier().
|
private |
Definition at line 73 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 85 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), and isHighInterest().
|
private |
Definition at line 46 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and loadEcalBarrelRecHits().
|
private |
Definition at line 79 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), noisifyTriggerTower(), and noisifyTriggerTowers().
|
private |
Definition at line 87 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), and isHighInterest().
|
private |
Definition at line 75 of file EcalBarrelRecHitsMaker.h.
Referenced by clean(), EcalBarrelRecHitsMaker(), isHighInterest(), loadPCaloHits(), noisifyTriggerTower(), noisifyTriggerTowers(), and randomNoisifier().