#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 |
forPhase II As of now we do not know yet how the electronics would look like so for now we build some machinery to produce TPs which are taken from the RecHits
EcalEBTrigPrimTestAlgo starting point for Phase II: build TPs out of Phase I digis to start building the infrastructures
Definition at line 47 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_, i, linearizer_, nbMaxXtals_, and peak_finder_.
|
private |
Definition at line 183 of file EcalEBTrigPrimTestAlgo.h.
References i, j, maxNrTowers_, and nbMaxStrips_.
Referenced by run().
|
private |
Definition at line 192 of file EcalEBTrigPrimTestAlgo.h.
References gather_cfg::cout, debug_, findStripNr(), plotBeamSpotDB::first, getIndex(), hitTowers_, i, cmsHarvester::index, nbMaxXtals_, nrTowers_, and edm::second().
Referenced by run().
|
private |
Definition at line 399 of file EcalEBTrigPrimTestAlgo.cc.
References gen::n, and nbMaxStrips_.
Referenced by fillMap().
|
private |
|
inlineprivate |
Definition at line 162 of file EcalEBTrigPrimTestAlgo.h.
References amplitude_filter_.
Referenced by run().
|
inlineprivate |
Definition at line 174 of file EcalEBTrigPrimTestAlgo.h.
References fenixTcpFormat_.
Referenced by run().
|
inlineprivate |
Definition at line 172 of file EcalEBTrigPrimTestAlgo.h.
References fenixFormatterEB_.
Referenced by run().
|
inlineprivate |
Definition at line 96 of file EcalEBTrigPrimTestAlgo.h.
Referenced by fillMap().
|
inlineprivate |
|
inlineprivate |
Definition at line 159 of file EcalEBTrigPrimTestAlgo.h.
References i, and linearizer_.
Referenced by run().
|
inlineprivate |
Definition at line 171 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_, i, initStructures(), lin_out_, linearizer_, maxNrSamples_, maxNrTowers_, nbMaxXtals_, peak_finder_, peak_out_, tcpFormat_, tcpformat_out_, theGeometry, towerMapEB_, and findQualityFiles::v.
Referenced by EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 232 of file EcalEBTrigPrimTestAlgo.h.
References i, maxNrSamples_, maxNrTowers_, nbMaxStrips_, nbMaxXtals_, and striptp_.
Referenced by init().
void EcalEBTrigPrimTestAlgo::run | ( | const edm::EventSetup & | setup, |
const EBDigiCollection * | col, | ||
EcalEBTrigPrimDigiCollection & | result, | ||
EcalEBTrigPrimDigiCollection & | resultTcp | ||
) |
Definition at line 180 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, castor_dqm_sourceclient_file_cfg::firstSample, format_out_, getFilter(), getFormatter(), getFormatterEB(), getLinearizer(), getPeakFinder(), EcalElectronicsMapping::getTriggerElectronicsId(), hitTowers_, i, cmsHarvester::index, castor_dqm_sourceclient_file_cfg::lastSample, lin_out_, nrSamples_, nrTowers_, peak_out_, EcalFenixPeakFinder::process(), EcalFenixAmplitudeFilter::process(), EcalFenixTcpFormat::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 59 of file EcalEBTrigPrimTestAlgo.h.
References ecaltpgBadTT_, ecaltpgBadX_, ecaltpgLut_, ecaltpgLutGroup_, ecaltpgSlidW_, ecaltpgSpike_, ecaltpgWeightGroup_, ecaltpgWeightMap_, ecaltpLin_, and ecaltpPed_.
|
private |
Definition at line 141 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFilter(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 116 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 111 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 117 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 155 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 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 152 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 156 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 150 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 147 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run(), and setPointers().
|
private |
Definition at line 104 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 118 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 143 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFormatterEB(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 144 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getFormatter(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 167 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 168 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 163 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 165 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 130 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 160 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 140 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getLinearizer(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 112 of file EcalEBTrigPrimTestAlgo.h.
Referenced by EcalEBTrigPrimTestAlgo(), init(), and initStructures().
|
staticprivate |
Definition at line 123 of file EcalEBTrigPrimTestAlgo.h.
|
staticprivate |
Definition at line 122 of file EcalEBTrigPrimTestAlgo.h.
Referenced by clean(), init(), and initStructures().
|
staticprivate |
Definition at line 124 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run().
|
private |
Definition at line 121 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 110 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 142 of file EcalEBTrigPrimTestAlgo.h.
Referenced by getPeakFinder(), init(), and ~EcalEBTrigPrimTestAlgo().
|
private |
Definition at line 164 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 127 of file EcalEBTrigPrimTestAlgo.h.
Referenced by initStructures().
|
private |
Definition at line 115 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 175 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 106 of file EcalEBTrigPrimTestAlgo.h.
Referenced by init().
|
private |
Definition at line 137 of file EcalEBTrigPrimTestAlgo.h.
Referenced by run().
|
private |
Definition at line 109 of file EcalEBTrigPrimTestAlgo.h.
Referenced by utils.StatisticalTest::get_status().
|
private |
Definition at line 128 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 129 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 132 of file EcalEBTrigPrimTestAlgo.h.
|
private |
Definition at line 131 of file EcalEBTrigPrimTestAlgo.h.