CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
EcalFenixTcp Class Reference

class representing the Fenix chip, format strip More...

#include <EcalFenixTcp.h>

Public Member Functions

 EcalFenixTcp (const edm::EventSetup &setup, bool tcpFormat, bool debug, bool famos, int binOfMax, int maxNrSamples, int nbMaxStrips)
 
EcalFenixEtTotgetAdder () const
 
EcalFenixBypassLingetBypasslin (int i) const
 
EcalFenixFgvbEBgetFGVBEB () const
 
EcalFenixTcpFgvbEEgetFGVBEE () const
 
EcalFenixTcpFormatgetFormatter () const
 
EcalFenixMaxof2getMaxOf2 () const
 
EcalFenixTcpsFgvbEBgetsFGVBEB () const
 
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)
 
void process (const edm::EventSetup &setup, std::vector< EEDataFrame > &bid, std::vector< std::vector< int >> &tpframetow, int nStr, std::vector< EcalTriggerPrimitiveSample > &tptow, std::vector< EcalTriggerPrimitiveSample > &tptow2, bool isInInnerRings, EcalTrigTowerDetId thisTower)
 
void process_part1 (std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask)
 
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)
 
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)
 
void setPointers (const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike)
 
virtual ~EcalFenixTcp ()
 

Public Attributes

const EcalTPGTowerStatusecaltpgBadTT_
 
const EcalTPGFineGrainEBGroupecaltpgFgEBGroup_
 
const EcalTPGFineGrainEBIdMapecaltpgFineGrainEB_
 
const EcalTPGFineGrainTowerEEecaltpgFineGrainTowerEE_
 
const EcalTPGLutIdMapecaltpgLut_
 
const EcalTPGLutGroupecaltpgLutGroup_
 
const EcalTPGSpikeecaltpgSpike_
 

Private Attributes

EcalFenixEtTotadder_
 
std::vector< int > adder_out_
 
std::vector< EcalFenixBypassLin * > bypasslin_
 
std::vector< std::vector< int > > bypasslin_out_
 
bool debug_
 
std::vector< int > fgvb_out_
 
EcalFenixFgvbEBfgvbEB_
 
EcalFenixTcpFgvbEEfgvbEE_
 
EcalFenixTcpFormatformatter_
 
EcalFenixMaxof2maxOf2_
 
std::vector< int > maxOf2_out_
 
int nbMaxStrips_
 
EcalFenixTcpsFgvbEBsfgvbEB_
 
std::vector< int > strip_fgvb_out_
 

Detailed Description

class representing the Fenix chip, format strip

Definition at line 33 of file EcalFenixTcp.h.

Constructor & Destructor Documentation

EcalFenixTcp::EcalFenixTcp ( const edm::EventSetup setup,
bool  tcpFormat,
bool  debug,
bool  famos,
int  binOfMax,
int  maxNrSamples,
int  nbMaxStrips 
)

Definition at line 14 of file EcalFenixTcp.cc.

References adder_, adder_out_, bypasslin_, bypasslin_out_, debug_, fgvb_out_, fgvbEB_, fgvbEE_, formatter_, mps_fire::i, maxOf2_, maxOf2_out_, nbMaxStrips_, sfgvbEB_, and strip_fgvb_out_.

Referenced by setPointers().

17  : debug_(debug), nbMaxStrips_(nbMaxStrips) {
18  bypasslin_.resize(nbMaxStrips_);
19  for (int i = 0; i < nbMaxStrips_; i++)
21  adder_ = new EcalFenixEtTot();
22  maxOf2_ = new EcalFenixMaxof2(maxNrSamples, nbMaxStrips_);
23  formatter_ = new EcalFenixTcpFormat(tcpFormat, debug_, famos, binOfMax);
24  fgvbEB_ = new EcalFenixFgvbEB(maxNrSamples);
25  fgvbEE_ = new EcalFenixTcpFgvbEE(maxNrSamples);
27 
28  // permanent data structures
29  bypasslin_out_.resize(nbMaxStrips_);
30  std::vector<int> vec(maxNrSamples, 0);
31  for (int i = 0; i < nbMaxStrips_; i++)
32  bypasslin_out_[i] = vec;
33  adder_out_.resize(maxNrSamples);
34  maxOf2_out_.resize(maxNrSamples);
35  fgvb_out_.resize(maxNrSamples);
36  strip_fgvb_out_.resize(maxNrSamples);
37 }
class for calculation of Et for Fenix tcp calculates the sum
EcalFenixTcpsFgvbEB * sfgvbEB_
Definition: EcalFenixTcp.h:45
EcalFenixMaxof2 * maxOf2_
Definition: EcalFenixTcp.h:40
EcalFenixTcpFormat * formatter_
Definition: EcalFenixTcp.h:47
calculation of Fgvb for Fenix Tcp, format barrel calculates fgvb for the barrel
std::vector< int > fgvb_out_
Definition: EcalFenixTcp.h:53
EcalFenixTcpFgvbEE * fgvbEE_
Definition: EcalFenixTcp.h:44
std::vector< EcalFenixBypassLin * > bypasslin_
Definition: EcalFenixTcp.h:41
EcalFenixFgvbEB * fgvbEB_
Definition: EcalFenixTcp.h:43
#define debug
Definition: HDRShower.cc:19
calculation of Fgvb for Fenix Tcp, format endcap calculates fgvb for the endcap
std::vector< int > maxOf2_out_
Definition: EcalFenixTcp.h:52
std::vector< int > strip_fgvb_out_
Definition: EcalFenixTcp.h:54
std::vector< std::vector< int > > bypasslin_out_
Definition: EcalFenixTcp.h:50
EcalFenixEtTot * adder_
Definition: EcalFenixTcp.h:42
std::vector< int > adder_out_
Definition: EcalFenixTcp.h:51
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 ...
EcalFenixTcp::~EcalFenixTcp ( )
virtual

Definition at line 39 of file EcalFenixTcp.cc.

References adder_, bypasslin_, fgvbEB_, fgvbEE_, formatter_, mps_fire::i, maxOf2_, and nbMaxStrips_.

Referenced by setPointers().

39  {
40  for (int i = 0; i < nbMaxStrips_; i++)
41  delete bypasslin_[i];
42  delete adder_;
43  delete maxOf2_;
44  delete formatter_;
45  delete fgvbEB_;
46  delete fgvbEE_;
47 }
EcalFenixMaxof2 * maxOf2_
Definition: EcalFenixTcp.h:40
EcalFenixTcpFormat * formatter_
Definition: EcalFenixTcp.h:47
EcalFenixTcpFgvbEE * fgvbEE_
Definition: EcalFenixTcp.h:44
std::vector< EcalFenixBypassLin * > bypasslin_
Definition: EcalFenixTcp.h:41
EcalFenixFgvbEB * fgvbEB_
Definition: EcalFenixTcp.h:43
EcalFenixEtTot * adder_
Definition: EcalFenixTcp.h:42

Member Function Documentation

EcalFenixEtTot* EcalFenixTcp::getAdder ( ) const
inline

Definition at line 120 of file EcalFenixTcp.h.

References adder_.

Referenced by process_part1().

120 { return adder_; }
EcalFenixEtTot * adder_
Definition: EcalFenixTcp.h:42
EcalFenixBypassLin* EcalFenixTcp::getBypasslin ( int  i) const
inline

Definition at line 119 of file EcalFenixTcp.h.

References mps_fire::i.

119 { return bypasslin_[i]; }
std::vector< EcalFenixBypassLin * > bypasslin_
Definition: EcalFenixTcp.h:41
EcalFenixFgvbEB* EcalFenixTcp::getFGVBEB ( ) const
inline

Definition at line 123 of file EcalFenixTcp.h.

References fgvbEB_.

Referenced by process_part2_barrel().

123 { return fgvbEB_; }
EcalFenixFgvbEB * fgvbEB_
Definition: EcalFenixTcp.h:43
EcalFenixTcpFgvbEE* EcalFenixTcp::getFGVBEE ( ) const
inline

Definition at line 124 of file EcalFenixTcp.h.

References fgvbEE_.

Referenced by process_part2_endcap().

124 { return fgvbEE_; }
EcalFenixTcpFgvbEE * fgvbEE_
Definition: EcalFenixTcp.h:44
EcalFenixTcpFormat* EcalFenixTcp::getFormatter ( ) const
inline

Definition at line 122 of file EcalFenixTcp.h.

References formatter_.

Referenced by process_part2_barrel(), and process_part2_endcap().

122 { return formatter_; }
EcalFenixTcpFormat * formatter_
Definition: EcalFenixTcp.h:47
EcalFenixMaxof2* EcalFenixTcp::getMaxOf2 ( ) const
inline

Definition at line 121 of file EcalFenixTcp.h.

References maxOf2_.

Referenced by process_part2_barrel().

121 { return maxOf2_; }
EcalFenixMaxof2 * maxOf2_
Definition: EcalFenixTcp.h:40
EcalFenixTcpsFgvbEB* EcalFenixTcp::getsFGVBEB ( ) const
inline

Definition at line 125 of file EcalFenixTcp.h.

References sfgvbEB_.

Referenced by process_part2_barrel().

125 { return sfgvbEB_; }
EcalFenixTcpsFgvbEB * sfgvbEB_
Definition: EcalFenixTcp.h:45
void EcalFenixTcp::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 
)

Definition at line 50 of file EcalFenixTcp.cc.

References ecaltpgBadTT_, ecaltpgFgEBGroup_, ecaltpgFineGrainEB_, ecaltpgLut_, ecaltpgLutGroup_, ecaltpgSpike_, process_part1(), and process_part2_barrel().

Referenced by EcalTrigPrimFunctionalAlgo::run_part2(), and setPointers().

56  {
57 
58  int bitMask = 12;
59  process_part1(tpframetow, nStr, bitMask);
60 
61  process_part2_barrel(tpframetow, nStr, bitMask, ecaltpgFgEBGroup_,
63  ecaltpgBadTT_, ecaltpgSpike_, tptow, tptow2, towid);
64 }
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_
Definition: EcalFenixTcp.h:130
const EcalTPGSpike * ecaltpgSpike_
Definition: EcalFenixTcp.h:133
const EcalTPGTowerStatus * ecaltpgBadTT_
Definition: EcalFenixTcp.h:132
const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup_
Definition: EcalFenixTcp.h:127
void process_part1(std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask)
Definition: EcalFenixTcp.cc:83
const EcalTPGLutIdMap * ecaltpgLut_
Definition: EcalFenixTcp.h:129
const EcalTPGLutGroup * ecaltpgLutGroup_
Definition: EcalFenixTcp.h:128
void EcalFenixTcp::process ( const edm::EventSetup setup,
std::vector< EEDataFrame > &  bid,
std::vector< std::vector< int >> &  tpframetow,
int  nStr,
std::vector< EcalTriggerPrimitiveSample > &  tptow,
std::vector< EcalTriggerPrimitiveSample > &  tptow2,
bool  isInInnerRings,
EcalTrigTowerDetId  thisTower 
)

Definition at line 67 of file EcalFenixTcp.cc.

References ecaltpgBadTT_, ecaltpgFineGrainTowerEE_, ecaltpgLut_, ecaltpgLutGroup_, process_part1(), and process_part2_endcap().

73  {
74  int bitMask = 12; // Pascal: endcap has 12 bits as in EB (bug in FENIX!!!!)
75  // {was 10 before]
76  process_part1(tpframetow, nStr, bitMask);
77 
78  process_part2_endcap(tpframetow, nStr, bitMask, ecaltpgLutGroup_, ecaltpgLut_,
80  isInInnerRing, towid);
81 }
const EcalTPGTowerStatus * ecaltpgBadTT_
Definition: EcalFenixTcp.h:132
void process_part1(std::vector< std::vector< int >> &tpframetow, int nStr, int bitMask)
Definition: EcalFenixTcp.cc:83
const EcalTPGLutIdMap * ecaltpgLut_
Definition: EcalFenixTcp.h:129
const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE_
Definition: EcalFenixTcp.h:131
const EcalTPGLutGroup * ecaltpgLutGroup_
Definition: EcalFenixTcp.h:128
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)
void EcalFenixTcp::process_part1 ( std::vector< std::vector< int >> &  tpframetow,
int  nStr,
int  bitMask 
)

Definition at line 83 of file EcalFenixTcp.cc.

References adder_out_, gather_cfg::cout, debug_, getAdder(), mps_fire::i, and EcalFenixEtTot::process().

Referenced by process(), and setPointers().

