|
|
Go to the documentation of this file.
21 : theMapping_(theMapping), debug_(
debug), famos_(famos), nbMaxXtals_(nbMaxXtals), tpInfoPrintout_(tpInfoPrintout) {
35 v.resize(maxNrSamples);
37 for (
int i = 0;
i < 5;
i++)
67 edm::LogWarning(
"EcalTPG") <<
"Warning: 0 size vector found in EcalFenixStripProcess!!!!!";
71 uint32_t stripid = elId.
rawId() & 0xfffffff8;
94 std::cout <<
" Warning: 0 size vector found in EcalFenixStripProcess!!!!!" << std::endl;
98 uint32_t stripid = elId.
rawId() & 0xfffffff8;
136 std::cout <<
"\n\nEcalFenixStrip input is a vector of size: " << nrXtals << std::endl;
138 std::cout <<
"ECAL TPG TPMode printout:" << std::endl;
143 for (
int cryst = 0; cryst < nrXtals; cryst++) {
146 std::cout <<
"crystal " << cryst <<
" EBDataFrame/EEDataFrame is (ADC counts): " << std::endl;
147 for (
int i = 0;
i <
df[cryst].size();
i++) {
159 << nrXtals << std::endl;
160 for (
int ix = 0; ix < nrXtals; ix++) {
163 for (
unsigned int i = 0;
i <
lin_out_[ix].size();
i++) {
187 for (
unsigned int ix = 0; ix <
add_out_.size(); ix++) {
213 for (
unsigned int ix = 0; ix <
fgvb_out_.size(); ix++) {
273 std::cout <<
"output of strip EB formatter is a vector of size: " <<
format_out_.size() << std::endl;
275 for (
unsigned int ix = 0; ix <
format_out_.size(); ix++) {
277 << std::bitset<14>(
format_out_[ix]).to_string() << std::endl;
297 std::cout <<
"output of strip EE formatter is a vector of size: " <<
format_out_.size() << std::endl;
299 for (
unsigned int ix = 0; ix <
format_out_.size(); ix++) {
301 << std::bitset<14>(
format_out_[ix]).to_string() << std::endl;
const EcalTPGPedestals * ecaltpPed_
const EcalTPGOddWeightGroup * ecaltpgOddWeightGroup_
EcalFenixLinearizer * getLinearizer(int i) const
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
void process(std::vector< std::vector< int >> &lin_out, std::vector< int > &output)
std::vector< int > add_out_
virtual ~EcalFenixStrip()
std::vector< int > even_filt_out_
const EcalTPGStripStatus * ecaltpgStripStatus_
EcalFenixAmplitudeFilter * amplitude_filter_
calculates the peak for Fenix strip, barrel input : 18 bits output: boolean
void process_part2_endcap(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGStripStatus *ecaltpgStripStatus)
bool getMissedStripFlag() const
const EcalTPGWeightIdMap * ecaltpgWeightMap_
EcalFenixStripFormatEE * getFormatterEE() const
const EcalTPGWeightGroup * ecaltpgWeightGroup_
void process(const std::vector< std::vector< int >> &linout, int nrXtals, std::vector< int > &output)
void print(std::ostream &) const
Log< level::Warning, false > LogWarning
void setParameters(uint32_t raw, const EcalTPGOddWeightIdMap *ecaltpgOddWeightMap, const EcalTPGOddWeightGroup *ecaltpgOddWeightGroup)
std::vector< int > fgvb_out_temp_
const EcalTPGCrystalStatus * ecaltpgBadX_
EcalFenixStripFormatEB * fenixFormatterEB_
EcalFenixEtStrip * getAdder() const
void setParameters(int identif, uint32_t id, const EcalTPGFineGrainStripEE *)
EcalFenixOddAmplitudeFilter * getOddFilter() const
EcalFenixEtStrip * adder_
std::vector< int > format_out_
void setParameters(uint32_t raw, const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGCrystalStatus *ecaltpBadX)
EcalFenixStripFgvbEE * fgvbEE_
void process(std::vector< EBDataFrame > &samples, int nrXtals, std::vector< int > &out)
EcalFenixStripFormatEB * getFormatterEB() const
void process_part2_barrel(uint32_t stripid, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE)
Linearisation for Fenix strip input: 16 bits corresponding to input EBDataFrame output: 18 bits.
const EcalTPGSlidingWindow * ecaltpgSlidW_
calculation of Fgvb for the endcap in Fenix Strip calculates fgvb for the endcap in Fenix Strip
EcalFenixStripFgvbEE * getFGVB() const
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
EcalFenixStrip(const EcalElectronicsMapping *theMapping, bool debug, bool famos, int maxNrSamples, int nbMaxXtals, bool TPinfoPrintout)
const EcalTPGOddWeightIdMap * ecaltpgOddWeightMap_
std::vector< std::vector< int > > lin_out_
std::vector< int > odd_peak_out_
EcalFenixPeakFinder * getPeakFinder() const
void setParameters(uint32_t raw, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup)
const EcalTPGTPMode * ecaltpgTPMode_
std::vector< EcalFenixLinearizer * > linearizer_
EcalFenixAmplitudeFilter * getEvenFilter() const
calculates .... for Fenix strip, barrel input: 18 bits output: 18 bits
EcalFenixOddAmplitudeFilter * oddAmplitude_filter_
const EcalTPGFineGrainStripEE * ecaltpgFgStripEE_
EcalFenixStripFormatEE * fenixFormatterEE_
const EcalElectronicsMapping * theMapping_
std::vector< int > even_peak_out_
std::vector< int > fgvb_out_
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 EcalTPGOddWeightIdMap *ecaltpgOddWeightMap, const EcalTPGOddWeightGroup *ecaltpgOddWeightGroup, const EcalTPGCrystalStatus *ecaltpBadX)
const EcalTPGLinearizationConst * ecaltpLin_
EcalFenixPeakFinder * peak_finder_
std::vector< int > odd_filt_out_