Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add using namespace CLHEP to avoid compilation errors with new G4. #1518

Merged
merged 1 commit into from Nov 20, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion SLHCUpgradeSimulations/Geometry/src/PrintGeomMatInfo.cc
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Expand Up @@ -24,6 +24,8 @@

#include<algorithm>

using namespace CLHEP;

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

Expand Down
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
Expand Up @@ -17,6 +17,8 @@

#include <iostream>

using namespace CLHEP;

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

Expand Down