84  {
85  // //call bypasslin
86  // for (int istrip=0;istrip<nStr;istrip ++){
87  // this->getBypasslin(istrip)->process(tpframetow[istrip],bypasslin_out_[istrip]);
88  // }
89  // //this is a test
90  // if (debug_) {
91  // std::cout<<"bypasslinout = "<<std::endl;
92  // for (int istrip=0;istrip<nStr;istrip ++){
93  // std::vector<int> stripin= bypasslin_out_[istrip];
94  // for (unsigned int is=0;is<stripin.size();is++){
95  // std::cout<<stripin[is]<<" ";
96  // }
97  // std::cout<<std::endl;
98  // }
99  // }
100 
101  // //call adder
102  // this->getAdder()->process(bypasslin_out_, nStr, bitMask,adder_out_);
103  this->getAdder()->process(tpframetow, nStr, bitMask, adder_out_);
104  // this is a test:
105  if (debug_) {
106  std::cout << "output of adder is a vector of size: " << adder_out_.size()
107  << std::endl;
108  std::cout << "value : " << std::endl;
109  for (unsigned int i = 0; i < adder_out_.size(); i++) {
110  std::cout << " " << adder_out_[i];
111  }
112  std::cout << std::endl;
113  }
114  // return adder_out;
115  return;
116 }
EcalFenixEtTot * getAdder() const
Definition: EcalFenixTcp.h:120
virtual std::vector< int > process(const std::vector< EBDataFrame * > &)
std::vector< int > adder_out_
Definition: EcalFenixTcp.h:51
void EcalFenixTcp::process_part2_barrel ( std::vector< std::vector< int >> &  bypasslinout,
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 
)

Definition at line 118 of file EcalFenixTcp.cc.

References adder_out_, gather_cfg::cout, debug_, TauDecayModes::dec, fgvb_out_, getFGVBEB(), getFormatter(), getMaxOf2(), getsFGVBEB(), mps_fire::i, maxOf2_out_, EcalFenixTcpsFgvbEB::process(), EcalFenixMaxof2::process(), EcalFenixTcpFormat::process(), EcalFenixFgvbEB::process(), DetId::rawId(), EcalFenixTcpFormat::setParameters(), EcalFenixFgvbEB::setParameters(), and strip_fgvb_out_.

Referenced by process(), and setPointers().

126  {
127  // call maxof2
128  // this->getMaxOf2()->process(bypasslin_out_,nStr,maxOf2_out_);
129  this->getMaxOf2()->process(bypasslinout, nStr, bitMask, maxOf2_out_);
130  // this is a test:
131  if (debug_) {
132  std::cout << "output of maxof2 is a vector of size: " << maxOf2_out_.size()
133  << std::endl;
134  std::cout << "value : " << std::endl;
135  for (unsigned int i = 0; i < maxOf2_out_.size(); i++) {
136  std::cout << " " << std::dec << maxOf2_out_[i];
137  }
138  std::cout << std::endl;
139  }
140 
141  // call fgvb
142 
143  this->getFGVBEB()->setParameters(towid.rawId(), ecaltpgFgEBGroup,
144  ecaltpgFineGrainEB);
146 
147  // Call sFGVB
148  this->getsFGVBEB()->process(bypasslinout, nStr, bitMask, strip_fgvb_out_);
149 
150  // this is a test:
151  if (debug_) {
152  std::cout << "output of fgvb is a vector of size: " << fgvb_out_.size()
153  << std::endl;
154  std::cout << "value : " << std::endl;
155  for (unsigned int i = 0; i < fgvb_out_.size(); i++) {
156  std::cout << " " << std::dec << fgvb_out_[i];
157  }
158  std::cout << std::endl;
159  }
160 
161  // call formatter
162  int eTTotShift = 2;
163 
164  this->getFormatter()->setParameters(towid.rawId(), ecaltpgLutGroup,
165  ecaltpgLut, ecaltpgBadTT, ecaltpgSpike);
167  eTTotShift, tcp_out, tcp_outTcc, false);
168  // this is a test:
169  if (debug_) {
170  std::cout << "output of TCP formatter Barrel is a vector of size: "
171  << std::dec << tcp_out.size() << std::endl;
172  std::cout << "value : " << std::endl;
173  for (unsigned int i = 0; i < tcp_out.size(); i++) {
174  std::cout << " " << i << " " << std::dec << tcp_out[i];
175  }
176  std::cout << std::endl;
177  }
178 
179  return;
180 }
void process(std::vector< int > &, std::vector< int > &)
void setParameters(uint32_t towid, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB)
void process(std::vector< std::vector< int >> &, int nStr, int bitMask, std::vector< int > &out)
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:50
EcalFenixFgvbEB * getFGVBEB() const
Definition: EcalFenixTcp.h:123
void process(std::vector< int > &add_out, std::vector< int > &maxof2_out, std::vector< int > &output)
EcalFenixMaxof2 * getMaxOf2() const
Definition: EcalFenixTcp.h:121
std::vector< int > fgvb_out_
Definition: EcalFenixTcp.h:53
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
EcalFenixTcpsFgvbEB * getsFGVBEB() const
Definition: EcalFenixTcp.h:125
void setParameters(uint32_t towid, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGTowerStatus *ecaltpgbadTT, const EcalTPGSpike *ecaltpgSpike)
std::vector< int > maxOf2_out_
Definition: EcalFenixTcp.h:52
std::vector< int > strip_fgvb_out_
Definition: EcalFenixTcp.h:54
EcalFenixTcpFormat * getFormatter() const
Definition: EcalFenixTcp.h:122
std::vector< int > adder_out_
Definition: EcalFenixTcp.h:51
void EcalFenixTcp::process_part2_endcap ( std::vector< std::vector< int >> &  bypasslinout,
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 
)

