|
|
Go to the documentation of this file. 1 #ifndef SimCalorimetry_EcalEBTrigPrimAlgos_EcalEBTrigPrimTestAlgo_h
2 #define SimCalorimetry_EcalEBTrigPrimAlgos_EcalEBTrigPrimTestAlgo_h
33 class ETPCoherenceTest;
92 int ind = (
id.ietaAbs() - 18) * 72 +
id.
iphi();
118 std::vector<std::vector<std::pair<int, std::vector<EBDataFrame> > > >
towerMapEB_;
119 std::vector<std::vector<std::pair<int, std::vector<EEDataFrame> > > >
towerMapEE_;
121 std::vector<EcalEBTriggerPrimitiveSample>
towtp_;
122 std::vector<EcalEBTriggerPrimitiveSample>
towtp2_;
171 (towMap[
i])[
j].first = 0;
175 template <
class Coll>
184 std::cout <<
"Fill mapping, Collection size = " <<
col->size() << std::endl;
186 for (
unsigned int i = 0;
i <
col->size(); ++
i) {
193 for (
unsigned int ij = 0; ij < towerMap[
index].size(); ++ij)
200 int ncryst = towerMap[
index][stripnr - 1].first;
203 <<
"! Too many xtals for TT " << coarser <<
" stripnr " << stripnr <<
" xtalid " <<
samples.id();
212 <<
"[EcalTrigPrimFunctionalAlgo] (found " <<
col->size() <<
" frames in " << towerMap.size()
213 <<
" towers) " << std::endl;
216 std::cout <<
"FillMap - FillMap Collection size=0 !!!!" << std::endl;
228 vec1[
i] = std::pair<
int, std::vector<T> >(0, vec0);
EcalEBFenixAmplitudeFilter * amplitude_filter_
static const unsigned int maxNrTowers_
const EcalTPGTowerStatus * ecaltpgBadTT_
std::vector< double > vec1
const EcalTrigTowerConstituentsMap * eTTmap_
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits.
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)
U second(std::pair< T, U > const &p)
std::vector< int > fgvb_out_temp_
int findStripNr(const EBDetId &id)
int getIndex(const EEDigiCollection *, EcalTrigTowerDetId &id)
void initStructures(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap)
int getIndex(const EBDigiCollection *, EcalTrigTowerDetId &id)
const EcalElectronicsMapping * theMapping_
std::vector< int > filt_out_
EcalEBFenixStripFormatEB * fenixFormatterEB_
void clean(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towerMap)
const EcalTPGPedestals * ecaltpPed_
const EcalTPGLutIdMap * ecaltpgLut_
std::vector< std::vector< int > > lin_out_
std::vector< int > tcpformat_out_
void run(const EBDigiCollection *col, EcalEBTrigPrimDigiCollection &result, EcalEBTrigPrimDigiCollection &resultTcp)
std::vector< EcalEBTriggerPrimitiveSample > towtp2_
EcalEBFenixTcpFormat * fenixTcpFormat_
const EcalTPGWeightIdMap * ecaltpgWeightMap_
EcalEBTrigPrimTestAlgo(const EcalTrigTowerConstituentsMap *eTTmap, const CaloGeometry *theGeometry, int nSamples, int binofmax, bool tcpFormat, bool debug, bool famos)
const EcalTPGLutGroup * ecaltpgLutGroup_
EcalEBFenixLinearizer * getLinearizer(int i) const
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_
std::vector< EcalEBFenixLinearizer * > linearizer_
const EcalTPGSlidingWindow * ecaltpgSlidW_
std::vector< EcalEBTriggerPrimitiveSample > towtp_
std::vector< int > format_out_
std::vector< std::vector< int > > striptp_
Log< level::Error, false > LogError
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
static const unsigned int maxNrSamplesOut_
EcalEBFenixTcpFormat * getFormatter() const
const CaloGeometry * theGeometry_
const EcalTPGLinearizationConst * ecaltpLin_
std::vector< std::pair< int, EcalTrigTowerDetId > > hitTowers_
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
EcalEBFenixPeakFinder * peak_finder_
EcalEBFenixPeakFinder * getPeakFinder() const
std::vector< int > fgvb_out_
EcalEBFenixAmplitudeFilter * getFilter() const
std::vector< std::vector< std::pair< int, std::vector< EBDataFrame > > > > towerMapEB_
const EcalTPGSpike * ecaltpgSpike_
const EcalTPGCrystalStatus * ecaltpgBadX_
EcalEBFenixStripFormatEB * getFormatterEB() const
const EcalTPGWeightGroup * ecaltpgWeightGroup_