|
|
Go to the documentation of this file.
15 bool tcpFormat,
bool debug,
bool famos,
int binOfMax,
int maxNrSamples,
int nbMaxStrips,
bool tpInfoPrintout)
16 : debug_(
debug), nbMaxStrips_(nbMaxStrips), tpInfoPrintout_(tpInfoPrintout) {
30 std::vector<int> vec(maxNrSamples, 0);
56 std::vector<EcalTriggerPrimitiveSample> &tptow,
57 std::vector<EcalTriggerPrimitiveSample> &tptow2,
84 std::vector<EcalTriggerPrimitiveSample> &tptow,
85 std::vector<EcalTriggerPrimitiveSample> &tptow2,
139 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
140 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
183 for (
unsigned int i = 3;
i < tcp_out.size();
i++) {
189 std::cout <<
"output of TCP formatter Barrel is a vector of size: " <<
std::dec << tcp_out.size() << std::endl;
191 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
208 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
209 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
237 std::cout <<
"output of TCP formatter(endcap) is a vector of size: " <<
std::dec << tcp_out.size() << std::endl;
239 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
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)
Linearisation for Tcp input: 16 bits output: 12 bits +1 going to fgvb (???)
virtual std::vector< int > process(const std::vector< EBDataFrame * > &)
std::vector< int > adder_odd_out_
const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup_
EcalFenixTcpsFgvbEB * getsFGVBEB() const
void process(std::vector< int > &add_out, std::vector< int > &maxof2_out, std::vector< int > &output)
std::vector< int > maxOf2_out_
calculation of Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel
void process(std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, std::vector< int > &out)
std::vector< int > adder_even_out_
calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel
const EcalTPGLutGroup * ecaltpgLutGroup_
EcalFenixFgvbEB * getFGVBEB() const
EcalFenixEtTot * getAdder() const
void process_part1(std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask, int bitOddEven)
std::vector< int > fgvb_out_
std::vector< std::vector< int > > bypasslin_out_
EcalFenixTcpFormatEB * formatter_EB_
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
const EcalTPGSpike * ecaltpgSpike_
EcalFenixTcpFgvbEE * getFGVBEE() const
const EcalTPGFineGrainEBIdMap * ecaltpgFineGrainEB_
calculation of Fgvb for Fenix Tcp, format endcap calculates fgvb for the endcap
EcalFenixTcpFormatEB * getFormatterEB() const
EcalFenixTcpFormatEE * getFormatterEE() const
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)
EcalFenixTcpsFgvbEB * sfgvbEB_
void setParameters(uint32_t towid, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE)
class for calculation of Et for Fenix tcp calculates the sum. As in the firmware the Et sum is splitt...
constexpr uint32_t rawId() const
get the raw id
EcalFenixTcpFormatEE * formatter_EE_
EcalFenixTcp(bool tcpFormat, bool debug, bool famos, int binOfMax, int maxNrSamples, int nbMaxStrips, bool TPinfoPrintout)
const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE_
const EcalTPGLutIdMap * ecaltpgLut_
EcalFenixFgvbEB * fgvbEB_
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 EcalTPGTPMode * ecaltpgTPMode_
void setParameters(uint32_t towid, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB)
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
const EcalTPGTowerStatus * ecaltpgBadTT_
EcalFenixMaxof2 * getMaxOf2() const
std::vector< EcalFenixBypassLin * > bypasslin_
std::vector< int > strip_fgvb_out_
EcalFenixMaxof2 * maxOf2_
EcalFenixTcpFgvbEE * fgvbEE_