Skip to content

Commit d4a9b65

Browse files
use CLHEP namespace for c_light and update header guard
1 parent db9678b commit d4a9b65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CondFormats/BeamSpotObjects/interface/SimBeamSpotHLLHCObjects.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef SIMBEAMSPOTHLLHCOBJECTS_H
2-
#define SIMBEAMSPOTHLLHCOBJECTS_H
1+
#ifndef CondFormats_BeamSpotObjects_SimBeamSpotHLLHCObjects_h
2+
#define CondFormats_BeamSpotObjects_SimBeamSpotHLLHCObjects_h
33

44
/** \class SimBeamSpotHLLHCObjects
55
*

IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ HLLHCEvtVtxGenerator::HLLHCEvtVtxGenerator(const edm::ParameterSet& p) : BaseEvt
5454
fMeanX = p.getParameter<double>("MeanXIncm") * CLHEP::cm;
5555
fMeanY = p.getParameter<double>("MeanYIncm") * CLHEP::cm;
5656
fMeanZ = p.getParameter<double>("MeanZIncm") * CLHEP::cm;
57-
fTimeOffset = p.getParameter<double>("TimeOffsetInns") * CLHEP::ns * c_light;
57+
fTimeOffset = p.getParameter<double>("TimeOffsetInns") * CLHEP::ns * CLHEP::c_light;
5858
fEProton = p.getParameter<double>("EprotonInGeV") * 1e9;
5959
fCrossingAngle = p.getParameter<double>("CrossingAngleInurad") * 1e-6;
6060
fCrabFrequency = p.getParameter<double>("CrabFrequencyInMHz") * 1e6;
@@ -106,7 +106,7 @@ void HLLHCEvtVtxGenerator::update(const edm::EventSetup& iEventSetup) {
106106
fBunchLength = beamhandle->bunchLenght();
107107
fCrabbingAngleCrossing = beamhandle->crabbingAngleCrossing() * 1e-6;
108108
fCrabbingAngleSeparation = beamhandle->crabbingAngleSeparation() * 1e-6;
109-
fTimeOffset = beamhandle->timeOffset() * CLHEP::ns * c_light;
109+
fTimeOffset = beamhandle->timeOffset() * CLHEP::ns * CLHEP::c_light;
110110
// Set parameters inferred from configurables
111111
gamma = fEProton / pmass + 1.0;
112112
beta = std::sqrt((1.0 - 1.0 / gamma) * ((1.0 + 1.0 / gamma)));

0 commit comments

Comments
 (0)