51 theGeometry_(theGeometry),
53 binOfMaximum_(binofmax),
54 tcpFormat_(tcpFormat),
65 binOfMaximum_(binofmax),
66 tcpFormat_(tcpFormat),
91 for (
int i = 0;
i < 5;
i++)
125 std::cout <<
" EcalEBTrigPrimTestAlgo: Testing that the algorythm with digis is well plugged " << std::endl;
126 std::cout <<
" EcalEBTrigPrimTestAlgo: digi size " << digi->
size() << std::endl;
142 for (
int itow = 0; itow <
nrTowers_; ++itow) {
146 std::cout <<
" Data for TOWER num " << itow <<
" index " <<
index <<
" TowerId " << thisTower <<
" size " 150 for (
unsigned int iStrip = 0; iStrip <
towerMapEB_[itow].size(); ++iStrip) {
152 std::cout <<
" Data for STRIP num " << iStrip << std::endl;
153 std::vector<EBDataFrame> &dataFrames =
160 std::cout <<
" Number of xTals " << nxstals << std::endl;
163 uint32_t stripid = elId.
rawId() & 0xfffffff8;
166 for (
int iXstal = 0; iXstal < nxstals; iXstal++) {
167 const EBDetId &myid = dataFrames[iXstal].id();
173 std::cout <<
"iXstal= " << iXstal <<
" id " << dataFrames[iXstal].id() <<
" EBDataFrame is: " << std::endl;
174 for (
int i = 0;
i < dataFrames[iXstal].size();
i++) {
184 for (
unsigned int i = 0;
i <
lin_out_[iXstal].size();
i++) {
190 std::cout <<
"output of linearizer for channel " << iXstal << std::endl;
192 for (
unsigned int i = 0;
i <
lin_out_[iXstal].size();
i++) {
204 for (
unsigned int ix = 0; ix <
filt_out_.size(); ix++) {
215 for (
unsigned int ix = 0; ix <
peak_out_.size(); ix++) {
244 bool isASpike =
false;
251 <<
" tp size " <<
tp.size() << std::endl;
321 int n = ((
id.ic() - 1) % 100) / 20;
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
EcalEBFenixLinearizer * getLinearizer(int i) const
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 > format_out_
static const unsigned int maxNrSamplesOut_
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits...
EcalEBFenixPeakFinder * getPeakFinder() const
virtual ~EcalEBTrigPrimTestAlgo()
void push_back(T const &t)
const EcalTPGSlidingWindow * ecaltpgSlidW_
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
const EcalTPGSpike * ecaltpgSpike_
EcalEBFenixTcpFormat * getFormatter() const
const EcalTPGCrystalStatus * ecaltpgBadX_
EcalEBFenixAmplitudeFilter * amplitude_filter_
EcalEBFenixPeakFinder * peak_finder_
U second(std::pair< T, U > const &p)
const EcalTPGLinearizationConst * ecaltpLin_
std::vector< int > fgvb_out_
std::vector< std::pair< int, EcalTrigTowerDetId > > hitTowers_
EcalEBFenixAmplitudeFilter * getFilter() const
std::vector< std::vector< std::pair< int, std::vector< EBDataFrame > > > > towerMapEB_
void initStructures(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap)
const EcalTPGWeightGroup * ecaltpgWeightGroup_
const EcalTPGTowerStatus * ecaltpgBadTT_
EcalEBFenixStripFormatEB * fenixFormatterEB_
EcalEBFenixStripFormatEB * getFormatterEB() const
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
constexpr uint32_t rawId() const
get the raw id
static const unsigned int maxNrTowers_
std::vector< int > fgvb_out_temp_
std::vector< int > tcpformat_out_
int findStripNr(const EBDetId &id)
const EcalElectronicsMapping * theMapping_
std::vector< int > filt_out_
void run(const EBDigiCollection *col, EcalEBTrigPrimDigiCollection &result, EcalEBTrigPrimDigiCollection &resultTcp)
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
EcalEBFenixTcpFormat * fenixTcpFormat_
void clean(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towerMap)
std::vector< EcalEBFenixLinearizer * > linearizer_
EcalEBTrigPrimTestAlgo(const EcalTrigTowerConstituentsMap *eTTmap, const CaloGeometry *theGeometry, int nSamples, int binofmax, bool tcpFormat, bool debug, bool famos)
const EcalTPGPedestals * ecaltpPed_
void setParameters(uint32_t raw, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
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_
std::vector< int > peak_out_
const EcalTPGWeightIdMap * ecaltpgWeightMap_