Skip to content

Commit db9678b

Browse files
fix missed CLHEP declarations in HLLHCEvtVtxGenerator
1 parent d6b3a51 commit db9678b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ void HLLHCEvtVtxGenerator::update(const edm::EventSetup& iEventSetup) {
9292
if (readDB_ && parameterWatcher_.check(iEventSetup)) {
9393
edm::ESHandle<SimBeamSpotHLLHCObjects> beamhandle = iEventSetup.getHandle(beamToken_);
9494
// Read configurable parameters
95-
fMeanX = beamhandle->meanX() * cm;
96-
fMeanY = beamhandle->meanY() * cm;
97-
fMeanZ = beamhandle->meanZ() * cm;
95+
fMeanX = beamhandle->meanX() * CLHEP::cm;
96+
fMeanY = beamhandle->meanY() * CLHEP::cm;
97+
fMeanZ = beamhandle->meanZ() * CLHEP::cm;
9898
fEProton = beamhandle->eProton() * 1e9;
9999
fCrossingAngle = beamhandle->crossingAngle() * 1e-6;
100100
fCrabFrequency = beamhandle->crabFrequency() * 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() * ns * c_light;
109+
fTimeOffset = beamhandle->timeOffset() * CLHEP::ns * 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)