1 #ifndef ECAL_FENIXSTRIP_H
2 #define ECAL_FENIXSTRIP_H
122 if (samples.size()==0) {
123 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
128 uint32_t stripid=elId.
rawId() & 0xfffffff8;
137 if (samples.size()==0) {
138 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
142 uint32_t stripid=elId.
rawId() & 0xfffffff8;
154 if(
debug_)
std::cout<<
"\n\nEcalFenixStrip input is a vector of size: "<<nrXtals<< std::endl;
157 for (
int cryst=0;cryst<nrXtals;cryst++) {
160 std::cout <<
"cryst= "<<cryst<<
" EBDataFrame/EEDataFrame is: "<<std::endl;
161 for (
int i = 0;
i<df[cryst].size();
i++){
162 std::cout <<
" "<<std::dec<<df[cryst][
i].adc();
172 std::cout<<
"output of linearizer is a vector of size: "
173 <<std::dec<<
lin_out_.size()<<
" of which used "<<nrXtals<<std::endl;
174 for (
int ix=0;ix<nrXtals;ix++){
175 std::cout<<
"cryst: "<<ix<<
" value : "<<std::dec<<std::endl;
177 for (
unsigned int i =0;
i<
lin_out_[ix].size();
i++){
190 std::cout<<
"output of adder is a vector of size: "<<std::dec<<
add_out_.size()<<std::endl;
191 for (
unsigned int ix=0;ix<
add_out_.size();ix++){
208 std::cout<<
"output of filter is a vector of size: "<<std::dec<<
filt_out_.size()<<std::endl;
209 for (
unsigned int ix=0;ix<
filt_out_.size();ix++){
218 std::cout<<
"output of peakfinder is a vector of size: "<<
peak_out_.size()<<std::endl;
219 for (
unsigned int ix=0;ix<
peak_out_.size();ix++){
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_part2_barrel(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW)
void process(const edm::EventSetup &setup, std::vector< EBDataFrame > &samples, int nrXtals, std::vector< int > &out)
std::vector< EcalFenixLinearizer * > linearizer_
EcalFenixStripFormatEB * fenixFormatterEB_
EcalFenixAmplitudeFilter * getFilter() const
class representing the Fenix chip, format strip
void process_part2_endcap(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE)
EcalFenixPeakFinder * getPeakFinder() const
const EcalElectronicsMapping * theMapping_
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
const EcalTPGSlidingWindow * ecaltpgSlidW_
void setPointers(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGCrystalStatus *ecaltpgBadX)
calculation of Fgvb for the endcap in Fenix Strip calculates fgvb for the endcap in Fenix Strip ...
std::vector< int > filt_out_
void process(const edm::EventSetup &, std::vector< const T > &, int nrxtals, std::vector< int > &out)
void process_part1(std::vector< T > &df, int nrXtals, uint32_t stripid, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGCrystalStatus *ecaltpBadX)
const EcalTPGLinearizationConst * ecaltpLin_
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
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_
void process(const std::vector< std::vector< int > > &linout, int nrXtals, std::vector< int > &output)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
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)