Definition at line 182 of file EcalFenixTcp.cc.

References adder_out_, gather_cfg::cout, debug_, TauDecayModes::dec, fgvb_out_, fgvbEE_, getFGVBEE(), getFormatter(), mps_fire::i, EcalFenixTcpFormat::process(), EcalFenixTcpFgvbEE::process(), DetId::rawId(), EcalFenixTcpFormat::setParameters(), EcalFenixTcpFgvbEE::setParameters(), and strip_fgvb_out_.

Referenced by process(), and setPointers().

191 {
192  // Zero EB strip records
193  for (unsigned int i = 0; i < strip_fgvb_out_.size(); ++i) {
194  strip_fgvb_out_[i] = 0;
195  }
196 
197  // call fgvb
198  this->getFGVBEE()->setParameters(towid.rawId(), ecaltpgFineGrainTowerEE);
199  // fgvbEE_->process(bypasslin_out_,nStr,bitMask,fgvb_out_);
200  fgvbEE_->process(bypasslinout, nStr, bitMask, fgvb_out_);
201 
202  // call formatter
203  int eTTotShift = 2; // Pascal: endcap has 12 bits as in EB (bug in FENIX!!!!)
204  // so shift must be applied to just keep [11:2]
205 
206  this->getFormatter()->setParameters(towid.rawId(), ecaltpgLutGroup,
207  ecaltpgLut, ecaltpgbadTT, nullptr);
208 
210  eTTotShift, tcp_out, tcp_outTcc,
211  isInInnerRings);
212  // this is a test:
213  if (debug_) {
214  std::cout << "output of TCP formatter(endcap) is a vector of size: "
215  << std::dec << tcp_out.size() << std::endl;
216  std::cout << "value : " << std::endl;
217  for (unsigned int i = 0; i < tcp_out.size(); i++) {
218  std::cout << " " << i << " " << std::dec << tcp_out[i] << std::endl;
219  }
220  std::cout << std::endl;
221  }
222  return;
223 }
void process(std::vector< int > &, std::vector< int > &)
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:50
EcalFenixTcpFgvbEE * getFGVBEE() const
Definition: EcalFenixTcp.h:124
std::vector< int > fgvb_out_
Definition: EcalFenixTcp.h:53
EcalFenixTcpFgvbEE * fgvbEE_
Definition: EcalFenixTcp.h:44
void setParameters(uint32_t towid, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE)
void setParameters(uint32_t towid, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGTowerStatus *ecaltpgbadTT, const EcalTPGSpike *ecaltpgSpike)
std::vector< int > strip_fgvb_out_
Definition: EcalFenixTcp.h:54
EcalFenixTcpFormat * getFormatter() const
Definition: EcalFenixTcp.h:122
void process(std::vector< std::vector< int >> &bypasslin_out, int nStr, int bitMask, std::vector< int > &output)
std::vector< int > adder_out_
Definition: EcalFenixTcp.h:51
void EcalFenixTcp::setPointers ( const EcalTPGFineGrainEBGroup ecaltpgFgEBGroup,
const EcalTPGLutGroup ecaltpgLutGroup,
const EcalTPGLutIdMap ecaltpgLut,
const EcalTPGFineGrainEBIdMap ecaltpgFineGrainEB,
const EcalTPGFineGrainTowerEE ecaltpgFineGrainTowerEE,
const EcalTPGTowerStatus ecaltpgBadTT,
const EcalTPGSpike ecaltpgSpike 
)
inline

Definition at line 58 of file EcalFenixTcp.h.

