#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 48 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 estrip_, and etcp_.
|
private |
Definition at line 280 of file EcalTrigPrimFunctionalAlgo.h.
References i, j, maxNrTowers_, and nbMaxStrips_.
Referenced by run_part1_EB(), and run_part1_EE().
|
private |
Definition at line 239 of file EcalTrigPrimFunctionalAlgo.h.
References findStripNr(), plotBeamSpotDB::first, getIndex(), hitTowers_, i, cmsHarvester::index, LogDebug, nbMaxXtals_, nrTowers_, and edm::second().
Referenced by run_part1_EB(), and run_part1_EE().
|
private |
Definition at line 114 of file EcalTrigPrimFunctionalAlgo.cc.
References gen::n, and nbMaxStrips_.
Referenced by fillMap().
|
private |
Definition at line 122 of file EcalTrigPrimFunctionalAlgo.cc.
References EcalElectronicsMapping::getTriggerElectronicsId(), EcalTriggerElectronicsId::pseudoStripId(), and theMapping_.
|
inlineprivate |
Definition at line 94 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< class >::product(), tcpFormat_, theEndcapGeometry, theMapping_, towerMapEB_, towerMapEE_, towtp2_, and towtp_.
Referenced by EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 288 of file EcalTrigPrimFunctionalAlgo.h.
References 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 96 of file EcalTrigPrimFunctionalAlgo.cc.
References run_part1_EB(), run_part2(), and towerMapEB_.
void EcalTrigPrimFunctionalAlgo::run | ( | const edm::EventSetup & | setup, |
const EEDigiCollection * | col, | ||
EcalTrigPrimDigiCollection & | result, | ||
EcalTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 105 of file EcalTrigPrimFunctionalAlgo.cc.
References run_part1_EE(), run_part2(), and towerMapEE_.
void EcalTrigPrimFunctionalAlgo::run_part1_EB | ( | EBDigiCollection const * | col | ) |
Definition at line 130 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), fillMap(), and towerMapEB_.
Referenced by run().
void EcalTrigPrimFunctionalAlgo::run_part1_EE | ( | EEDigiCollection const * | col | ) |
Definition at line 136 of file EcalTrigPrimFunctionalAlgo.cc.
References clean(), 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 141 of file EcalTrigPrimFunctionalAlgo.h.
References binOfMaximum_, EcalTriggerPrimitiveDigi::compressedEt(), EcalEndcap, estrip_, etcp_, plotBeamSpotDB::first, castor_dqm_sourceclient_file_cfg::firstSample, EcalFenixStrip::getFGVB(), hitTowers_, i, EcalTrigTowerDetId::ietaAbs(), cmsHarvester::index, EcalTrigTowerDetId::iphi(), castor_dqm_sourceclient_file_cfg::lastSample, 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 run().
|
inline |
Definition at line 66 of file EcalTrigPrimFunctionalAlgo.h.
References estrip_, and EcalFenixStrip::setPointers().
|
inline |
Definition at line 70 of file EcalTrigPrimFunctionalAlgo.h.
References etcp_, and EcalFenixTcp::setPointers().
|
private |
Definition at line 115 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 111 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 116 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 102 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 103 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run_part2(), setPointers2(), and ~EcalTrigPrimFunctionalAlgo().
|
private |
Definition at line 105 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 117 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), and init().
|
private |
Definition at line 130 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), init(), and run_part2().
|
private |
Definition at line 112 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by EcalTrigPrimFunctionalAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 120 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
staticprivate |
Definition at line 121 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 122 of file EcalTrigPrimFunctionalAlgo.h.
|
staticprivate |
Definition at line 119 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by run_part2().
|
private |
Definition at line 124 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by fillMap(), and run_part2().
|
private |
Definition at line 127 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by initStructures(), and run_part2().
|
private |
Definition at line 114 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 106 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init().
|
private |
Definition at line 107 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by findStripNr(), and init().
|
private |
Definition at line 109 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 128 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EB().
|
private |
Definition at line 129 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), run(), and run_part1_EE().
|
private |
Definition at line 132 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().
|
private |
Definition at line 131 of file EcalTrigPrimFunctionalAlgo.h.
Referenced by init(), and run_part2().