1 #ifndef ECAL_FENIXSTRIP_H
2 #define ECAL_FENIXSTRIP_H
132 if (samples.size()==0) {
133 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
138 uint32_t stripid=elId.
rawId() & 0xfffffff8;
150 if (samples.size()==0) {
151 std::cout<<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!"<<std::endl;
155 uint32_t stripid=elId.
rawId() & 0xfffffff8;
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++){
178 std::cout <<
" "<<std::dec<<df[cryst][
i].adc();
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++){
191 std::cout<<
"cryst: "<<ix<<
" value : "<<std::dec<<std::endl;
193 for (
unsigned int i =0;
i<
lin_out_[ix].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++){
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++){
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
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)
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)
std::vector< int > fgvb_out_temp_