17 bool tcpFormat,
bool debug,
bool famos,
int binOfMax,
int maxNrSamples,
int nbMaxStrips,
bool tpInfoPrintout)
18 : debug_(
debug), nbMaxStrips_(nbMaxStrips), tpInfoPrintout_(tpInfoPrintout) {
32 std::vector<int> vec(maxNrSamples, 0);
58 std::vector<EcalTriggerPrimitiveSample> &tptow,
59 std::vector<EcalTriggerPrimitiveSample> &tptow2,
86 std::vector<EcalTriggerPrimitiveSample> &tptow,
87 std::vector<EcalTriggerPrimitiveSample> &tptow2,
118 even_adder_outputs.append(
" ");
126 odd_adder_outputs.append(
" ");
144 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
145 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
156 maxOf2_outputs.append(
" ");
175 fgvb_output.append(
" ");
190 for (
unsigned int i = 3;
i < tcp_out.size();
i++) {
196 edm::LogVerbatim(
"EcalTPG") <<
"\noutput of TCP formatter Barrel is a vector of size: " << tcp_out.size();
198 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
215 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
216 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
243 edm::LogVerbatim(
"EcalTPG") <<
"\noutput of TCP formatter(endcap) is a vector of size: " << tcp_out.size();
245 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
Log< level::Info, true > LogVerbatim
void process_part2_endcap(std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, bool isInInnerRings, EcalTrigTowerDetId towid)
const EcalTPGFineGrainEBIdMap * ecaltpgFineGrainEB_
void setParameters(uint32_t towid, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB)
EcalFenixTcpFormatEB * getFormatterEB() const
class for calculation of Et for Fenix tcp calculates the sum. As in the firmware the Et sum is splitt...
EcalFenixTcpsFgvbEB * sfgvbEB_
EcalFenixMaxof2 * maxOf2_
const EcalTPGTPMode * ecaltpgTPMode_
calculation of Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel
void process(std::vector< int > &add_out, std::vector< int > &maxof2_out, std::vector< int > &output)
void process(std::vector< EBDataFrame > &bid, std::vector< std::vector< int >> &tpframetow, int nStr, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, bool isInInnerRings, EcalTrigTowerDetId thisTower)
EcalFenixTcp(bool tcpFormat, bool debug, bool famos, int binOfMax, int maxNrSamples, int nbMaxStrips, bool TPinfoPrintout)
void process_part1(std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask, int bitOddEven)
const EcalTPGSpike * ecaltpgSpike_
static std::string to_string(const XMLCh *ch)
void process(std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, std::vector< int > &out)
std::vector< int > fgvb_out_
virtual std::vector< int > process(const std::vector< EBDataFrame *> &)
const EcalTPGTowerStatus * ecaltpgBadTT_
EcalFenixTcpFgvbEE * fgvbEE_
std::vector< EcalFenixBypassLin * > bypasslin_
const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup_
EcalFenixTcpFormatEE * getFormatterEE() const
const EcalTPGLutIdMap * ecaltpgLut_
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
EcalFenixTcpFgvbEE * getFGVBEE() const
void setParameters(uint32_t towid, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE)
const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE_
EcalFenixMaxof2 * getMaxOf2() const
EcalFenixTcpFormatEE * formatter_EE_
std::vector< int > adder_odd_out_
EcalFenixFgvbEB * fgvbEB_
EcalFenixTcpsFgvbEB * getsFGVBEB() const
constexpr uint32_t rawId() const
get the raw id
calculation of Fgvb for Fenix Tcp, format endcap calculates fgvb for the endcap
std::vector< int > adder_even_out_
std::vector< int > maxOf2_out_
std::vector< int > strip_fgvb_out_
void process_part2_barrel(std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, EcalTrigTowerDetId towid)
EcalFenixFgvbEB * getFGVBEB() const
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
EcalFenixTcpFormatEB * formatter_EB_
const EcalTPGLutGroup * ecaltpgLutGroup_
EcalFenixEtTot * getAdder() const
std::vector< std::vector< int > > bypasslin_out_
Linearisation for Tcp input: 16 bits output: 12 bits +1 going to fgvb (???)
calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel ...