#include <EcalTrigPrimFunctionalAlgo.h>
Public Member Functions | |
EcalTrigPrimFunctionalAlgo (const EcalTrigTowerConstituentsMap *eTTmap, const CaloSubdetectorGeometry *endcapGeometry, const EcalElectronicsMapping *theMapping, int binofmax, bool tcpFormat, bool debug, bool famos, bool TPinfoPrintout) | |
EcalTrigPrimFunctionalAlgo (const EcalElectronicsMapping *theMapping, int binofmax, bool tcpFormat, bool debug, bool famos, bool TPinfoPrintout) | |
void | run (const EBDigiCollection *col, EcalTrigPrimDigiCollection &result, EcalTrigPrimDigiCollection &resultTcp) |
void | run (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 (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 EcalTPGOddWeightIdMap *ecaltpgOddWeightMap, const EcalTPGOddWeightGroup *ecaltpgOddWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGCrystalStatus *ecaltpgBadX, const EcalTPGStripStatus *ecaltpgStripStatus, const EcalTPGTPMode *ecaltpgTPMode) |
void | setPointers2 (const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike, const EcalTPGTPMode *ecaltpgTPMode) |
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 () |
template<class T > | |
void | initStructures (std::vector< std::vector< std::pair< int, std::vector< T >>>> &towMap) |
Private Attributes | |
bool | barrelOnly_ |
int | binOfMaximum_ |
bool | debug_ |
std::unique_ptr< EcalFenixStrip > | estrip_ |
std::unique_ptr< EcalFenixTcp > | etcp_ |
const EcalTrigTowerConstituentsMap * | eTTmap_ = nullptr |
bool | famos_ |
std::vector< std::pair< int, EcalTrigTowerDetId > > | hitTowers_ |
int | maxNrSamples_ |
int | nrTowers_ |
std::vector< std::vector< int > > | striptp_ |
bool | tcpFormat_ |
const CaloSubdetectorGeometry * | theEndcapGeometry_ = nullptr |
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_ |
bool | tpInfoPrintout_ |
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 other algorithms Structure is very close to electronics
Definition at line 46 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
|
private |
EcalTrigPrimFunctionalAlgo::EcalTrigPrimFunctionalAlgo | ( | const EcalTrigTowerConstituentsMap * | eTTmap, |
const CaloSubdetectorGeometry * | endcapGeometry, | ||
const EcalElectronicsMapping * | theMapping, | ||
int | binofmax, | ||
bool | tcpFormat, | ||
bool | debug, | ||
bool | famos, | ||
bool | TPinfoPrintout | ||
) |
Definition at line 50 of file EcalTrigPrimFunctionalAlgo.cc.
References famos_, init(), and maxNrSamples_.
|
explicit |
Definition at line 76 of file EcalTrigPrimFunctionalAlgo.cc.
References famos_, init(), and maxNrSamples_.
|
virtual |
Definition at line 111 of file EcalTrigPrimFunctionalAlgo.cc.
|
private |
Definition at line 339 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 297 of file EcalTrigPrimFunctionalAlgo.h.
References cuy::col, TrendClient_cfi::Digi, findStripNr(), 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 128 of file EcalTrigPrimFunctionalAlgo.cc.
References LEDCalibrationChannels::ieta, dqmiodumpmetadata::n, and nbMaxStrips_.
Referenced by fillMap().
|
private |
Definition at line 138 of file EcalTrigPrimFunctionalAlgo.cc.
References EcalElectronicsMapping::getTriggerElectronicsId(), EcalTriggerElectronicsId::pseudoStripId(), and theMapping_.
|
inlineprivate |
Definition at line 131 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap().
|
inlineprivate |
Definition at line 133 of file EcalTrigPrimFunctionalAlgo.h.
References LEDCalibrationChannels::iphi, and ecaldqm::zside().
|
private |
Definition at line 95 of file EcalTrigPrimFunctionalAlgo.cc.
References binOfMaximum_, debug_, estrip_, etcp_, famos_, hitTowers_, initStructures(), maxNrSamples_, maxNrSamplesOut_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, tcpFormat_, theMapping_, towerMapEB_, towerMapEE_, towtp2_, towtp_, and tpInfoPrintout_.
Referenced by EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 348 of file EcalTrigPrimFunctionalAlgo.h.
References mps_fire::i, maxNrSamples_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, and striptp_.
Referenced by init().
void EcalTrigPrimFunctionalAlgo::run | ( | const EBDigiCollection * | col, |
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 113 of file EcalTrigPrimFunctionalAlgo.cc.
References cuy::col, mps_fire::result, run_part1_EB(), run_part2(), and towerMapEB_.
void EcalTrigPrimFunctionalAlgo::run | ( | const EEDigiCollection * | col, |
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 121 of file EcalTrigPrimFunctionalAlgo.cc.
References cuy::col, mps_fire::result, run_part1_EE(), run_part2(), and towerMapEE_.
void EcalTrigPrimFunctionalAlgo::run_part1_EB | ( | EBDigiCollection const * | col | ) |
Definition at line 146 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 152 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), cuy::col, fillMap(), and towerMapEE_.
Referenced by run().
void EcalTrigPrimFunctionalAlgo::run_part2 | ( | Coll const * | col, |
std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi >>>> & | towerMap, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 183 of file EcalTrigPrimFunctionalAlgo.h.
References binOfMaximum_, EcalTriggerPrimitiveDigi::compressedEt(), hgcalPerformanceValidation::df, TrendClient_cfi::Digi, EcalEndcap, estrip_, EgHLTOffHistBins_cfi::et, etcp_, first, castor_dqm_sourceclient-live_cfg::firstSample, hitTowers_, mps_fire::i, EcalTrigTowerDetId::ieta(), EcalTrigTowerDetId::ietaAbs(), EcalTrigTowerDetId::iphi(), CastorRawToDigi_cfi::lastSample, LogDebug, nrSamples_, nrTowers_, phi, edm::SortedCollection< T, SORT >::push_back(), mps_fire::result, edm::second(), EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), striptp_, EcalTrigTowerDetId::subDet(), tcpFormat_, towtp2_, towtp_, tpInfoPrintout_, and EcalTrigTowerDetId::zside().
Referenced by run().
|
inline |
Definition at line 78 of file EcalTrigPrimFunctionalAlgo.h.
References estrip_.
|
inline |
Definition at line 101 of file EcalTrigPrimFunctionalAlgo.h.
References etcp_.
|
private |
Definition at line 153 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
Definition at line 149 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 154 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 140 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), and setPointers().
|
private |
Definition at line 141 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), and setPointers2().
|
private |
Definition at line 143 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
Definition at line 155 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), and init().
|
private |
Definition at line 171 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), init(), and run_part2().
|
private |
Definition at line 150 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 160 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
staticprivate |
Definition at line 161 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 162 of file EcalTrigPrimFunctionalAlgo.h.
|
staticprivate |
Definition at line 158 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by run_part2().
|
private |
Definition at line 165 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), and run_part2().
|
private |
Definition at line 168 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by initStructures(), and run_part2().
|
private |
Definition at line 152 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 144 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
Definition at line 145 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by findStripNr(), and init().
|
private |
Definition at line 147 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 169 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EB().
|
private |
Definition at line 170 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EE().
|
private |
Definition at line 173 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 172 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().