#include <EcalEndcapRecHitsMaker.h>
Public Member Functions | |
EcalEndcapRecHitsMaker (edm::ParameterSet const &p) | |
void | init (const edm::EventSetup &es, bool dodigis, bool domiscalib) |
void | loadEcalEndcapRecHits (edm::Event &iEvent, EERecHitCollection &ecalHits, EEDigiCollection &ecalDigis, RandomEngineAndDistribution const *) |
~EcalEndcapRecHitsMaker () | |
Private Member Functions | |
void | clean () |
void | geVtoGainAdc (float e, unsigned &gain, unsigned &adc) const |
bool | isHighInterest (const EEDetId &icell) |
void | loadPCaloHits (const edm::Event &iEvent, RandomEngineAndDistribution const *) |
void | noisifySuperCrystals (int tthi, RandomEngineAndDistribution const *) |
void | noisifyTriggerTowers (RandomEngineAndDistribution const *) |
void | randomNoisifier (RandomEngineAndDistribution const *) |
int | SChashedIndex (int SC, int z) const |
int | SChashedIndex (const EEDetId &detid) const |
int | towerOf (const EEDetId &detid) const |
int | towerOf (int hid) const |
int | TThashedIndexforEE (int originalhi) const |
int | TThashedIndexforEE (const EcalTrigTowerDetId &detid) const |
Private Attributes | |
float | adcToGeV_ |
std::vector< int > | applyZSCells_ |
double | calibfactor_ |
std::vector< std::vector< int > > | CrystalsinSC_ |
bool | doCustomHighNoise_ |
bool | doDigis_ |
bool | doMisCalib_ |
double | EEHotFraction_ |
std::vector< uint32_t > | endcapRawId_ |
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_ |
double | noise_ |
double | noiseADC_ |
std::vector< float > | noisesigma_ |
bool | noisified_ |
double | refactor_ |
double | refactor_mean_ |
float | sat_ |
std::vector< int > | SCHighInterest_ |
std::vector< std::vector< int > > | SCofTT_ |
std::vector< float > | sinTheta_ |
float | SRThreshold_ |
float | t1_ |
float | t2_ |
std::vector< float > | theCalibConstants_ |
std::vector< float > | theCalorimeterHits_ |
std::vector< int > | theFiredCells_ |
std::vector< int > | theFiredSC_ |
std::vector< int > | theFiredTTs_ |
std::vector< EcalTrigTowerDetId > | theTTDetIds_ |
double | threshold_ |
std::vector< int > | towerOf_ |
std::vector< bool > | treatedSC_ |
std::vector< std::vector< int > > | TTofSC_ |
std::vector< float > | TTTEnergy_ |
Definition at line 20 of file EcalEndcapRecHitsMaker.h.
EcalEndcapRecHitsMaker::EcalEndcapRecHitsMaker | ( | edm::ParameterSet const & | p | ) |
Definition at line 30 of file EcalEndcapRecHitsMaker.cc.
References applyZSCells_, alignmentValidation::c1, calibfactor_, CrystalsinSC_, doCustomHighNoise_, edm::ParameterSet::getParameter(), highNoiseParameters_, inputCol_, EEDetId::kEEhalf, EEDetId::kSizeForDenseIndexing, noise_, noiseADC_, noisified_, refactor_, refactor_mean_, SCHighInterest_, SCofTT_, sinTheta_, SRThreshold_, theCalorimeterHits_, theTTDetIds_, threshold_, towerOf_, treatedSC_, TTofSC_, and TTTEnergy_.
EcalEndcapRecHitsMaker::~EcalEndcapRecHitsMaker | ( | ) |
Definition at line 62 of file EcalEndcapRecHitsMaker.cc.
|
private |
Definition at line 66 of file EcalEndcapRecHitsMaker.cc.
References applyZSCells_, noise_, noisified_, SCHighInterest_, findQualityFiles::size, theCalorimeterHits_, theFiredCells_, theFiredSC_, theFiredTTs_, treatedSC_, and TTTEnergy_.
Referenced by loadEcalEndcapRecHits().
|
private |
Definition at line 517 of file EcalEndcapRecHitsMaker.cc.
References geVToAdc1_, geVToAdc2_, geVToAdc3_, maxAdc_, min(), minAdc_, t1_, and t2_.
Referenced by loadEcalEndcapRecHits().
void EcalEndcapRecHitsMaker::init | ( | const edm::EventSetup & | es, |
bool | dodigis, | ||
bool | domiscalib | ||
) |
Definition at line 349 of file EcalEndcapRecHitsMaker.cc.
References adcToGeV_, begin, calibfactor_, CrystalsinSC_, doCustomHighNoise_, doDigis_, doMisCalib_, DetId::Ecal, EcalEndcap, EEHotFraction_, end, EcalCondObjectContainer< T >::endcapItems(), endcapRawId_, eTTmap_, spr::find(), edm::EventSetup::get(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), CaloSubdetectorGeometry::getValidDetIds(), geVToAdc1_, geVToAdc2_, geVToAdc3_, EEDetId::hashedIndex(), highNoiseParameters_, ICMC_, EEDetId::kEEhalf, EEDetId::kSizeForDenseIndexing, maxAdc_, timingPdfMaker::mean, meanNoiseSigmaEt_, minAdc_, myGaussianTailGenerator_, noise_, noiseADC_, noisesigma_, edm::ESHandle< class >::product(), refactor_, refactor_mean_, plotscripts::rms(), sat_, SChashedIndex(), SCofTT_, funct::sin(), sinTheta_, findQualityFiles::size, mathSSE::sqrt(), t1_, t2_, theCalibConstants_, PV3DBase< T, PVType, FrameType >::theta(), theTTDetIds_, threshold_, EcalTrigTowerConstituentsMap::towerOf(), towerOf_, TThashedIndexforEE(), and TTofSC_.
Referenced by CaloRecHitsProducer::beginRun().
|
private |
Definition at line 538 of file EcalEndcapRecHitsMaker.cc.
References query::result, SChashedIndex(), SCHighInterest_, findQualityFiles::size, SRThreshold_, theFiredSC_, TTofSC_, and TTTEnergy_.
Referenced by loadEcalEndcapRecHits().
void EcalEndcapRecHitsMaker::loadEcalEndcapRecHits | ( | edm::Event & | iEvent, |
EERecHitCollection & | ecalHits, | ||
EEDigiCollection & | ecalDigis, | ||
RandomEngineAndDistribution const * | random | ||
) |
Definition at line 107 of file EcalEndcapRecHitsMaker.cc.
References ecalMGPA::adc(), applyZSCells_, edm::DataFrameContainer::back(), clean(), doDigis_, endcapRawId_, relval_parameters_module::energy, geVtoGainAdc(), ICMC_, isHighInterest(), loadPCaloHits(), noisified_, edm::DataFrameContainer::push_back(), edm::SortedCollection< T, SORT >::push_back(), edm::DataFrameContainer::reserve(), edm::SortedCollection< T, SORT >::reserve(), sat_, theCalorimeterHits_, theFiredCells_, and threshold_.
Referenced by CaloRecHitsProducer::produce().
|
private |
Definition at line 160 of file EcalEndcapRecHitsMaker.cc.
References calib, calibfactor_, doMisCalib_, relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), edm::Event::getByLabel(), ecalpyutils::hashedIndex(), inputCol_, EEDetId::kEEhalf, HLT_25ns14e33_v1_cff::noise, noise_, noisesigma_, noisified_, noisifyTriggerTowers(), edm::Handle< T >::product(), randomNoisifier(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, towerOf_, and TTTEnergy_.
Referenced by loadEcalEndcapRecHits().
|
private |
Definition at line 224 of file EcalEndcapRecHitsMaker.cc.
References calib, calibfactor_, prof2calltree::count, CrystalsinSC_, doMisCalib_, relval_parameters_module::energy, RandomEngineAndDistribution::gaussShoot(), EEDetId::kEEhalf, HLT_25ns14e33_v1_cff::noise, noise_, noisesigma_, SCofTT_, sinTheta_, findQualityFiles::size, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, towerOf_, treatedSC_, and TTTEnergy_.
Referenced by noisifyTriggerTowers().
|
private |
Definition at line 209 of file EcalEndcapRecHitsMaker.cc.
References noise_, noisifySuperCrystals(), nTT, and theFiredTTs_.
Referenced by loadPCaloHits().
|
private |
Definition at line 274 of file EcalEndcapRecHitsMaker.cc.
References adcToGeV_, applyZSCells_, calib, calibfactor_, doCustomHighNoise_, doMisCalib_, EEHotFraction_, relval_parameters_module::energy, RandomEngineAndDistribution::flatShoot(), RandomEngineAndDistribution::gaussShoot(), highNoiseParameters_, ICMC_, EEDetId::kEEhalf, EEDetId::kSizeForDenseIndexing, timingPdfMaker::mean, myGaussianTailGenerator_, noise_, noisesigma_, RandomEngineAndDistribution::poissonShoot(), GaussianTail::shoot(), sinTheta_, theCalibConstants_, theCalorimeterHits_, theFiredCells_, theFiredTTs_, towerOf_, and TTTEnergy_.
Referenced by loadPCaloHits().
|
inlineprivate |
|
inlineprivate |
Definition at line 40 of file EcalEndcapRecHitsMaker.h.
References EEDetId::isc(), and EEDetId::zside().
|
inlineprivate |
Definition at line 43 of file EcalEndcapRecHitsMaker.h.
References EEDetId::hashedIndex(), and towerOf_.
|
inlineprivate |
|
inlineprivate |
Definition at line 35 of file EcalEndcapRecHitsMaker.h.
Referenced by init().
|
inlineprivate |
Definition at line 36 of file EcalEndcapRecHitsMaker.h.
References EcalTrigTowerDetId::hashedIndex().
|
private |
Definition at line 79 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and randomNoisifier().
|
private |
Definition at line 69 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), loadEcalEndcapRecHits(), and randomNoisifier().
|
private |
Definition at line 59 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 106 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and noisifySuperCrystals().
|
private |
Definition at line 123 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and randomNoisifier().
|
private |
Definition at line 52 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and loadEcalEndcapRecHits().
|
private |
Definition at line 53 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 60 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and randomNoisifier().
|
private |
Definition at line 75 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and loadEcalEndcapRecHits().
|
private |
Definition at line 85 of file EcalEndcapRecHitsMaker.h.
Referenced by init().
|
private |
Definition at line 80 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 80 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 80 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 122 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and randomNoisifier().
|
private |
Definition at line 118 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), loadEcalEndcapRecHits(), and randomNoisifier().
|
private |
Definition at line 51 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and loadPCaloHits().
|
private |
Definition at line 82 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 112 of file EcalEndcapRecHitsMaker.h.
Referenced by init().
|
private |
Definition at line 81 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 61 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and randomNoisifier().
|
private |
Definition at line 58 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), init(), loadPCaloHits(), noisifySuperCrystals(), noisifyTriggerTowers(), and randomNoisifier().
|
private |
Definition at line 114 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and init().
|
private |
Definition at line 111 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 62 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), loadEcalEndcapRecHits(), and loadPCaloHits().
|
private |
Definition at line 54 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and init().
|
private |
Definition at line 55 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and init().
|
private |
Definition at line 83 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), and loadEcalEndcapRecHits().
|
private |
Definition at line 98 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), and isHighInterest().
|
private |
Definition at line 93 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and noisifySuperCrystals().
|
private |
Definition at line 108 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 116 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and isHighInterest().
|
private |
Definition at line 83 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 83 of file EcalEndcapRecHitsMaker.h.
Referenced by geVtoGainAdc(), and init().
|
private |
Definition at line 72 of file EcalEndcapRecHitsMaker.h.
Referenced by init(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 65 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), loadEcalEndcapRecHits(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 67 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), loadEcalEndcapRecHits(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().
|
private |
Definition at line 100 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), and isHighInterest().
|
private |
Definition at line 102 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), loadPCaloHits(), noisifySuperCrystals(), noisifyTriggerTowers(), and randomNoisifier().
|
private |
Definition at line 91 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), and init().
|
private |
Definition at line 57 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and loadEcalEndcapRecHits().
|
private |
Definition at line 89 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), loadPCaloHits(), noisifySuperCrystals(), randomNoisifier(), and towerOf().
|
private |
Definition at line 97 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), and noisifySuperCrystals().
|
private |
Definition at line 95 of file EcalEndcapRecHitsMaker.h.
Referenced by EcalEndcapRecHitsMaker(), init(), and isHighInterest().
|
private |
Definition at line 104 of file EcalEndcapRecHitsMaker.h.
Referenced by clean(), EcalEndcapRecHitsMaker(), isHighInterest(), loadPCaloHits(), noisifySuperCrystals(), and randomNoisifier().