#include <EcalTrigPrimFunctionalAlgo.h>
Public Member Functions | |
EcalTrigPrimFunctionalAlgo (const edm::EventSetup &setup, int binofmax, bool tcpFormat, bool barrelOnly, bool debug, bool famos) | |
void | run (const edm::EventSetup &, const EBDigiCollection *col, EcalTrigPrimDigiCollection &result, EcalTrigPrimDigiCollection &resultTcp) |
void | run (const edm::EventSetup &, const EEDigiCollection *col, EcalTrigPrimDigiCollection &result, EcalTrigPrimDigiCollection &resultTcp) |
void | run_part1_EB (EBDigiCollection const *col) |
void | run_part1_EE (EEDigiCollection const *col) |
template<class Coll > | |
void | run_part2 (const edm::EventSetup &, Coll const *col, std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi >>>> &towerMap, EcalTrigPrimDigiCollection &result, EcalTrigPrimDigiCollection &resultTcp) |
void | setPointers (const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGPedestals *ecaltpPed, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGCrystalStatus *ecaltpgBadX, const EcalTPGStripStatus *ecaltpgStripStatus) |
void | setPointers2 (const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike) |
virtual | ~EcalTrigPrimFunctionalAlgo () |
Private Types | |
enum | { nbMaxStrips_ = 5 } |
enum | { nbMaxXtals_ = 5 } |
Private Member Functions | |
template<class T > | |
void | clean (std::vector< std::vector< std::pair< int, std::vector< T >>>> &towerMap) |
template<class Coll > | |
void | fillMap (Coll const *col, std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi >>>> &towerMap) |
int | findStripNr (const EBDetId &id) |
int | findStripNr (const EEDetId &id) |
int | getIndex (const EBDigiCollection *, EcalTrigTowerDetId &id) |
int | getIndex (const EEDigiCollection *, EcalTrigTowerDetId &id) |
void | init (const edm::EventSetup &) |
template<class T > | |
void | initStructures (std::vector< std::vector< std::pair< int, std::vector< T >>>> &towMap) |
Private Attributes | |
bool | barrelOnly_ |
int | binOfMaximum_ |
bool | debug_ |
EcalFenixStrip * | estrip_ |
EcalFenixTcp * | etcp_ |
edm::ESHandle< EcalTrigTowerConstituentsMap > | eTTmap_ |
bool | famos_ |
std::vector< std::pair< int, EcalTrigTowerDetId > > | hitTowers_ |
int | maxNrSamples_ |
int | nrTowers_ |
std::vector< std::vector< int > > | striptp_ |
bool | tcpFormat_ |
const CaloSubdetectorGeometry * | theEndcapGeometry |
const EcalElectronicsMapping * | theMapping_ |
float | threshold |
std::vector< std::vector< std::pair< int, std::vector< EBDataFrame > > > > | towerMapEB_ |
std::vector< std::vector< std::pair< int, std::vector< EEDataFrame > > > > | towerMapEE_ |
std::vector< EcalTriggerPrimitiveSample > | towtp2_ |
std::vector< EcalTriggerPrimitiveSample > | towtp_ |
Static Private Attributes | |
static const unsigned int | maxNrSamplesOut_ = 10 |
static const unsigned int | maxNrTowers_ = 2448 |
static const unsigned int | maxNrTPs_ = 2448 |
static const unsigned int | nrSamples_ = 5 |
EcalTrigPrimFunctionalAlgo is the main algorithm class for TPG It coordinates all the aother algorithms Structure is as close as possible to electronics
EcalTrigPrimFunctionalAlgo is the main algorithm class for TPG It coordinates all the aother algorithms Structure is very close to electronics
Definition at line 47 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
|
private |
|
explicit |
Definition at line 51 of file EcalTrigPrimFunctionalAlgo.cc.
References famos_, init(), and maxNrSamples_.
|
virtual |
|
private |
Definition at line 314 of file EcalTrigPrimFunctionalAlgo.h.
References mps_fire::i, dqmiolumiharvest::j, maxNrTowers_, and nbMaxStrips_.
Referenced by run_part1_EB(), and run_part1_EE().
|
private |
Definition at line 272 of file EcalTrigPrimFunctionalAlgo.h.
References cuy::col, TrendClient_cfi::Digi, findStripNr(), dqmdumpme::first, getIndex(), hitTowers_, mps_fire::i, LogDebug, nbMaxXtals_, nrTowers_, EgammaValidation_cff::samples, and edm::second().
Referenced by run_part1_EB(), and run_part1_EE().
|
private |
Definition at line 118 of file EcalTrigPrimFunctionalAlgo.cc.
References LEDCalibrationChannels::ieta, dqmiodumpmetadata::n, and nbMaxStrips_.
Referenced by fillMap().
|
private |
Definition at line 128 of file EcalTrigPrimFunctionalAlgo.cc.
References EcalElectronicsMapping::getTriggerElectronicsId(), EcalTriggerElectronicsId::pseudoStripId(), and theMapping_.
|
inlineprivate |
Definition at line 116 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap().
|
inlineprivate |
Definition at line 118 of file EcalTrigPrimFunctionalAlgo.h.
References LEDCalibrationChannels::iphi, and ecaldqm::zside().
|
private |
Definition at line 68 of file EcalTrigPrimFunctionalAlgo.cc.
References barrelOnly_, binOfMaximum_, debug_, estrip_, etcp_, eTTmap_, famos_, get, hitTowers_, initStructures(), maxNrSamples_, maxNrSamplesOut_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, edm::ESHandle< T >::product(), singleTopDQM_cfi::setup, tcpFormat_, theEndcapGeometry, theMapping_, towerMapEB_, towerMapEE_, towtp2_, and towtp_.
Referenced by EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 323 of file EcalTrigPrimFunctionalAlgo.h.
References mps_fire::i, maxNrSamples_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, and striptp_.
Referenced by init().
void EcalTrigPrimFunctionalAlgo::run | ( | const edm::EventSetup & | setup, |
const EBDigiCollection * | col, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 101 of file EcalTrigPrimFunctionalAlgo.cc.
References cuy::col, mps_fire::result, run_part1_EB(), run_part2(), singleTopDQM_cfi::setup, and towerMapEB_.
void EcalTrigPrimFunctionalAlgo::run | ( | const edm::EventSetup & | setup, |
const EEDigiCollection * | col, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 110 of file EcalTrigPrimFunctionalAlgo.cc.
References cuy::col, mps_fire::result, run_part1_EE(), run_part2(), singleTopDQM_cfi::setup, and towerMapEE_.
void EcalTrigPrimFunctionalAlgo::run_part1_EB | ( | EBDigiCollection const * | col | ) |
Definition at line 136 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), cuy::col, fillMap(), and towerMapEB_.
Referenced by run().
void EcalTrigPrimFunctionalAlgo::run_part1_EE | ( | EEDigiCollection const * | col | ) |
Definition at line 142 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), cuy::col, fillMap(), and towerMapEE_.
Referenced by run().
void EcalTrigPrimFunctionalAlgo::run_part2 | ( | const edm::EventSetup & | setup, |
Coll const * | col, | ||
std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi >>>> & | towerMap, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 167 of file EcalTrigPrimFunctionalAlgo.h.
References binOfMaximum_, EcalTriggerPrimitiveDigi::compressedEt(), hgcalPerformanceValidation::df, TrendClient_cfi::Digi, EcalEndcap, estrip_, EgHLTOffHistBins_cfi::et, etcp_, dqmdumpme::first, castor_dqm_sourceclient-live_cfg::firstSample, EcalFenixStrip::getFGVB(), hitTowers_, mps_fire::i, EcalTrigTowerDetId::ietaAbs(), EcalTrigTowerDetId::iphi(), CastorRawToDigi_cfi::lastSample, LogDebug, nrSamples_, nrTowers_, phi, EcalFenixTcp::process(), EcalFenixStrip::process(), edm::SortedCollection< T, SORT >::push_back(), mps_fire::result, edm::second(), EcalFenixStripFgvbEE::setbadStripMissing(), EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), singleTopDQM_cfi::setup, striptp_, EcalTrigTowerDetId::subDet(), tcpFormat_, towtp2_, towtp_, and EcalTrigTowerDetId::zside().
Referenced by run().
|
inline |
Definition at line 71 of file EcalTrigPrimFunctionalAlgo.h.
References estrip_, and EcalFenixStrip::setPointers().
|
inline |
Definition at line 88 of file EcalTrigPrimFunctionalAlgo.h.
References etcp_, and EcalFenixTcp::setPointers().
|
private |
Definition at line 138 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 134 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 139 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 125 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 126 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers2(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 128 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 140 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), and init().
|
private |
Definition at line 155 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), init(), and run_part2().
|
private |
Definition at line 135 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 144 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
staticprivate |
Definition at line 145 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 146 of file EcalTrigPrimFunctionalAlgo.h.
|
staticprivate |
Definition at line 142 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by run_part2().
|
private |
Definition at line 149 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), and run_part2().
|
private |
Definition at line 152 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by initStructures(), and run_part2().
|
private |
Definition at line 137 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 129 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 130 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by findStripNr(), and init().
|
private |
Definition at line 132 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 153 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EB().
|
private |
Definition at line 154 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EE().
|
private |
Definition at line 157 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 156 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().