Skip to content

Commit ceaa66f

Browse files
authored
Merge pull request cms-sw#34051 from smuzaffar/12_0-code-checks-RECONSTRUCTION_UPGRADE
[RECONSTRUCTION_UPGRADE] Apply code-checks/format with misc-definitions-in-headers
2 parents 7ad0ed7 + 7aa3434 commit ceaa66f

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

RecoLocalCalo/HGCalRecProducers/plugins/HGCalCLUEAlgo.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,9 @@ void HGCalCLUEAlgoT<T>::calculateLocalDensity(const T& lt, const unsigned int la
297297
int iEta = HGCScintillatorDetId(cellsOnLayer.detid[i]).ieta();
298298
int otherIEta = HGCScintillatorDetId(cellsOnLayer.detid[otherId]).ieta();
299299
int dIPhi = otherIPhi - iPhi;
300-
dIPhi += abs(dIPhi) < 2
301-
? 0
302-
: dIPhi < 0 ? scintMaxIphi_
303-
: -scintMaxIphi_; // cells with iPhi=288 and iPhi=1 should be neiboring cells
300+
dIPhi += abs(dIPhi) < 2 ? 0
301+
: dIPhi < 0 ? scintMaxIphi_
302+
: -scintMaxIphi_; // cells with iPhi=288 and iPhi=1 should be neiboring cells
304303
int dIEta = otherIEta - iEta;
305304
LogDebug("HGCalCLUEAlgo") << " Debugging calculateLocalDensity for Scintillator: \n"
306305
<< " cell: " << otherId << " energy: " << cellsOnLayer.weight[otherId]

RecoLocalCalo/HGCalRecProducers/plugins/HGCalCellPositionsKernelImpl.cuh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#include "CUDADataFormats/HGCal/interface/HGCConditions.h"
88
#include "RecoLocalCalo/HGCalRecProducers/plugins/KernelManagerHGCalCellPositions.h"
99

10-
__global__
11-
void fill_positions_from_detids(const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
12-
13-
__global__
14-
void print_positions_from_detids(const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
10+
__global__ void fill_positions_from_detids(
11+
const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
1512

16-
__global__
17-
void test(uint32_t detid_test, const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
13+
__global__ void print_positions_from_detids(
14+
const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
1815

19-
#endif //RecoLocalCalo_HGCalESProducers_HGCalCellPositionsKernelImpl_cuh
16+
__global__ void test(uint32_t detid_test,
17+
const hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* conds);
18+
19+
#endif //RecoLocalCalo_HGCalESProducers_HGCalCellPositionsKernelImpl_cuh

RecoLocalCalo/HGCalRecProducers/plugins/HGCalRecHitKernelImpl.cuh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@
1010

1111
#include "RecoLocalCalo/HGCalRecProducers/plugins/KernelManagerHGCalRecHit.h"
1212

13-
__global__
14-
void ee_to_rechit(HGCRecHitSoA dst_soa, HGCUncalibRecHitSoA src_soa, HGCeeUncalibRecHitConstantData cdata, int length);
13+
__global__ void ee_to_rechit(HGCRecHitSoA dst_soa,
14+
HGCUncalibRecHitSoA src_soa,
15+
HGCeeUncalibRecHitConstantData cdata,
16+
int length);
1517

16-
__global__
17-
void hef_to_rechit(HGCRecHitSoA dst_soa, HGCUncalibRecHitSoA src_soa, HGChefUncalibRecHitConstantData cdata, int length);
18+
__global__ void hef_to_rechit(HGCRecHitSoA dst_soa,
19+
HGCUncalibRecHitSoA src_soa,
20+
HGChefUncalibRecHitConstantData cdata,
21+
int length);
1822

19-
__global__
20-
void heb_to_rechit(HGCRecHitSoA dst_soa, HGCUncalibRecHitSoA src_soa, HGChebUncalibRecHitConstantData cdata, int length);
21-
22-
#endif //RecoLocalCalo_HGCalRecProducers_HGCalRecHitKernelImpl_cuh
23+
__global__ void heb_to_rechit(HGCRecHitSoA dst_soa,
24+
HGCUncalibRecHitSoA src_soa,
25+
HGChebUncalibRecHitConstantData cdata,
26+
int length);
27+
28+
#endif //RecoLocalCalo_HGCalRecProducers_HGCalRecHitKernelImpl_cuh

0 commit comments

Comments
 (0)