1 #ifndef ECAL_FENIXSTRIP_H 2 #define ECAL_FENIXSTRIP_H 91 ecaltpPed_ = ecaltpPed;
92 ecaltpLin_ = ecaltpLin;
93 ecaltpgWeightMap_ = ecaltpgWeightMap;
94 ecaltpgWeightGroup_ = ecaltpgWeightGroup;
95 ecaltpgSlidW_ = ecaltpgSlidW;
96 ecaltpgFgStripEE_ = ecaltpgFgStripEE;
97 ecaltpgBadX_ = ecaltpgBadX;
98 ecaltpgStripStatus_ = ecaltpgStripStatus;
135 if (samples.empty()) {
136 std::cout <<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!" << std::endl;
140 uint32_t stripid = elId.
rawId() & 0xfffffff8;
160 if (samples.empty()) {
161 std::cout <<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!" << std::endl;
165 uint32_t stripid = elId.
rawId() & 0xfffffff8;
194 std::cout <<
"\n\nEcalFenixStrip input is a vector of size: " << nrXtals << std::endl;
197 for (
int cryst = 0; cryst < nrXtals; cryst++) {
200 std::cout <<
"cryst= " << cryst <<
" EBDataFrame/EEDataFrame is: " << std::endl;
201 for (
int i = 0;
i < df[cryst].size();
i++) {
212 std::cout <<
"output of linearizer is a vector of size: " <<
std::dec << lin_out_.size() <<
" of which used " 213 << nrXtals << std::endl;
214 for (
int ix = 0; ix < nrXtals; ix++) {
216 std::cout <<
" lin_out[ix].size()= " <<
std::dec << lin_out_[ix].size() << std::endl;
217 for (
unsigned int i = 0;
i < lin_out_[ix].size();
i++) {
231 std::cout <<
"output of strip fgvb is a vector of size: " <<
std::dec << fgvb_out_temp_.size() << std::endl;
232 for (
unsigned int i = 0;
i < fgvb_out_temp_.size();
i++) {
242 std::cout <<
"output of adder is a vector of size: " <<
std::dec << add_out_.size() << std::endl;
243 for (
unsigned int ix = 0; ix < add_out_.size(); ix++) {
244 std::cout <<
"cryst: " << ix <<
" value : " <<
std::dec << add_out_[ix] << std::endl;
250 filt_out_[0] = add_out_[0];
251 peak_out_[0] = add_out_[0];
259 std::cout <<
"output of filter is a vector of size: " <<
std::dec << filt_out_.size() << std::endl;
260 for (
unsigned int ix = 0; ix < filt_out_.size(); ix++) {
261 std::cout <<
"cryst: " << ix <<
" value : " <<
std::dec << filt_out_[ix] << std::endl;
265 std::cout <<
"output of sfgvb after filter is a vector of size: " <<
std::dec << fgvb_out_.size() << std::endl;
266 for (
unsigned int ix = 0; ix < fgvb_out_.size(); ix++) {
267 std::cout <<
"cryst: " << ix <<
" value : " <<
std::dec << fgvb_out_[ix] << std::endl;
275 std::cout <<
"output of peakfinder is a vector of size: " << peak_out_.size() << std::endl;
276 for (
unsigned int ix = 0; ix < peak_out_.size(); ix++) {
277 std::cout <<
"cryst: " << ix <<
" value : " << peak_out_[ix] << std::endl;
EcalFenixStripFgvbEE * fgvbEE_
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
std::vector< std::vector< int > > lin_out_
std::vector< int > add_out_
void process(const edm::EventSetup &setup, std::vector< EBDataFrame > &samples, int nrXtals, std::vector< int > &out)
std::vector< EcalFenixLinearizer * > linearizer_
void process(std::vector< std::vector< int >> &lin_out, std::vector< int > &output)
void setParameters(int identif, uint32_t id, const EcalTPGFineGrainStripEE *)
EcalFenixStripFormatEB * fenixFormatterEB_
void process_part2_barrel(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE)
void setPointers(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGCrystalStatus *ecaltpgBadX, const EcalTPGStripStatus *ecaltpgStripStatus)
EcalFenixAmplitudeFilter * getFilter() const
class representing the Fenix chip, format strip
EcalFenixPeakFinder * getPeakFinder() const
const EcalElectronicsMapping * theMapping_
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
const EcalTPGSlidingWindow * ecaltpgSlidW_
calculation of Fgvb for the endcap in Fenix Strip calculates fgvb for the endcap in Fenix Strip ...
void process_part2_endcap(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGStripStatus *ecaltpgStripStatus)
std::vector< int > filt_out_
void process(const edm::EventSetup &, std::vector< const T > &, int nrxtals, std::vector< int > &out)
bool getMissedStripFlag() const
void process_part1(int identif, std::vector< T > &df, int nrXtals, uint32_t stripid, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGCrystalStatus *ecaltpBadX)
bool getbadStripMissing() const
void process(const std::vector< std::vector< int >> &linout, int nrXtals, std::vector< int > &output)
const EcalTPGLinearizationConst * ecaltpLin_
const EcalTPGStripStatus * ecaltpgStripStatus_
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits...
virtual ~EcalFenixStrip()
const EcalTPGCrystalStatus * ecaltpgBadX_
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
EcalFenixStripFgvbEE * getFGVB() const
EcalFenixPeakFinder * peak_finder_
const EcalTPGWeightIdMap * ecaltpgWeightMap_
const EcalTPGWeightGroup * ecaltpgWeightGroup_
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
const EcalTPGPedestals * ecaltpPed_
std::vector< int > fgvb_out_
EcalFenixEtStrip * getAdder() const
void setbadStripMissing(bool flag)
const EcalTPGFineGrainStripEE * ecaltpgFgStripEE_
EcalFenixStripFormatEB * getFormatterEB() const
void process(const edm::EventSetup &setup, std::vector< EEDataFrame > &samples, int nrXtals, std::vector< int > &out)
void setParameters(uint32_t raw, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
std::vector< int > format_out_
EcalFenixStripFormatEE * getFormatterEE() const
EcalFenixAmplitudeFilter * amplitude_filter_
EcalFenixStripFormatEE * fenixFormatterEE_
EcalFenixLinearizer * getLinearizer(int i) const
std::vector< int > peak_out_
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
EcalFenixEtStrip * adder_
EcalFenixStrip(const edm::EventSetup &setup, const EcalElectronicsMapping *theMapping, bool debug, bool famos, int maxNrSamples, int nbMaxXtals)
std::vector< int > fgvb_out_temp_