References debug, EcalFenixTcp(), ecaltpgBadTT_, ecaltpgFgEBGroup_, ecaltpgFineGrainEB_, ecaltpgFineGrainTowerEE_, ecaltpgLut_, ecaltpgLutGroup_, ecaltpgSpike_, process(), process_part1(), process_part2_barrel(), process_part2_endcap(), GeneralSetup::setup(), and ~EcalFenixTcp().

Referenced by EcalTrigPrimFunctionalAlgo::setPointers2().

64  {
65  ecaltpgFgEBGroup_ = ecaltpgFgEBGroup;
66  ecaltpgLutGroup_ = ecaltpgLutGroup;
67  ecaltpgLut_ = ecaltpgLut;
68  ecaltpgFineGrainEB_ = ecaltpgFineGrainEB;
69  ecaltpgFineGrainTowerEE_ = ecaltpgFineGrainTowerEE;
70  ecaltpgBadTT_ = ecaltpgBadTT;
71  ecaltpgSpike_ = ecaltpgSpike;
72  }
const EcalTPGFineGrainEBIdMap * ecaltpgFineGrainEB_
Definition: EcalFenixTcp.h:130
const EcalTPGSpike * ecaltpgSpike_
Definition: EcalFenixTcp.h:133
const EcalTPGTowerStatus * ecaltpgBadTT_
Definition: EcalFenixTcp.h:132
const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup_
Definition: EcalFenixTcp.h:127
const EcalTPGLutIdMap * ecaltpgLut_
Definition: EcalFenixTcp.h:129
const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE_
Definition: EcalFenixTcp.h:131
const EcalTPGLutGroup * ecaltpgLutGroup_
Definition: EcalFenixTcp.h:128

Member Data Documentation

EcalFenixEtTot* EcalFenixTcp::adder_
private

Definition at line 42 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), getAdder(), and ~EcalFenixTcp().

std::vector<int> EcalFenixTcp::adder_out_
private
std::vector<EcalFenixBypassLin *> EcalFenixTcp::bypasslin_
private

Definition at line 41 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), and ~EcalFenixTcp().

std::vector<std::vector<int> > EcalFenixTcp::bypasslin_out_
private

Definition at line 50 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp().

bool EcalFenixTcp::debug_
private
const EcalTPGTowerStatus* EcalFenixTcp::ecaltpgBadTT_

Definition at line 132 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGFineGrainEBGroup* EcalFenixTcp::ecaltpgFgEBGroup_

Definition at line 127 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGFineGrainEBIdMap* EcalFenixTcp::ecaltpgFineGrainEB_

Definition at line 130 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGFineGrainTowerEE* EcalFenixTcp::ecaltpgFineGrainTowerEE_

Definition at line 131 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGLutIdMap* EcalFenixTcp::ecaltpgLut_

Definition at line 129 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGLutGroup* EcalFenixTcp::ecaltpgLutGroup_

Definition at line 128 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

const EcalTPGSpike* EcalFenixTcp::ecaltpgSpike_

Definition at line 133 of file EcalFenixTcp.h.

Referenced by process(), and setPointers().

std::vector<int> EcalFenixTcp::fgvb_out_
private

Definition at line 53 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), process_part2_barrel(), and process_part2_endcap().

EcalFenixFgvbEB* EcalFenixTcp::fgvbEB_
private

Definition at line 43 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), getFGVBEB(), and ~EcalFenixTcp().

EcalFenixTcpFgvbEE* EcalFenixTcp::fgvbEE_
private

Definition at line 44 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), getFGVBEE(), process_part2_endcap(), and ~EcalFenixTcp().

EcalFenixTcpFormat* EcalFenixTcp::formatter_
private

Definition at line 47 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), getFormatter(), and ~EcalFenixTcp().

EcalFenixMaxof2* EcalFenixTcp::maxOf2_
private

Definition at line 40 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), getMaxOf2(), and ~EcalFenixTcp().

std::vector<int> EcalFenixTcp::maxOf2_out_
private

Definition at line 52 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), and process_part2_barrel().

int EcalFenixTcp::nbMaxStrips_
private

Definition at line 38 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), and ~EcalFenixTcp().

EcalFenixTcpsFgvbEB* EcalFenixTcp::sfgvbEB_
private

Definition at line 45 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), and getsFGVBEB().

std::vector<int> EcalFenixTcp::strip_fgvb_out_
private

Definition at line 54 of file EcalFenixTcp.h.

Referenced by EcalFenixTcp(), process_part2_barrel(), and process_part2_endcap().