#include <EcalBarrelRecHitsMaker.h>
Public Member Functions | |
EcalBarrelRecHitsMaker (edm::ParameterSet const &p, const RandomEngine *) | |
void | init (const edm::EventSetup &es, bool dodigis, bool doMiscalib) |
void | loadEcalBarrelRecHits (edm::Event &iEvent, EBRecHitCollection &ecalHits, EBDigiCollection &ecaldigis) |
~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) |
bool | noisifyTriggerTower (unsigned tthi) |
void | noisifyTriggerTowers () |
void | randomNoisifier () |
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_ |
const RandomEngine * | random_ |
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, |
const RandomEngine * | myrandom | ||
) |
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_, random_, refactor_, refactor_mean_, sinTheta_, mathSSE::sqrt(), SREtaSize_, SRPhiSize_, SRThreshold_, theCalorimeterHits_, theTTDetIds_, threshold_, treatedTTs_, TTHighInterest_, and TTTEnergy_.
EcalBarrelRecHitsMaker::~EcalBarrelRecHitsMaker | ( | ) |
Definition at line 83 of file EcalBarrelRecHitsMaker.cc.
|
private |
Definition at line 88 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 559 of file EcalBarrelRecHitsMaker.cc.
References geVToAdc1_, geVToAdc2_, geVToAdc3_, maxAdc_, min, minAdc_, t1_, and t2_.
Referenced by loadEcalBarrelRecHits().
void EcalBarrelRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | doMiscalib | ||
) |
Definition at line 390 of file EcalBarrelRecHitsMaker.cc.
References abs, adcToGeV_, EcalCondObjectContainer< T >::barrelItems(), barrelRawId_, calibfactor_, crystalsinTT_, doDigis_, doMisCalib_, DetId::Ecal, EcalBarrel, eTTmap_, edm::EventSetup::get(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), CaloSubdetectorGeometry::getValidDetIds(), geVToAdc1_, geVToAdc2_, geVToAdc3_, EBDetId::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, max(), maxAdc_, timingPdfMaker::mean, 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_, PV3DBase< T, PVType, FrameType >::theta(), theTTDetIds_, and EcalTrigTowerConstituentsMap::towerOf().
Referenced by CaloRecHitsProducer::beginRun().
|
private |
Definition at line 580 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 | ||
) |
Definition at line 127 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 189 of file EcalBarrelRecHitsMaker.cc.
References calib, calibfactor_, doMisCalib_, relval_parameters_module::energy, eTTmap_, RandomEngine::gaussShoot(), edm::Event::getByLabel(), ecalpyutils::hashedIndex(), EcalTrigTowerDetId::hashedIndex(), EBDetId::ietaAbs(), inputCol_, noise_, noisesigma_, noisified_, noisifyTriggerTowers(), edm::Handle< T >::product(), random_, sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, EcalTrigTowerConstituentsMap::towerOf(), and TTTEnergy_.
Referenced by loadEcalBarrelRecHits().
|
private |
Definition at line 284 of file EcalBarrelRecHitsMaker.cc.
References barrelRawId_, calib, calibfactor_, crystalsinTT_, doMisCalib_, relval_parameters_module::energy, RandomEngine::gaussShoot(), EBDetId::ietaAbs(), noise_, noisesigma_, random_, sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, treatedTTs_, and TTTEnergy_.
Referenced by noisifyTriggerTowers().
|
private |
Definition at line 241 of file EcalBarrelRecHitsMaker.cc.
References recoMuon::in, neighboringTTs_, noise_, noisifyTriggerTower(), nTT, randomNoisifier(), theFiredTTs_, treatedTTs_, and TTTEnergy_.
Referenced by loadPCaloHits().
|
private |
Definition at line 324 of file EcalBarrelRecHitsMaker.cc.
References adcToGeV_, applyZSCells_, calib, calibfactor_, doCustomHighNoise_, doMisCalib_, EBHotFraction_, relval_parameters_module::energy, eTTmap_, RandomEngine::flatShoot(), RandomEngine::gaussShoot(), ecalpyutils::hashedIndex(), highNoiseParameters_, ICMC_, EBDetId::ietaAbs(), EBDetId::kSizeForDenseIndexing, timingPdfMaker::mean, myGaussianTailGenerator_, noise_, noisesigma_, RandomEngine::poissonShoot(), random_, 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 47 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 40 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), and loadEcalBarrelRecHits().
|
private |
Definition at line 41 of file EcalBarrelRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 48 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 46 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 49 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), loadPCaloHits(), noisifyTriggerTower(), and randomNoisifier().
|
private |
Definition at line 42 of file EcalBarrelRecHitsMaker.h.
Referenced by EcalBarrelRecHitsMaker(), and init().
|
private |
Definition at line 43 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 45 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().