#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 49 of file EcalTrigPrimFunctionalAlgo.h.
|
private |
|
private |
|
explicit |
Definition at line 51 of file EcalTrigPrimFunctionalAlgo.cc.
References famos_, init(), and maxNrSamples_.
|
virtual |
Definition at line 90 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 281 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 240 of file EcalTrigPrimFunctionalAlgo.h.
References findStripNr(), plotBeamSpotDB::first, getIndex(), hitTowers_, mps_fire::i, diffTreeTool::index, LogDebug, nbMaxXtals_, nrTowers_, hcalTTPDigis_cfi::samples, and edm::second().
Referenced by run_part1_EB(), run_part1_EE(), and setPointers2().
|
private |
Definition at line 114 of file EcalTrigPrimFunctionalAlgo.cc.
References gen::n, and nbMaxStrips_.
Referenced by fillMap(), and setPointers2().
|
private |
Definition at line 122 of file EcalTrigPrimFunctionalAlgo.cc.
References EcalElectronicsMapping::getTriggerElectronicsId(), EcalTriggerElectronicsId::pseudoStripId(), and theMapping_.
|
inlineprivate |
Definition at line 95 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap().
|
inlineprivate |
|
private |
Definition at line 61 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 289 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 130 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), fillMap(), and towerMapEB_.
Referenced by ~EcalTrigPrimFunctionalAlgo().
void EcalTrigPrimFunctionalAlgo::run_part1_EE | ( | EEDigiCollection const * | col | ) |
Definition at line 136 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 142 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(), diffTreeTool::index, 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 67 of file EcalTrigPrimFunctionalAlgo.h.
References estrip_, and EcalFenixStrip::setPointers().
|
inline |
Definition at line 71 of file EcalTrigPrimFunctionalAlgo.h.
References clean(), etcp_, fillMap(), findStripNr(), init(), initStructures(), and EcalFenixTcp::setPointers().
|
private |
Definition at line 116 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 112 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 117 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 103 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 104 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers2(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 106 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 118 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), and init().
|
private |
Definition at line 131 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), init(), and run_part2().
|
private |
Definition at line 113 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 121 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
staticprivate |
Definition at line 122 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 123 of file EcalTrigPrimFunctionalAlgo.h.
|
staticprivate |
Definition at line 120 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by run_part2().
|
private |
Definition at line 125 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), and run_part2().
|
private |
Definition at line 128 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by initStructures(), and run_part2().
|
private |
Definition at line 115 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 107 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 108 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by findStripNr(), and init().
|
private |
Definition at line 110 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 129 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part1_EB(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 130 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part1_EE(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 133 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 132 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().