47 nSamples_(nSam),binOfMaximum_(binofmax), tcpFormat_(tcpFormat), barrelOnly_(barrelOnly), debug_(debug), famos_(famos)
113 std::cout <<
" EcalEBTrigPrimTestAlgo: Testing that the algorythm with digis is well plugged " << std::endl;
114 std::cout <<
" EcalEBTrigPrimTestAlgo: digi size " << digi->
size() << std::endl;
124 std::cout <<
" first sample " << firstSample <<
" last " << lastSample <<std::endl;
134 if (
debug_)
std::cout <<
" Data for TOWER num " << itow <<
" index " << index <<
" TowerId " << thisTower <<
" size " <<
towerMapEB_[itow].size() << std::endl;
137 for(
unsigned int iStrip = 0; iStrip <
towerMapEB_[itow].size();++iStrip)
139 if (
debug_)
std::cout <<
" Data for STRIP num " << iStrip << std::endl;
143 if (nxstals <= 0)
continue;
147 uint32_t stripid=elId.
rawId() & 0xfffffff8;
151 for (
int iXstal=0;iXstal<nxstals;iXstal++) {
152 const EBDetId & myid = dataFrames[iXstal].id();
159 std::cout <<
"iXstal= "<<iXstal<<
" id " << dataFrames[iXstal].id() <<
" EBDataFrame is: "<<std::endl;
160 for (
int i = 0;
i<dataFrames[iXstal].size();
i++){
169 for (
unsigned int i =0;
i<
lin_out_[iXstal].size();
i++){
175 std::cout<<
"output of linearizer for channel " << iXstal << std::endl;
177 for (
unsigned int i =0;
i<
lin_out_[iXstal].size();
i++){
191 for (
unsigned int ix=0;ix<
filt_out_.size();ix++){
202 for (
unsigned int ix=0;ix<
peak_out_.size();ix++){
226 for (
int iSample=firstSample;iSample<=lastSample;++iSample) {
325 int n=((
id.ic()-1)%100)/20;
326 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)
def setup(process, global_tag, zero_tesla=False)
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_
void setSample(int i, const EcalEBTriggerPrimitiveSample &sam)
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_
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_