47 nSamples_(nSam),binOfMaximum_(binofmax), tcpFormat_(tcpFormat), barrelOnly_(barrelOnly), debug_(debug), famos_(famos)
188 std::cout <<
" EcalEBTrigPrimTestAlgo: Testing that the algorythm with digis is well plugged " << std::endl;
189 std::cout <<
" EcalEBTrigPrimTestAlgo: digi size " << digi->
size() << std::endl;
199 std::cout <<
" first sample " << firstSample <<
" last " << lastSample <<std::endl;
209 if (
debug_)
std::cout <<
" Data for TOWER num " << itow <<
" index " << index <<
" TowerId " << thisTower <<
" size " <<
towerMapEB_[itow].size() << std::endl;
212 for(
unsigned int iStrip = 0; iStrip <
towerMapEB_[itow].size();++iStrip)
214 if (
debug_)
std::cout <<
" Data for STRIP num " << iStrip << std::endl;
218 if (nxstals <= 0)
continue;
222 uint32_t stripid=elId.
rawId() & 0xfffffff8;
226 for (
int iXstal=0;iXstal<nxstals;iXstal++) {
227 const EBDetId & myid = dataFrames[iXstal].id();
234 std::cout <<
"iXstal= "<<iXstal<<
" id " << dataFrames[iXstal].id() <<
" EBDataFrame is: "<<std::endl;
235 for (
int i = 0;
i<dataFrames[iXstal].size();
i++){
244 for (
unsigned int i =0;
i<
lin_out_[iXstal].size();
i++){
250 std::cout<<
"output of linearizer for channel " << iXstal << std::endl;
252 for (
unsigned int i =0;
i<
lin_out_[iXstal].size();
i++){
266 for (
unsigned int ix=0;ix<
filt_out_.size();ix++){
277 for (
unsigned int ix=0;ix<
peak_out_.size();ix++){
302 for (
int iSample=firstSample;iSample<=
lastSample;++iSample) {
401 int n=((
id.ic()-1)%100)/20;
402 if (
id.ieta()<0) stripnr = n+1;
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
std::vector< std::vector< std::pair< int, std::vector< EBDataFrame > > > > towerMapEB_
EcalFenixStripFormatEB * fenixFormatterEB_
static const unsigned int nrSamples_
EcalFenixPeakFinder * getPeakFinder() const
void fillMap(Coll const *col, std::vector< std::vector< std::pair< int, std::vector< typename Coll::Digi > > > > &towerMap)
std::vector< int > format_out_
static const unsigned int maxNrSamplesOut_
virtual ~EcalEBTrigPrimTestAlgo()
void push_back(T const &t)
const EcalTPGSlidingWindow * ecaltpgSlidW_
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
EcalFenixTcpFormat * getFormatter() const
EcalFenixLinearizer * getLinearizer(int i) const
EcalEBTrigPrimTestAlgo(const edm::EventSetup &setup, int nSamples, int binofmax, bool tcpFormat, bool barrelOnly, bool debug, bool famos)
const EcalTPGSpike * ecaltpgSpike_
const EcalTPGCrystalStatus * ecaltpgBadX_
EcalFenixStripFormatEB * getFormatterEB() const
uint32_t rawId() const
get the raw id
U second(std::pair< T, U > const &p)
const EcalTPGLinearizationConst * ecaltpLin_
std::vector< int > fgvb_out_
void setSample(int i, const EcalTriggerPrimitiveSample &sam)
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits...
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
std::vector< std::pair< int, EcalTrigTowerDetId > > hitTowers_
EcalFenixAmplitudeFilter * getFilter() const
void initStructures(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap)
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
const EcalTPGWeightGroup * ecaltpgWeightGroup_
const EcalTPGTowerStatus * ecaltpgBadTT_
void run(const edm::EventSetup &, const EBDigiCollection *col, EcalEBTrigPrimDigiCollection &result, EcalEBTrigPrimDigiCollection &resultTcp)
std::vector< EcalFenixLinearizer * > linearizer_
edm::ESHandle< CaloGeometry > theGeometry
static const unsigned int maxNrTowers_
std::vector< int > fgvb_out_temp_
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
std::vector< int > tcpformat_out_
int findStripNr(const EBDetId &id)
const EcalElectronicsMapping * theMapping_
void setParameters(uint32_t raw, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
std::vector< int > filt_out_
EcalFenixAmplitudeFilter * amplitude_filter_
void clean(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towerMap)
void init(const edm::EventSetup &)
const EcalTPGPedestals * ecaltpPed_
EcalFenixPeakFinder * peak_finder_
const EcalTPGLutIdMap * ecaltpgLut_
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
const EcalTPGLutGroup * ecaltpgLutGroup_
std::vector< std::vector< int > > lin_out_
EcalFenixTcpFormat * fenixTcpFormat_
std::vector< int > peak_out_
const EcalTPGWeightIdMap * ecaltpgWeightMap_