Skip to content

Commit

Permalink
Add using namespace CLHEP to avoid compilation errors with new G4.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Nov 19, 2013
1 parent 2a2b393 commit ca3b102
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SLHCUpgradeSimulations/Geometry/src/PrintGeomMatInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <set>
#include <map>

using namespace CLHEP;

PrintGeomMatInfo::PrintGeomMatInfo(const edm::ParameterSet &p)
{
_dumpSummary = p.getUntrackedParameter<bool>("DumpSummary", true);
Expand Down Expand Up @@ -470,7 +472,7 @@ void PrintGeomMatInfo::dumpTouch(G4VPhysicalVolume * pv, unsigned int leafDepth,
out << leafDepth << spaces << "### VOLUME = " << lv->GetName()
<< " Copy No " << pv->GetCopyNo() << " in " << mother
<< " global position of centre " << globalpoint << " (r = "
<< globalpoint.perp() << ", phi = " << globalpoint.phi()/deg
<< globalpoint.perp() << ", phi = " << globalpoint.phi()/deg
<< ")" << std::endl;

int NoDaughters = lv->GetNoDaughters();
Expand Down
1 change: 1 addition & 0 deletions SimG4Core/CustomPhysics/src/CustomParticleFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <G4PhaseSpaceDecayChannel.hh>
#include "G4ProcessManager.hh"

using namespace CLHEP;

bool CustomParticleFactory::loaded = false;
std::set<G4ParticleDefinition *> CustomParticleFactory::m_particles;
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/CustomPhysicsList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include "SimG4Core/CustomPhysics/interface/FullModelHadronicProcess.hh"
#include "SimG4Core/CustomPhysics/interface/ToyModelHadronicProcess.hh"

using namespace CLHEP;


CustomPhysicsList::CustomPhysicsList(std::string name, const edm::ParameterSet & p) : G4VPhysicsConstructor(name) {
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/DummyChargeFlipProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "SimG4Core/CustomPhysics/interface/DummyChargeFlipProcess.h"

using namespace CLHEP;

DummyChargeFlipProcess::
DummyChargeFlipProcess(const G4String& processName) :
G4HadronicProcess(processName)
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/FullModelHadronicProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "SimG4Core/CustomPhysics/interface/CustomPDGParser.h"
#include "SimG4Core/CustomPhysics/interface/CustomParticle.h"

using namespace CLHEP;

FullModelHadronicProcess::FullModelHadronicProcess(G4ProcessHelper * aHelper, const G4String& processName) :
G4VDiscreteProcess(processName), theHelper(aHelper)
{}
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/FullModelReactionDynamics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#include <signal.h>
#include "G4ParticleTable.hh"

using namespace CLHEP;

// #include "DumpFrame.hh"

/* G4double GetQValue(G4ReactionProduct * aSec)
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/G4ProcessHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "SimG4Core/CustomPhysics/interface/CustomPDGParser.h"
#include "SimG4Core/CustomPhysics/interface/CustomParticle.h"

using namespace CLHEP;

G4ProcessHelper::G4ProcessHelper(const edm::ParameterSet & p){

particleTable = G4ParticleTable::GetParticleTable();
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/HadronicProcessHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"

using namespace CLHEP;

HadronicProcessHelper::HadronicProcessHelper(const std::string & fileName){

m_particleTable = G4ParticleTable::GetParticleTable();
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/CustomPhysics/src/ToyModelHadronicProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "SimG4Core/CustomPhysics/interface/HadronicProcessHelper.hh"
#include "SimG4Core/CustomPhysics/interface/Decay3Body.h"

using namespace CLHEP;

ToyModelHadronicProcess::ToyModelHadronicProcess(HadronicProcessHelper * aHelper, const G4String& processName) :
G4VDiscreteProcess(processName), m_verboseLevel(0), m_helper(aHelper), m_detachCloud(true)
{
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/plugins/GflashG4Watcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#include <TVector2.h>

using namespace CLHEP;

const double radLength = 8.9; // mm
const double rMoliere = 21.9; // mm
// constructors and destructor
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/src/G4MiscLHEPBuilder_WP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

#include "FWCore/MessageLogger/interface/MessageLogger.h"

using namespace CLHEP;

G4MiscLHEPBuilder_WP::G4MiscLHEPBuilder_WP(): wasActivated(false)
{
theWrappedAntiProtonInelastic=new GflashHadronWrapperProcess("G4AntiProtonInelasticProcess");
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/src/GflashEMShowerModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include "G4TouchableHandle.hh"
#include "G4VSensitiveDetector.hh"

using namespace CLHEP;

GflashEMShowerModel::GflashEMShowerModel(const G4String& modelName,
G4Envelope* envelope,
const edm::ParameterSet& parSet)
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/src/GflashHadronShowerModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

#include <vector>

using namespace CLHEP;

GflashHadronShowerModel::GflashHadronShowerModel(G4String modelName, G4Region* envelope, const edm::ParameterSet& parSet)
: G4VFastSimulationModel(modelName, envelope), theParSet(parSet)
{
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/src/GflashHadronWrapperProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "G4VProcess.hh"
#include "G4GPILSelection.hh"

using namespace CLHEP;

GflashHadronWrapperProcess::GflashHadronWrapperProcess(G4String processName) :
particleChange(0),
pmanager(0),
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/GFlash/src/ParametrisedPhysics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "G4IonConstructor.hh"
#include "G4RegionStore.hh"

using namespace CLHEP;


ParametrisedPhysics::ParametrisedPhysics(std::string name, const edm::ParameterSet & p) :
G4VPhysicsConstructor(name), theParSet(p)
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/KillSecondaries/src/KillSecondariesTrackAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include "G4Track.hh"

using namespace CLHEP;

KillSecondariesTrackAction::KillSecondariesTrackAction(edm::ParameterSet const & p) {

killHeavy = p.getParameter<bool>("KillHeavy");
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/PrintGeomInfo/src/PrintGeomInfoAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <set>
#include <map>

using namespace CLHEP;

PrintGeomInfoAction::PrintGeomInfoAction(const edm::ParameterSet &p) {

_dumpSummary = p.getUntrackedParameter<bool>("DumpSummary", true);
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/PrintGeomInfo/src/PrintSensitive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <set>
#include <map>

using namespace CLHEP;

PrintSensitive::PrintSensitive(const edm::ParameterSet &p) {
name = p.getUntrackedParameter<std::string>("Name","*");
nchar = name.find("*");
Expand Down
2 changes: 2 additions & 0 deletions SimG4Core/TrackingVerbose/src/TrackingVerboseAction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include<algorithm>

using namespace CLHEP;

TrackingVerboseAction::TrackingVerboseAction(edm::ParameterSet const & p) :
theTrackingManager(0), fVerbose(0) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

#include "TrackingMaterialProducer.h"

using namespace CLHEP;

// missing from GEANT4 < 9.0 : G4LogicalVolumeStore::GetVolume( name )
static
const G4LogicalVolume* GetVolume(const std::string& name) {
Expand Down
2 changes: 2 additions & 0 deletions Validation/Geometry/src/MaterialBudgetHcal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <iostream>

using namespace CLHEP;

MaterialBudgetHcal::MaterialBudgetHcal(const edm::ParameterSet& p):
theHistoHcal(0), theHistoCastor(0) {

Expand Down

0 comments on commit ca3b102

Please sign in to comment.