#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 |
Definition at line 97 of file EcalTrigPrimFunctionalAlgo.cc.
References cuy::col, estrip_, etcp_, mps_fire::result, run(), run_part1_EB(), run_part1_EE(), run_part2(), GeneralSetup::setup(), towerMapEB_, and towerMapEE_.
|
private |
Definition at line 333 of file EcalTrigPrimFunctionalAlgo.h.
References mps_fire::i, maxNrTowers_, and nbMaxStrips_.
Referenced by run_part1_EB(), run_part1_EE(), and setPointers2().
|
private |
Definition at line 287 of file EcalTrigPrimFunctionalAlgo.h.
References findStripNr(), plotBeamSpotDB::first, getIndex(), hitTowers_, mps_fire::i, LogDebug, nbMaxXtals_, nrTowers_, hcalTTPDigis_cfi::samples, and edm::second().
Referenced by run_part1_EB(), run_part1_EE(), and setPointers2().
|
private |
Definition at line 120 of file EcalTrigPrimFunctionalAlgo.cc.
References gen::n, and nbMaxStrips_.
Referenced by fillMap(), and setPointers2().
|
private |
Definition at line 131 of file EcalTrigPrimFunctionalAlgo.cc.
References EcalElectronicsMapping::getTriggerElectronicsId(), EcalTriggerElectronicsId::pseudoStripId(), and theMapping_.
|
inlineprivate |
Definition at line 113 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap().
|
inlineprivate |
Definition at line 117 of file EcalTrigPrimFunctionalAlgo.h.
References ecaldqm::zside().
|
private |
Definition at line 66 of file EcalTrigPrimFunctionalAlgo.cc.
References barrelOnly_, binOfMaximum_, debug_, estrip_, etcp_, eTTmap_, famos_, edm::EventSetup::get(), hitTowers_, initStructures(), maxNrSamples_, maxNrSamplesOut_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, edm::ESHandle< T >::product(), tcpFormat_, theEndcapGeometry, theMapping_, towerMapEB_, towerMapEE_, towtp2_, and towtp_.
Referenced by EcalTrigPrimFunctionalAlgo(), and setPointers2().
|
private |
Definition at line 343 of file EcalTrigPrimFunctionalAlgo.h.
References mps_fire::i, maxNrSamples_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, and striptp_.
Referenced by init(), and setPointers2().
void EcalTrigPrimFunctionalAlgo::run | ( | const edm::EventSetup & | , |
const EBDigiCollection * | col, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Referenced by ~EcalTrigPrimFunctionalAlgo().
void EcalTrigPrimFunctionalAlgo::run | ( | const edm::EventSetup & | , |
const EEDigiCollection * | col, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
void EcalTrigPrimFunctionalAlgo::run_part1_EB | ( | EBDigiCollection const * | col | ) |
Definition at line 140 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), fillMap(), and towerMapEB_.
Referenced by ~EcalTrigPrimFunctionalAlgo().
void EcalTrigPrimFunctionalAlgo::run_part1_EE | ( | EEDigiCollection const * | col | ) |
Definition at line 146 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), fillMap(), and towerMapEE_.
Referenced by ~EcalTrigPrimFunctionalAlgo().
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 171 of file EcalTrigPrimFunctionalAlgo.h.
References binOfMaximum_, EcalTriggerPrimitiveDigi::compressedEt(), EcalEndcap, estrip_, stringResolutionProvider_cfi::et, etcp_, plotBeamSpotDB::first, CastorSimpleReconstructor_cfi::firstSample, EcalFenixStrip::getFGVB(), hitTowers_, mps_fire::i, EcalTrigTowerDetId::ietaAbs(), EcalTrigTowerDetId::iphi(), LogDebug, nrSamples_, nrTowers_, phi, EcalFenixTcp::process(), EcalFenixStrip::process(), edm::SortedCollection< T, SORT >::push_back(), edm::second(), EcalFenixStripFgvbEE::setbadStripMissing(), EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), striptp_, EcalTrigTowerDetId::subDet(), tcpFormat_, towtp2_, towtp_, and EcalTrigTowerDetId::zside().
Referenced by ~EcalTrigPrimFunctionalAlgo().
|
inline |
Definition at line 71 of file EcalTrigPrimFunctionalAlgo.h.
References estrip_, and EcalFenixStrip::setPointers().
|
inline |
Definition at line 83 of file EcalTrigPrimFunctionalAlgo.h.
References clean(), etcp_, fillMap(), findStripNr(), init(), initStructures(), and EcalFenixTcp::setPointers().
|
private |
Definition at line 137 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 133 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 138 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 124 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 125 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers2(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 127 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 139 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), and init().
|
private |
Definition at line 159 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), init(), and run_part2().
|
private |
Definition at line 134 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 145 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
staticprivate |
Definition at line 147 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 148 of file EcalTrigPrimFunctionalAlgo.h.
|
staticprivate |
Definition at line 142 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by run_part2().
|
private |
Definition at line 151 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), and run_part2().
|
private |
Definition at line 154 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by initStructures(), and run_part2().
|
private |
Definition at line 136 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 128 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 129 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by findStripNr(), and init().
|
private |
Definition at line 131 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 156 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part1_EB(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 158 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part1_EE(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 161 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 160 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().