15 bool debug,
bool famos,
int binOfMax,
16 int maxNrSamples,
int nbMaxStrips)
17 : debug_(debug), nbMaxStrips_(nbMaxStrips) {
30 std::vector<int> vec(maxNrSamples, 0);
52 std::vector<EBDataFrame> &bid,
53 std::vector<std::vector<int>> &tpframetow,
int nStr,
54 std::vector<EcalTriggerPrimitiveSample> &tptow,
55 std::vector<EcalTriggerPrimitiveSample> &tptow2,
bool isInInnerRing,
69 std::vector<EEDataFrame> &bid,
70 std::vector<std::vector<int>> &tpframetow,
int nStr,
71 std::vector<EcalTriggerPrimitiveSample> &tptow,
72 std::vector<EcalTriggerPrimitiveSample> &tptow2,
bool isInInnerRing,
80 isInInnerRing, towid);
84 int nStr,
int bitMask) {
119 std::vector<std::vector<int>> &bypasslinout,
int nStr,
int bitMask,
124 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
125 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
165 ecaltpgLut, ecaltpgBadTT, ecaltpgSpike);
167 eTTotShift, tcp_out, tcp_outTcc,
false);
170 std::cout <<
"output of TCP formatter Barrel is a vector of size: " 171 <<
std::dec << tcp_out.size() << std::endl;
173 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
183 std::vector<std::vector<int>> &bypasslinout,
int nStr,
int bitMask,
187 std::vector<EcalTriggerPrimitiveSample> &tcp_out,
188 std::vector<EcalTriggerPrimitiveSample> &tcp_outTcc,
bool isInInnerRings,
207 ecaltpgLut, ecaltpgbadTT,
nullptr);
210 eTTotShift, tcp_out, tcp_outTcc,
214 std::cout <<
"output of TCP formatter(endcap) is a vector of size: " 215 <<
std::dec << tcp_out.size() << std::endl;
217 for (
unsigned int i = 0;
i < tcp_out.size();
i++) {
void process_part2_barrel(std::vector< std::vector< int >> &, int nStr, int bitMask, 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)
const EcalTPGFineGrainEBIdMap * ecaltpgFineGrainEB_
void setParameters(uint32_t towid, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB)
class for calculation of Et for Fenix tcp calculates the sum
EcalFenixTcpsFgvbEB * sfgvbEB_
EcalFenixMaxof2 * maxOf2_
void process(std::vector< std::vector< int >> &, int nStr, int bitMask, std::vector< int > &out)
EcalFenixTcpFormat * formatter_
constexpr uint32_t rawId() const
get the raw id
calculation of Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel
void process(const edm::EventSetup &setup, std::vector< EBDataFrame > &bid, std::vector< std::vector< int >> &tpframetow, int nStr, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, bool isInInnerRings, EcalTrigTowerDetId thisTower)
EcalFenixFgvbEB * getFGVBEB() const
void process(std::vector< int > &add_out, std::vector< int > &maxof2_out, std::vector< int > &output)
def setup(process, global_tag, zero_tesla=False)
EcalFenixMaxof2 * getMaxOf2() const
const EcalTPGSpike * ecaltpgSpike_
EcalFenixTcpFgvbEE * getFGVBEE() const
std::vector< int > fgvb_out_
const EcalTPGTowerStatus * ecaltpgBadTT_
EcalFenixTcpFgvbEE * fgvbEE_
std::vector< EcalFenixBypassLin * > bypasslin_
const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup_
void process_part1(std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask)
const EcalTPGLutIdMap * ecaltpgLut_
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
void setParameters(uint32_t towid, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE)
const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE_
EcalFenixTcpsFgvbEB * getsFGVBEB() const
EcalFenixEtTot * getAdder() const
EcalFenixFgvbEB * fgvbEB_
calculation of Fgvb for Fenix Tcp, format endcap calculates fgvb for the endcap
std::vector< int > maxOf2_out_
std::vector< int > strip_fgvb_out_
EcalFenixTcpFormat * getFormatter() const
virtual std::vector< int > process(const std::vector< EBDataFrame * > &)
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
const EcalTPGLutGroup * ecaltpgLutGroup_
std::vector< std::vector< int > > bypasslin_out_
std::vector< int > adder_out_
EcalFenixTcp(const edm::EventSetup &setup, bool tcpFormat, bool debug, bool famos, int binOfMax, int maxNrSamples, int nbMaxStrips)
Linearisation for Tcp input: 16 bits output: 12 bits +1 going to fgvb (???)
void process_part2_endcap(std::vector< std::vector< int >> &, int nStr, int bitMask, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, bool isInInnerRings, EcalTrigTowerDetId towid)
calculation of strip Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel ...