1 #ifndef ECAL_FENIXSTRIP_H 2 #define ECAL_FENIXSTRIP_H 94 ecaltpgWeightMap_=ecaltpgWeightMap;
95 ecaltpgWeightGroup_= ecaltpgWeightGroup;
96 ecaltpgSlidW_=ecaltpgSlidW;
97 ecaltpgFgStripEE_=ecaltpgFgStripEE;
98 ecaltpgBadX_=ecaltpgBadX;
99 ecaltpgStripStatus_=ecaltpgStripStatus;
132 if (samples.empty()) {
133 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
138 uint32_t stripid=elId.
rawId() & 0xfffffff8;
142 process_part1(identif_,samples,nrXtals,stripid,ecaltpPed_,ecaltpLin_,ecaltpgWeightMap_,ecaltpgWeightGroup_,ecaltpgBadX_);
150 if (samples.empty()) {
151 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
155 uint32_t stripid=elId.
rawId() & 0xfffffff8;
159 process_part1(identif_,samples,nrXtals,stripid,ecaltpPed_,ecaltpLin_,ecaltpgWeightMap_,ecaltpgWeightGroup_,ecaltpgBadX_);
170 if(debug_)
std::cout<<
"\n\nEcalFenixStrip input is a vector of size: "<<nrXtals<< std::endl;
173 for (
int cryst=0;cryst<nrXtals;cryst++) {
176 std::cout <<
"cryst= "<<cryst<<
" EBDataFrame/EEDataFrame is: "<<std::endl;
177 for (
int i = 0;
i<df[cryst].size();
i++){
188 std::cout<<
"output of linearizer is a vector of size: " 189 <<
std::dec<<lin_out_.size()<<
" of which used "<<nrXtals<<std::endl;
190 for (
int ix=0;ix<nrXtals;ix++){
193 for (
unsigned int i =0;
i<lin_out_[ix].size();
i++){
208 std::cout <<
"output of strip fgvb is a vector of size: " <<
std::dec<<fgvb_out_temp_.size()<<std::endl;
209 for (
unsigned int i =0;
i<fgvb_out_temp_.size();
i++){
219 std::cout<<
"output of adder is a vector of size: "<<
std::dec<<add_out_.size()<<std::endl;
220 for (
unsigned int ix=0;ix<add_out_.size();ix++){
228 filt_out_[0]= add_out_[0];
229 peak_out_[0]= add_out_[0];
237 std::cout<<
"output of filter is a vector of size: "<<
std::dec<<filt_out_.size()<<std::endl;
238 for (
unsigned int ix=0;ix<filt_out_.size();ix++){
243 std::cout<<
"output of sfgvb after filter is a vector of size: "<<
std::dec<<fgvb_out_.size()<<std::endl;
244 for (
unsigned int ix=0;ix<fgvb_out_.size();ix++){
253 std::cout<<
"output of peakfinder is a vector of size: "<<peak_out_.size()<<std::endl;
254 for (
unsigned int ix=0;ix<peak_out_.size();ix++){
255 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 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
def setup(process, global_tag, zero_tesla=False)
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
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)
void process(std::vector< std::vector< int > > &lin_out, std::vector< int > &output)
std::vector< int > format_out_
EcalFenixStripFormatEE * getFormatterEE() const
EcalFenixAmplitudeFilter * amplitude_filter_
EcalFenixStripFormatEE * fenixFormatterEE_
EcalFenixLinearizer * getLinearizer(int i) const
std::vector< int > peak_out_
void process(const std::vector< std::vector< int > > &linout, int nrXtals, std::vector< int > &output)
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_