1 #ifndef _PHASE_2_L1_CALO_PFCLUSTER_EMULATOR_H_ 2 #define _PHASE_2_L1_CALO_PFCLUSTER_EMULATOR_H_ 122 GCTint_t best12131415161718 =
bestOf2(best121314151617, etaStripPeak.
p[18]);
205 float et_sumEta[3] = {0., 0., 0.};
209 if (
i + 1 ==
eta &&
j + 1 == phi) {
210 for (
int k = 0;
k < 3;
k++) {
217 float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
224 float et_sumEta[3] = {0., 0., 0.};
227 for (
int k = 0;
k <
nHfPhi / 6 + 2;
k++) {
240 if (
i ==
eta &&
j == phi) {
241 for (
int k = 0;
k < 3;
k++) {
242 et_sumEta[
k] = tempX[
i +
k][
j] + tempX[
i +
k][
j + 1] + tempX[
i +
k][
j + 2];
248 float pfcluster_et = et_sumEta[0] + et_sumEta[1] + et_sumEta[2];
257 if (
j + 1 >= phi &&
j <= phi + 1) {
271 if (
j + 1 >= phi &&
j <= phi + 1) {
290 float pfcluster_et =
getEt(temporary, regionMax.
eta, regionMax.
phi);
298 pfclusterReturn.
et = pfcluster_et;
299 pfclusterReturn.
eta = regionMax.
eta - 2 + etaoffset;
300 pfclusterReturn.
phi = regionMax.
phi - 2 + phioffset;
302 return pfclusterReturn;
314 float pfcluster_et =
getEtHF(temporary, regionMax.
eta, regionMax.
phi);
318 pfclusterReturn.
et = pfcluster_et;
319 pfclusterReturn.
eta = regionMax.
eta + etaoffset;
320 pfclusterReturn.
phi = regionMax.
phi + phioffset;
321 if (pfclusterReturn.
phi < 0)
324 return pfclusterReturn;
342 return GCTPfclusters;
360 return GCTPfclusters;
static constexpr int nHfRegions
PFcluster_t pfclusterHF(float temporary[nHfEta][nHfPhi/6], int etaoffset, int phioffset)
GCTpfcluster_t recoPfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
static constexpr int nPFClusterSLR
static constexpr int nHfEta
static constexpr int nSLR
static constexpr int nHfPhi
GCTint_t getPeakPosition(const Region_t ®ion)
void RemoveTmpHF(float temp[nHfEta][nHfPhi/6], int eta, int phi)
Region_t initStructure(float temp[nTowerEtaSLR][nTowerPhiSLR])
GCTint_t getPeakBin(const GCTEtaStripPeak_t &etaStripPeak)
float getEt(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi)
RegionHF_t initStructureHF(float temp[nHfEta][nHfPhi/6])
void RemoveTmp(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi)
GCTpfcluster_t GCTpfclusters[nPFClusterSLR]
GCTint_t getPeakOfStrip(const GCTEtaStrip_t &etaStrip)
GCTint_t getPeakBinHF(const GCTEtaHFStripPeak_t &etaStripPeak)
GCTint_t p[nTowerEtaSLR - 2]
static constexpr int nTowerEtaSLR
static constexpr int nTowerEta
PFcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset)
GCTint_t getPeakOfHFStrip(const GCTEtaHFStrip_t &etaStrip)
static constexpr int nTowerPhiSLR
static constexpr int nTowerPhi
GCTint_t getPeakPositionHF(const RegionHF_t ®ion)
GCTpfcluster_t recoPfclusterHF(float temporary[nHfEta][nHfPhi/6], int etaoffset, int phioffset)
float getEtHF(float temp[nHfEta][nHfPhi/6], int eta, int phi)
GCTint_t bestOf2(const GCTint_t &t0, const GCTint_t &t1)