1 #ifndef ECAL_FENIXSTRIP_H 2 #define ECAL_FENIXSTRIP_H 35 bool famos,
int maxNrSamples,
int nbMaxXtals);
88 ecaltpPed_ = ecaltpPed;
89 ecaltpLin_ = ecaltpLin;
90 ecaltpgWeightMap_ = ecaltpgWeightMap;
91 ecaltpgWeightGroup_ = ecaltpgWeightGroup;
92 ecaltpgSlidW_ = ecaltpgSlidW;
93 ecaltpgFgStripEE_ = ecaltpgFgStripEE;
94 ecaltpgBadX_ = ecaltpgBadX;
95 ecaltpgStripStatus_ = ecaltpgStripStatus;
104 std::vector<int> &
out);
132 int nrXtals, std::vector<int> &out) {
135 if (samples.empty()) {
136 std::cout <<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!" 142 uint32_t stripid = elId.
rawId() & 0xfffffff8;
146 process_part1(identif_, samples, nrXtals, stripid, ecaltpPed_, ecaltpLin_,
147 ecaltpgWeightMap_, ecaltpgWeightGroup_,
155 int nrXtals, std::vector<int> &out) {
158 if (samples.empty()) {
159 std::cout <<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!" 165 uint32_t stripid = elId.
rawId() & 0xfffffff8;
169 process_part1(identif_, samples, nrXtals, stripid, ecaltpPed_, ecaltpLin_,
170 ecaltpgWeightMap_, ecaltpgWeightGroup_,
173 ecaltpgStripStatus_);
187 std::cout <<
"\n\nEcalFenixStrip input is a vector of size: " << nrXtals
191 for (
int cryst = 0; cryst < nrXtals; cryst++) {
195 <<
" EBDataFrame/EEDataFrame is: " << std::endl;
196 for (
int i = 0;
i < df[cryst].size();
i++) {
203 df[cryst].
id().rawId(), ecaltpPed, ecaltpLin, ecaltpBadX);
209 << lin_out_.size() <<
" of which used " << nrXtals << std::endl;
210 for (
int ix = 0; ix < nrXtals; ix++) {
214 for (
unsigned int i = 0;
i < lin_out_[ix].size();
i++) {
229 << fgvb_out_temp_.size() << std::endl;
230 for (
unsigned int i = 0;
i < fgvb_out_temp_.size();
i++) {
238 lin_out_, nrXtals, add_out_);
242 << add_out_.size() << std::endl;
243 for (
unsigned int ix = 0; ix < add_out_.size(); ix++) {
251 filt_out_[0] = add_out_[0];
252 peak_out_[0] = add_out_[0];
263 << filt_out_.size() << std::endl;
264 for (
unsigned int ix = 0; ix < filt_out_.size(); ix++) {
266 << filt_out_[ix] << std::endl;
270 std::cout <<
"output of sfgvb after filter is a vector of size: " 271 <<
std::dec << fgvb_out_.size() << std::endl;
272 for (
unsigned int ix = 0; ix < fgvb_out_.size(); ix++) {
274 << fgvb_out_[ix] << std::endl;
282 std::cout <<
"output of peakfinder is a vector of size: " 283 << peak_out_.size() << std::endl;
284 for (
unsigned int ix = 0; ix < peak_out_.size(); ix++) {
285 std::cout <<
"cryst: " << ix <<
" value : " << peak_out_[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 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
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
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_