|
|
Go to the documentation of this file.
45 binOfMaximum_(binofmax),
46 tcpFormat_(tcpFormat),
47 barrelOnly_(barrelOnly),
77 for (
int i = 0;
i < 5;
i++)
111 std::cout <<
" EcalEBTrigPrimTestAlgo: Testing that the algorythm with digis is well plugged " << std::endl;
112 std::cout <<
" EcalEBTrigPrimTestAlgo: digi size " << digi->
size() << std::endl;
128 for (
int itow = 0; itow <
nrTowers_; ++itow) {
132 std::cout <<
" Data for TOWER num " << itow <<
" index " <<
index <<
" TowerId " << thisTower <<
" size "
136 for (
unsigned int iStrip = 0; iStrip <
towerMapEB_[itow].size(); ++iStrip) {
138 std::cout <<
" Data for STRIP num " << iStrip << std::endl;
139 std::vector<EBDataFrame> &dataFrames =
146 std::cout <<
" Number of xTals " << nxstals << std::endl;
149 uint32_t stripid = elId.
rawId() & 0xfffffff8;
152 for (
int iXstal = 0; iXstal < nxstals; iXstal++) {
153 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++) {
170 for (
unsigned int i = 0;
i <
lin_out_[iXstal].size();
i++) {
176 std::cout <<
"output of linearizer for channel " << iXstal << std::endl;
178 for (
unsigned int i = 0;
i <
lin_out_[iXstal].size();
i++) {
190 for (
unsigned int ix = 0; ix <
filt_out_.size(); ix++) {
201 for (
unsigned int ix = 0; ix <
peak_out_.size(); ix++) {
230 bool isASpike =
false;
237 <<
" tp size " <<
tp.size() << std::endl;
307 int n = ((
id.ic() - 1) % 100) / 20;
static const unsigned int maxNrTowers_
const EcalTPGTowerStatus * ecaltpgBadTT_
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
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_
edm::ESHandle< CaloGeometry > theGeometry
void initStructures(std::vector< std::vector< std::pair< int, std::vector< T > > > > &towMap)
EcalFenixStripFormatEB * getFormatterEB() const
const EcalElectronicsMapping * theMapping_
std::vector< int > filt_out_
void push_back(T const &t)
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_
const EcalTPGWeightIdMap * ecaltpgWeightMap_
const EcalTPGLutGroup * ecaltpgLutGroup_
EcalFenixAmplitudeFilter * amplitude_filter_
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
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_
void init(const edm::EventSetup &)
const EcalTPGSlidingWindow * ecaltpgSlidW_
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.
EcalFenixStripFormatEB * fenixFormatterEB_
EcalFenixTcpFormat * getFormatter() const
EcalEBTrigPrimTestAlgo(const edm::EventSetup &setup, int nSamples, int binofmax, bool tcpFormat, bool barrelOnly, bool debug, bool famos)
std::vector< int > format_out_
static const unsigned int maxNrSamplesOut_
const EcalTPGLinearizationConst * ecaltpLin_
constexpr uint32_t rawId() const
get the raw id
std::vector< std::pair< int, EcalTrigTowerDetId > > hitTowers_
void setParameters(uint32_t raw, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
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_