Skip to content

Commit

Permalink
Remove the use of #pragma once (cms-sw#47)
Browse files Browse the repository at this point in the history
Replace `#pragma once` with classical include guards.
  • Loading branch information
fwyzard authored May 15, 2018
1 parent 9f2cdbe commit 6c80eaf
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 30 deletions.
12 changes: 7 additions & 5 deletions CondFormats/SiPixelObjects/interface/SiPixelGainForHLTonGPU.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#pragma once
#ifndef CondFormats_SiPixelObjects_SiPixelGainForHLTonGPU_h
#define CondFormats_SiPixelObjects_SiPixelGainForHLTonGPU_h

#include<cstdint>
#include<tuple>
#include<cassert>
#include<cstdio>
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <tuple>

struct SiPixelGainForHLTonGPU_DecodingStructure{
uint8_t gain;
Expand Down Expand Up @@ -67,3 +68,4 @@ class SiPixelGainForHLTonGPU {
unsigned int noisyFlag_;
};

#endif // CondFormats_SiPixelObjects_SiPixelGainForHLTonGPU_h
11 changes: 7 additions & 4 deletions RecoLocalTracker/SiPixelClusterizer/plugins/gpuCalibPixel.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#pragma once

#include "CondFormats/SiPixelObjects/interface/SiPixelGainForHLTonGPU.h"
#ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h
#define RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h

#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cassert>

#include "CondFormats/SiPixelObjects/interface/SiPixelGainForHLTonGPU.h"

namespace gpuCalibPixel {

Expand Down Expand Up @@ -123,3 +124,5 @@ namespace gpuCalibPixel {


}

#endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuCalibPixel_h
6 changes: 4 additions & 2 deletions RecoLocalTracker/SiPixelClusterizer/plugins/gpuClustering.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once
#ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuClustering_h
#define RecoLocalTracker_SiPixelClusterizer_plugins_gpuClustering_h

#include <cassert>
#include <cstdint>
#include <cstdio>
#include<cassert>

namespace gpuClustering {

Expand Down Expand Up @@ -166,3 +167,4 @@ namespace gpuClustering {

} //namespace gpuClustering

#endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuClustering_h
22 changes: 10 additions & 12 deletions RecoLocalTracker/SiPixelRecHits/interface/PixelCPEFast.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
#pragma once

#include "RecoLocalTracker/SiPixelRecHits/interface/pixelCPEforGPU.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/PixelCPEBase.h"
#include "CalibTracker/SiPixelESProducers/interface/SiPixelCPEGenericDBErrorParametrization.h"


// The template header files
#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplate.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelGenError.h"

#include "HeterogeneousCore/CUDAUtilities/interface/CUDAHostAllocator.h"
#ifndef RecoLocalTracker_SiPixelRecHits_PixelCPEFast_h
#define RecoLocalTracker_SiPixelRecHits_PixelCPEFast_h

#include <utility>
#include <vector>

#include "CalibTracker/SiPixelESProducers/interface/SiPixelCPEGenericDBErrorParametrization.h"
#include "HeterogeneousCore/CUDAUtilities/interface/CUDAHostAllocator.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/PixelCPEBase.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelGenError.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplate.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/pixelCPEforGPU.h"

class MagneticField;
class PixelCPEFast final : public PixelCPEBase
Expand Down Expand Up @@ -85,3 +81,5 @@ public :
pixelCPEforGPU::ParamsOnGPU h_paramsOnGPU;
pixelCPEforGPU::ParamsOnGPU * d_paramsOnGPU; // copy of the above on the Device
};

#endif // RecoLocalTracker_SiPixelRecHits_PixelCPEFast_h
9 changes: 6 additions & 3 deletions RecoLocalTracker/SiPixelRecHits/plugins/PixelRecHits.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once
#ifndef RecoLocalTracker_SiPixelRecHits_plugins_PixelRecHits_h
#define RecoLocalTracker_SiPixelRecHits_plugins_PixelRecHits_h

#include<cstdint>
#include<vector>
#include <cstdint>
#include <vector>

namespace pixelCPEforGPU {
struct ParamsOnGPU;
Expand Down Expand Up @@ -37,3 +38,5 @@ HitsOnCPU pixelRecHits_wrapper(
uint32_t nModules, // active modules (with digis)
HitsOnGPU & hh
);

#endif // RecoLocalTracker_SiPixelRecHits_plugins_PixelRecHits_h
9 changes: 5 additions & 4 deletions RecoLocalTracker/SiPixelRecHits/plugins/gpuPixelRecHits.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once

#include "RecoLocalTracker/SiPixelRecHits/interface/pixelCPEforGPU.h"
#ifndef RecoLocalTracker_SiPixelRecHits_plugins_gpuPixelRecHits_h
#define RecoLocalTracker_SiPixelRecHits_plugins_gpuPixelRecHits_h

#include <cassert>
#include <cstdint>
#include <cstdio>
#include <limits>
#include <cassert>

#include "RecoLocalTracker/SiPixelRecHits/interface/pixelCPEforGPU.h"

namespace gpuPixelRecHits {

Expand Down Expand Up @@ -132,3 +132,4 @@ namespace gpuPixelRecHits {

}

#endif // RecoLocalTracker_SiPixelRecHits_plugins_gpuPixelRecHits_h

0 comments on commit 6c80eaf

Please sign in to comment.