Skip to content

Commit e02da84

Browse files
committed
fixes for failed code-checks
1 parent 8134e0d commit e02da84

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ namespace gctpf {
5454
gctEtaStrip_t s[nTowerEtaSLR];
5555
} region_t;
5656

57-
GCTint_t bestOf2(const GCTint_t& t0, const GCTint_t& t1) {
57+
inline GCTint_t bestOf2(const GCTint_t& t0, const GCTint_t& t1) {
5858
GCTint_t x;
5959
x = (t0.et > t1.et) ? t0 : t1;
6060

6161
return x;
6262
}
6363

64-
GCTint_t getPeakOfStrip(const gctEtaStrip_t& etaStrip) {
64+
inline GCTint_t getPeakOfStrip(const gctEtaStrip_t& etaStrip) {
6565
GCTint_t best12 = bestOf2(etaStrip.t[1], etaStrip.t[2]);
6666
GCTint_t best34 = bestOf2(etaStrip.t[3], etaStrip.t[4]);
6767
GCTint_t best56 = bestOf2(etaStrip.t[5], etaStrip.t[6]);
@@ -71,7 +71,7 @@ namespace gctpf {
7171
return bestAll;
7272
}
7373

74-
GCTint_t getPeakBin(const gctEtaStripPeak_t& etaStripPeak) {
74+
inline GCTint_t getPeakBin(const gctEtaStripPeak_t& etaStripPeak) {
7575
GCTint_t best01 = bestOf2(etaStripPeak.p[0], etaStripPeak.p[1]);
7676
GCTint_t best23 = bestOf2(etaStripPeak.p[2], etaStripPeak.p[3]);
7777
GCTint_t best45 = bestOf2(etaStripPeak.p[4], etaStripPeak.p[5]);
@@ -94,7 +94,7 @@ namespace gctpf {
9494
return bestAll;
9595
}
9696

97-
GCTint_t getPeakPosition(const region_t& region) {
97+
inline GCTint_t getPeakPosition(const region_t& region) {
9898
gctEtaStripPeak_t etaPeak;
9999
for (int i = 0; i < 19; i++) {
100100
etaPeak.p[i] = getPeakOfStrip(region.s[i + 1]);
@@ -104,7 +104,7 @@ namespace gctpf {
104104
return max;
105105
}
106106

107-
region_t initStructure(float temp[nTowerEtaSLR][nTowerPhiSLR]) {
107+
inline region_t initStructure(float temp[nTowerEtaSLR][nTowerPhiSLR]) {
108108
region_t r;
109109

110110
for (int i = 0; i < nTowerPhiSLR; i++) {
@@ -118,7 +118,7 @@ namespace gctpf {
118118
return r;
119119
}
120120

121-
float getEt(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi) {
121+
inline float getEt(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi) {
122122
float et_sumEta[3];
123123

124124
for (int i = 0; i < (nTowerEtaSLR - 2); i++) {
@@ -136,7 +136,7 @@ namespace gctpf {
136136
return pfcluster_et;
137137
}
138138

139-
void RemoveTmp(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi) {
139+
inline void RemoveTmp(float temp[nTowerEtaSLR][nTowerPhiSLR], int eta, int phi) {
140140
for (int i = 0; i < nTowerEtaSLR; i++) {
141141
if (i + 1 >= eta && i <= eta + 1) {
142142
for (int j = 0; j < nTowerPhiSLR; j++) {
@@ -150,7 +150,7 @@ namespace gctpf {
150150
return;
151151
}
152152

153-
GCTpfcluster_t recoPfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset) {
153+
inline GCTpfcluster_t recoPfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset) {
154154
GCTpfcluster_t pfclusterReturn;
155155

156156
region_t region;
@@ -174,7 +174,7 @@ namespace gctpf {
174174
return pfclusterReturn;
175175
}
176176

177-
GCTPfcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset) {
177+
inline GCTPfcluster_t pfcluster(float temporary[nTowerEtaSLR][nTowerPhiSLR], int etaoffset, int phioffset) {
178178
GCTpfcluster_t pfcluster[nPFClusterSLR];
179179

180180
for (int i = 0; i < nPFClusterSLR; i++) {

L1Trigger/L1CaloTrigger/plugins/Phase2L1CaloPFClusterEmulator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <fstream>
3939
#include <iomanip>
4040
#include <iostream>
41-
#include <stdio.h>
41+
#include <cstdio>
4242
#include "L1Trigger/L1CaloTrigger/interface/Phase2L1CaloPFClusterEmulator.h"
4343

4444
//
@@ -48,7 +48,7 @@
4848
class Phase2L1CaloPFClusterEmulator : public edm::stream::EDProducer<> {
4949
public:
5050
explicit Phase2L1CaloPFClusterEmulator(const edm::ParameterSet&);
51-
~Phase2L1CaloPFClusterEmulator();
51+
~Phase2L1CaloPFClusterEmulator() override;
5252

5353
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
5454

0 commit comments

Comments
 (0)