#include <EcalEBTrigPrimTestAlgo.h>
Public Member Functions | |
EcalEBTrigPrimTestAlgo (const edm::EventSetup &setup, int nSamples, int binofmax, bool tcpFormat, bool barrelOnly, bool debug, bool famos) | |
void | run (const edm::EventSetup &, const EBDigiCollection *col, EcalEBTrigPrimDigiCollection &result, EcalEBTrigPrimDigiCollection &resultTcp) |
void | setPointers (const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGPedestals *ecaltpPed, const EcalTPGCrystalStatus *ecaltpgBadX, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike) |
virtual | ~EcalEBTrigPrimTestAlgo () |
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) |
EcalFenixAmplitudeFilter * | getFilter () const |
EcalFenixTcpFormat * | getFormatter () const |
EcalFenixStripFormatEB * | getFormatterEB () const |
int | getIndex (const EBDigiCollection *, EcalTrigTowerDetId &id) |
int | getIndex (const EEDigiCollection *, EcalTrigTowerDetId &id) |
EcalFenixLinearizer * | getLinearizer (int i) const |
EcalFenixPeakFinder * | getPeakFinder () const |
void | init (const edm::EventSetup &) |
template<class T > | |
void | initStructures (std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap) |
Static Private Attributes | |
static const unsigned int | maxNrSamplesOut_ =10 |
static const unsigned int | maxNrTowers_ =2448 |
static const unsigned int | nrSamples_ =5 |
EcalEBTrigPrimTestAlgo starting point for Phase II: build TPs out of Phase I digis to start building the infrastructures
Definition at line 48 of file EcalEBTrigPrimTestAlgo.h.
|
private |
|
private |
|
explicit |
Definition at line 46 of file EcalEBTrigPrimTestAlgo.cc.
References init(), and maxNrSamples_.
|
virtual |
Definition at line 95 of file EcalEBTrigPrimTestAlgo.cc.
References amplitude_filter_, fenixFormatterEB_, fenixTcpFormat_, mps_fire::i, linearizer_, nbMaxXtals_, and peak_finder_.
|
private |
Definition at line 184 of file EcalEBTrigPrimTestAlgo.h.
References mps_fire::i, maxNrTowers_, and nbMaxStrips_.
Referenced by run(), and setPointers().
|
private |
Definition at line 193 of file EcalEBTrigPrimTestAlgo.h.
References gather_cfg::cout, debug_, findStripNr(), plotBeamSpotDB::first, getIndex(), hitTowers_, mps_fire::i, nbMaxXtals_, nrTowers_, hcalTTPDigis_cfi::samples, and edm::second().
Referenced by run(), and setPointers().
|
private |
Definition at line 323 of file EcalEBTrigPrimTestAlgo.cc.
References gen::n, and nbMaxStrips_.
Referenced by fillMap(), and setPointers().
|
private |
|
inlineprivate |
Definition at line 163 of file EcalEBTrigPrimTestAlgo.h.
References amplitude_filter_.
Referenced by run().
|
inlineprivate |
Definition at line 175 of file EcalEBTrigPrimTestAlgo.h.
References fenixTcpFormat_.
Referenced by run().
|
inlineprivate |
Definition at line 173 of file EcalEBTrigPrimTestAlgo.h.
References fenixFormatterEB_.
Referenced by run().
|
inlineprivate |
Definition at line 97 of file EcalEBTrigPrimTestAlgo.h.
Referenced by fillMap().
|
inlineprivate |
Definition at line 99 of file EcalEBTrigPrimTestAlgo.h.
References ecaldqm::zside().
|
inlineprivate |
Definition at line 160 of file EcalEBTrigPrimTestAlgo.h.
References mps_fire::i.
Referenced by run().
|
inlineprivate |
Definition at line 172 of file EcalEBTrigPrimTestAlgo.h.
References peak_finder_.
Referenced by run().
|
private |
Definition at line 56 of file EcalEBTrigPrimTestAlgo.cc.
References amplitude_filter_, barrelOnly_, binOfMaximum_, debug_, eTTmap_, famos_, fenixFormatterEB_, fenixTcpFormat_, fgvb_out_, fgvb_out_temp_, filt_out_, format_out_, edm::EventSetup::get(), hitTowers_, mps_fire::i, initStructures(), lin_out_, linearizer_, maxNrSamples_, maxNrTowers_, nbMaxXtals_, peak_finder_, peak_out_, tcpFormat_, tcpformat_out_, theGeometry, towerMapEB_, and findQualityFiles::v.
Referenced by EcalEBTrigPrimTestAlgo(), and setPointers().
|
private |
Definition at line 233 of file EcalEBTrigPrimTestAlgo.h.
References mps_fire::i, maxNrSamples_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, and striptp_.
Referenced by init(), and setPointers().
void EcalEBTrigPrimTestAlgo::run | ( | const edm::EventSetup & | , |
const EBDigiCollection * | col, | ||
EcalEBTrigPrimDigiCollection & | result, | ||
EcalEBTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 105 of file EcalEBTrigPrimTestAlgo.cc.
References binOfMaximum_, clean(), gather_cfg::cout, debug_, TauDecayModes::dec, ecaltpgBadTT_, ecaltpgBadX_, ecaltpgLut_, ecaltpgLutGroup_, ecaltpgSlidW_, ecaltpgSpike_, ecaltpgWeightGroup_, ecaltpgWeightMap_, ecaltpLin_, ecaltpPed_, fgvb_out_, fgvb_out_temp_, fillMap(), filt_out_, plotBeamSpotDB::first, CastorSimpleReconstructor_cfi::firstSample, format_out_, getFilter(), getFormatter(), getFormatterEB(), getLinearizer(), getPeakFinder(), EcalElectronicsMapping::getTriggerElectronicsId(), hitTowers_, mps_fire::i, lin_out_, nrSamples_, nrTowers_, peak_out_, EcalFenixPeakFinder::process(), EcalFenixTcpFormat::process(), EcalFenixAmplitudeFilter::process(), EcalFenixStripFormatEB::process(), EcalFenixLinearizer::process(), edm::SortedCollection< T, SORT >::push_back(), EcalTriggerElectronicsId::rawId(), DetId::rawId(), edm::second(), EcalFenixTcpFormat::setParameters(), EcalFenixStripFormatEB::setParameters(), EcalFenixAmplitudeFilter::setParameters(), EcalFenixLinearizer::setParameters(), EcalEBTriggerPrimitiveDigi::setSample(), EcalEBTriggerPrimitiveDigi::setSize(), EcalEBTriggerPrimitiveDigi::size(), edm::DataFrameContainer::size(), tcpFormat_, tcpformat_out_, theMapping_, and towerMapEB_.
|
inline |
Definition at line 60 of file EcalEBTrigPrimTestAlgo.h.
References clean(), ecaltpgBadTT_, ecaltpgBadX_, ecaltpgLut_, ecaltpgLutGroup_, ecaltpgSlidW_, ecaltpgSpike_, ecaltpgWeightGroup_, ecaltpgWeightMap_, ecaltpLin_, ecaltpPed_, fillMap(), findStripNr(), init(), and initStructures().
|
private |
Definition at line 142 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFilter(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 117 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 112 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 118 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 156 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 150 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 155 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 154 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 153 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 157 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 152 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 151 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 149 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 148 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 105 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 119 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 144 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFormatterEB(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 145 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFormatter(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 168 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 169 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 164 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 166 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 131 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 161 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 141 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 113 of file EcalEBTrigPrimTestAlgo.h.
Referenced by EcalEBTrigPrimTestAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 124 of file EcalEBTrigPrimTestAlgo.h.
|
staticprivate |
Definition at line 123 of file EcalEBTrigPrimTestAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 125 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run().
|
private |
Definition at line 122 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 111 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 143 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getPeakFinder(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 165 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 128 of file EcalEBTrigPrimTestAlgo.h.
Referenced by initStructures().
|
private |
Definition at line 116 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 176 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 107 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 138 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run().
|
private |
Definition at line 110 of file EcalEBTrigPrimTestAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 129 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 130 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 133 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 132 of file EcalEBTrigPrimTestAlgo.h.