|
|
Go to the documentation of this file. 1 #ifndef EcalEBTrigPrimTestAlgo_h
2 #define EcalEBTrigPrimTestAlgo_h
38 class ETPCoherenceTest;
94 int ind = (
id.ietaAbs() - 18) * 72 +
id.
iphi();
121 std::vector<std::vector<std::pair<int, std::vector<EBDataFrame> > > >
towerMapEB_;
122 std::vector<std::vector<std::pair<int, std::vector<EEDataFrame> > > >
towerMapEE_;
124 std::vector<EcalEBTriggerPrimitiveSample>
towtp_;
125 std::vector<EcalEBTriggerPrimitiveSample>
towtp2_;
174 (towMap[
i])[
j].first = 0;
178 template <
class Coll>
187 std::cout <<
"Fill mapping, Collection size = " <<
col->size() << std::endl;
189 for (
unsigned int i = 0;
i <
col->size(); ++
i) {
196 for (
unsigned int ij = 0; ij < towerMap[
index].size(); ++ij)
203 int ncryst = towerMap[
index][stripnr - 1].first;
206 <<
"! Too many xtals for TT " << coarser <<
" stripnr " << stripnr <<
" xtalid " <<
samples.id();
215 <<
"[EcalTrigPrimFunctionalAlgo] (found " <<
col->size() <<
" frames in " << towerMap.size()
216 <<
" towers) " << std::endl;
219 std::cout <<
"FillMap - FillMap Collection size=0 !!!!" << std::endl;
231 vec1[
i] = std::pair<
int, std::vector<T> >(0, vec0);
static const unsigned int maxNrTowers_
const EcalTPGTowerStatus * ecaltpgBadTT_
std::vector< double > vec1
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)
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
void run(const edm::EventSetup &, const EBDigiCollection *col, EcalEBTrigPrimDigiCollection &result, EcalEBTrigPrimDigiCollection &resultTcp)
U second(std::pair< T, U > const &p)
std::vector< int > fgvb_out_temp_
int findStripNr(const EBDetId &id)
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
int getIndex(const EEDigiCollection *, EcalTrigTowerDetId &id)
edm::ESHandle< CaloGeometry > theGeometry
void initStructures(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap)
EcalFenixStripFormatEB * getFormatterEB() const
int getIndex(const EBDigiCollection *, EcalTrigTowerDetId &id)
const EcalElectronicsMapping * theMapping_
std::vector< int > filt_out_
void clean(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towerMap)
const EcalTPGPedestals * ecaltpPed_
const EcalTPGLutIdMap * ecaltpgLut_
EcalFenixPeakFinder * getPeakFinder() const
std::vector< std::vector< int > > lin_out_
std::vector< EcalFenixLinearizer * > linearizer_
std::vector< int > tcpformat_out_
EcalFenixTcpFormat * fenixTcpFormat_
EcalFenixPeakFinder * peak_finder_
std::vector< EcalEBTriggerPrimitiveSample > towtp2_
const EcalTPGWeightIdMap * ecaltpgWeightMap_
const EcalTPGLutGroup * ecaltpgLutGroup_
EcalFenixAmplitudeFilter * amplitude_filter_
virtual ~EcalEBTrigPrimTestAlgo()
static const unsigned int nrSamples_
void fillMap(Coll const *col, std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi > > > > &towerMap)
std::vector< int > peak_out_
std::vector< std::vector< std::pair< int, std::vector< EEDataFrame > > > > towerMapEE_
void init(const edm::EventSetup &)
const EcalTPGSlidingWindow * ecaltpgSlidW_
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits.
EcalFenixStripFormatEB * fenixFormatterEB_
EcalFenixTcpFormat * getFormatter() const
std::vector< EcalEBTriggerPrimitiveSample > towtp_
EcalEBTrigPrimTestAlgo(const edm::EventSetup &setup, int nSamples, int binofmax, bool tcpFormat, bool barrelOnly, bool debug, bool famos)
std::vector< int > format_out_
std::vector< std::vector< int > > striptp_
Log< level::Error, false > LogError
static const unsigned int maxNrSamplesOut_
const EcalTPGLinearizationConst * ecaltpLin_
std::vector< std::pair< int, EcalTrigTowerDetId > > hitTowers_
EcalFenixLinearizer * getLinearizer(int i) const
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
std::vector< int > fgvb_out_
std::vector< std::vector< std::pair< int, std::vector< EBDataFrame > > > > towerMapEB_
EcalFenixAmplitudeFilter * getFilter() const
const EcalTPGSpike * ecaltpgSpike_
const EcalTPGCrystalStatus * ecaltpgBadX_
const EcalTPGWeightGroup * ecaltpgWeightGroup_