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

Geant4.9.6ref10 backward compatible modifications #1382

Merged
merged 8 commits into from Nov 11, 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
1 change: 1 addition & 0 deletions Alignment/LaserAlignmentSimulation/src/LaserBeamsBarrel.cc
Expand Up @@ -16,6 +16,7 @@
#include "globals.hh" // Global Constants and typedefs
#include "G4ParticleDefinition.hh"
#include "G4ParticleGun.hh"
#include "G4SystemOfUnits.hh"

LaserBeamsBarrel::LaserBeamsBarrel() :
theParticleGun(0),
Expand Down
10 changes: 5 additions & 5 deletions Alignment/LaserAlignmentSimulation/src/LaserBeamsTEC1.cc
Expand Up @@ -12,6 +12,7 @@
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/RandomNumberGenerator.h"

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Random/RandGaussQ.h"
#include "globals.hh" // Global Constants and typedefs
#include "G4ParticleDefinition.hh"
Expand All @@ -28,11 +29,10 @@ LaserBeamsTEC1::LaserBeamsTEC1() :
LaserBeamsTEC1(nPhotonsGun, nPhotonsBeam, Energy);
}

LaserBeamsTEC1::LaserBeamsTEC1(G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy) : thenParticleInGun(0),
thenParticle(0),
thePhotonEnergy(0),
theParticleGun(),
theDRand48Engine()
LaserBeamsTEC1::LaserBeamsTEC1(G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy) :
thenParticleInGun(0),
thenParticle(0),
thePhotonEnergy(0)
{
/* *********************************************************************** */
/* initialize and configure the particle gun */
Expand Down
1 change: 1 addition & 0 deletions Alignment/LaserAlignmentSimulation/src/LaserBeamsTEC2.cc
Expand Up @@ -13,6 +13,7 @@
#include "FWCore/Utilities/interface/RandomNumberGenerator.h"

#include "CLHEP/Random/RandGaussQ.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "globals.hh" // Global Constants and typedefs
#include "G4ParticleDefinition.hh"
#include "G4ParticleGun.hh"
Expand Down
Expand Up @@ -11,6 +11,8 @@

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

#include "G4SystemOfUnits.hh"

LaserPrimaryGeneratorAction::LaserPrimaryGeneratorAction(edm::ParameterSet const& theConf)
: thePhotonEnergy(0),
thenParticleInGun(0),
Expand Down
2 changes: 2 additions & 0 deletions Alignment/LaserAlignmentSimulation/src/MaterialProperties.cc
Expand Up @@ -11,6 +11,8 @@

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

#include "G4SystemOfUnits.hh"

MaterialProperties::MaterialProperties(int DebugLevel, double SiAbsLengthScale)
: theMaterialTable(), theMPDebugLevel(0),
theSiAbsLengthScalingFactor(0),
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Calo/src/CaloG4Hit.cc
Expand Up @@ -5,6 +5,8 @@
#include "SimG4CMS/Calo/interface/CaloG4Hit.h"
#include <iostream>

#include "G4SystemOfUnits.hh"

G4Allocator<CaloG4Hit> CaloG4HitAllocator;

CaloG4Hit::CaloG4Hit(){
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/Calo/src/CaloSD.cc
Expand Up @@ -16,6 +16,9 @@
#include "G4GFlashSpot.hh"
#include "G4ParticleTable.hh"

#include "G4SystemOfUnits.hh"
#include "G4PhysicalConstants.hh"

//#define DebugLog

CaloSD::CaloSD(G4String name, const DDCompactView & cpv,
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Calo/src/CaloTrkProcessing.cc
Expand Up @@ -17,6 +17,8 @@
#include "G4Step.hh"
#include "G4Track.hh"

#include "G4SystemOfUnits.hh"

//#define DebugLog

CaloTrkProcessing::CaloTrkProcessing(G4String name,
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Calo/src/ECalSD.cc
Expand Up @@ -24,6 +24,8 @@
#include "G4Track.hh"
#include "G4VProcess.hh"

#include "G4SystemOfUnits.hh"

#include<algorithm>

//#define DebugLog
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Calo/src/HCalSD.cc
Expand Up @@ -29,6 +29,8 @@
#include <fstream>
#include <iomanip>

#include "G4SystemOfUnits.hh"

//#define DebugLog
//#define plotDebug

Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Calo/src/HFCherenkov.cc
Expand Up @@ -9,6 +9,8 @@
#include "G4ParticleDefinition.hh"
#include "G4NavigationHistory.hh"
#include "TMath.h"
#include "G4SystemOfUnits.hh"
#include "Randomize.hh"

//#define DebugLog

Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Calo/src/HFFibre.cc
Expand Up @@ -11,6 +11,7 @@
#include "FWCore/Utilities/interface/Exception.h"

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include <iostream>

//#define DebugLog
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Calo/src/HFFibreFiducial.cc
Expand Up @@ -3,6 +3,7 @@

#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"

#include<iostream>

//#define DebugLog
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/Calo/src/HFGflash.cc
Expand Up @@ -27,6 +27,9 @@
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"

#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"

#include <math.h>

//#define DebugLog
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Calo/src/HFShower.cc
Expand Up @@ -17,6 +17,7 @@
#include "G4VSolid.hh"
#include "Randomize.hh"
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"

//#define DebugLog

Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Calo/src/HFShowerLibrary.cc
Expand Up @@ -17,6 +17,7 @@
#include "G4Track.hh"
#include "Randomize.hh"
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"

//#define DebugLog

Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Calo/src/HFShowerParam.cc
Expand Up @@ -20,6 +20,7 @@

#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"

#include<iostream>

//#define DebugLog
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/CherenkovAnalysis/src/DreamSD.cc
Expand Up @@ -22,6 +22,9 @@
#include "SimG4CMS/CherenkovAnalysis/interface/DreamSD.h"
#include "SimG4CMS/CherenkovAnalysis/interface/PMTResponse.h"

#include "G4SystemOfUnits.hh"
#include "G4PhysicalConstants.hh"

//________________________________________________________________________________________
DreamSD::DreamSD(G4String name, const DDCompactView & cpv,
SensitiveDetectorCatalog & clg,
Expand Down
16 changes: 11 additions & 5 deletions SimG4CMS/EcalTestBeam/interface/EcalTBH4Trigger.h
Expand Up @@ -29,6 +29,8 @@
#include "G4VProcess.hh"
#include "G4VTouchable.hh"

#include "CLHEP/Units/SystemOfUnits.h"

// forward declarations
class DDDWorld;
class BeginOfJob;
Expand Down Expand Up @@ -106,18 +108,22 @@ class EcalTBH4Trigger : public SimWatcher,
const G4Track* theTrack = iStep->GetTrack();
const G4ThreeVector pos = post->GetPosition();
std::cout << "( "<<pos.x()<<","<<pos.y()<<","<<pos.z()<<") ";
std::cout << " released energy (MeV) " << iStep->GetTotalEnergyDeposit()/MeV ;
std::cout << " released energy (MeV) "
<< iStep->GetTotalEnergyDeposit()/CLHEP::MeV ;
if (theTrack)
{
const G4ThreeVector mom = theTrack->GetMomentum();
std::cout << " track length (cm) " << theTrack->GetTrackLength()/cm
std::cout << " track length (cm) " << theTrack->GetTrackLength()/CLHEP::cm
<< " particle type " << theTrack->GetDefinition()->GetParticleName()
<< " momentum " << "( "<<mom.x()<<","<<mom.y()<<","<<mom.z()<<") ";
if (theTrack->GetCreatorProcess())
std::cout << " created by " << theTrack->GetCreatorProcess()->GetProcessName();
if (theTrack->GetCreatorProcess()) {
std::cout << " created by "
<< theTrack->GetCreatorProcess()->GetProcessName();
}
}
if(post->GetPhysicalVolume()) {
std::cout << " " << pre->GetPhysicalVolume()->GetName() << "->" << post->GetPhysicalVolume()->GetName();
std::cout << " " << pre->GetPhysicalVolume()->GetName()
<< "->" << post->GetPhysicalVolume()->GetName();
}
std::cout <<std::endl;
}
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/EcalTestBeam/src/EcalTBH4BeamSD.cc
Expand Up @@ -17,6 +17,8 @@
#include "G4Track.hh"
#include "G4VProcess.hh"

#include "G4SystemOfUnits.hh"

EcalTBH4BeamSD::EcalTBH4BeamSD(G4String name, const DDCompactView & cpv,
SensitiveDetectorCatalog & clg,
edm::ParameterSet const & p,
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/FP420/plugins/FP420SD.cc
Expand Up @@ -35,6 +35,8 @@
#include "G4Step.hh"
#include "G4ParticleTable.hh"

#include "G4SystemOfUnits.hh"

#include <string>
#include <vector>
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/Forward/src/BscSD.cc
Expand Up @@ -34,6 +34,9 @@
#include "G4Step.hh"
#include "G4ParticleTable.hh"

#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"

#include <string>
#include <vector>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Forward/src/CastorSD.cc
Expand Up @@ -22,6 +22,7 @@
#include "G4LogicalVolumeStore.hh"

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "Randomize.hh"
#include "G4Poisson.hh"

Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/Forward/src/PLTSensitiveDetector.cc
Expand Up @@ -24,6 +24,8 @@
#include "G4Event.hh"
#include "G4VProcess.hh"

#include "G4SystemOfUnits.hh"

#include <string>
#include <vector>
#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions SimG4CMS/Forward/src/TotemSD.cc
Expand Up @@ -38,6 +38,10 @@
#include "G4Track.hh"
#include "G4VProcess.hh"

#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"


//
// constructors and destructor
//
Expand Down
4 changes: 3 additions & 1 deletion SimG4CMS/Forward/src/ZdcSD.cc
Expand Up @@ -6,15 +6,17 @@
///////////////////////////////////////////////////////////////////////////////
#include "SimG4CMS/Forward/interface/ZdcSD.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimG4Core/Notification/interface/TrackInformation.h"

#include "G4SDManager.hh"
#include "G4Step.hh"
#include "G4Track.hh"
#include "G4VProcess.hh"
#include "SimG4Core/Notification/interface/TrackInformation.h"
#include "G4ios.hh"
#include "G4Cerenkov.hh"
#include "G4ParticleTable.hh"
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"
#include "Randomize.hh"
#include "G4Poisson.hh"

Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/HcalTestBeam/src/HcalTB02HcalNumberingScheme.cc
Expand Up @@ -16,6 +16,8 @@
#include "SimG4CMS/HcalTestBeam/interface/HcalTB02HcalNumberingScheme.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "G4SystemOfUnits.hh"

using namespace std;

//
Expand Down
2 changes: 2 additions & 0 deletions SimG4CMS/HcalTestBeam/src/HcalTB02SD.cc
Expand Up @@ -27,6 +27,8 @@
#include "G4Track.hh"
#include "G4VProcess.hh"

#include "G4SystemOfUnits.hh"

//
// constructors and destructor
//
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Muon/src/MuonSensitiveDetector.cc
Expand Up @@ -21,6 +21,7 @@
#include "G4SDManager.hh"
#include "G4VProcess.hh"
#include "G4EventManager.hh"
#include "G4SystemOfUnits.hh"

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

Expand Down
Expand Up @@ -24,6 +24,9 @@

#include "SimDataFormats/CaloHit/interface/CastorShowerEvent.h"

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Units/GlobalPhysicalConstants.h"

#include "TFile.h"
#include <cmath>
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/ShowerLibraryProducer/src/HFChamberSD.cc
Expand Up @@ -13,6 +13,9 @@
#include "G4SDManager.hh"
#include "G4ios.hh"

#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"

HFChamberSD::HFChamberSD(std::string name, const DDCompactView & cpv,
SensitiveDetectorCatalog & clg, edm::ParameterSet const & p,
const SimTrackManager* manager) :
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/ShowerLibraryProducer/src/HFWedgeSD.cc
Expand Up @@ -13,6 +13,9 @@
#include "G4SDManager.hh"
#include "G4ios.hh"

#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"

HFWedgeSD::HFWedgeSD(std::string name, const DDCompactView & cpv,
SensitiveDetectorCatalog & clg, edm::ParameterSet const & p,
const SimTrackManager* manager) :
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Tracker/src/FakeFrameRotation.cc
@@ -1,4 +1,5 @@
#include "SimG4CMS/Tracker/interface/FakeFrameRotation.h"
#include "G4SystemOfUnits.hh"

Local3DPoint FakeFrameRotation::transformPoint(Local3DPoint & point,G4VPhysicalVolume * v=0) const {
return Local3DPoint(point.x()/cm,point.z()/cm,-point.y()/cm);
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Tracker/src/StandardFrameRotation.cc
@@ -1,4 +1,5 @@
#include "SimG4CMS/Tracker/interface/StandardFrameRotation.h"
#include "G4SystemOfUnits.hh"

Local3DPoint StandardFrameRotation::transformPoint(Local3DPoint & point,G4VPhysicalVolume * v=0) const {
return Local3DPoint(point.x()/cm,point.y()/cm,point.z()/cm);
Expand Down
3 changes: 3 additions & 0 deletions SimG4CMS/Tracker/src/TkAccumulatingSensitiveDetector.cc
Expand Up @@ -31,6 +31,9 @@
#include "G4EventManager.hh"
#include "G4Event.hh"

#include "G4SystemOfUnits.hh"


#include <string>
#include <vector>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions SimG4CMS/Tracker/src/TrackerFrameRotation.cc
@@ -1,4 +1,5 @@
#include "SimG4CMS/Tracker/interface/TrackerFrameRotation.h"
#include "G4SystemOfUnits.hh"

Local3DPoint TrackerFrameRotation::transformPoint(Local3DPoint & point,G4VPhysicalVolume * v=0) const {
return Local3DPoint(point.x()/cm,point.y()/cm,point.z()/cm);
Expand Down
1 change: 1 addition & 0 deletions SimG4Core/Application/src/GFlashEMShowerModel.cc
Expand Up @@ -20,6 +20,7 @@
#include "G4FastSimulationManager.hh"
#include "G4TouchableHandle.hh"
#include "G4VSensitiveDetector.hh"
#include "G4SystemOfUnits.hh"

GFlashEMShowerModel::GFlashEMShowerModel(const G4String& modelName,
G4Envelope* envelope,
Expand Down
1 change: 1 addition & 0 deletions SimG4Core/Application/src/ParametrisedEMPhysics.cc
Expand Up @@ -24,6 +24,7 @@

#include "G4EmProcessOptions.hh"
#include "G4PhysicsListHelper.hh"
#include "G4SystemOfUnits.hh"

ParametrisedEMPhysics::ParametrisedEMPhysics(std::string name, const edm::ParameterSet & p)
: G4VPhysicsConstructor(name), theParSet(p)
Expand Down
1 change: 1 addition & 0 deletions SimG4Core/Application/src/RunManager.cc
Expand Up @@ -54,6 +54,7 @@
#include "G4ParticleTable.hh"

#include "G4GDMLParser.hh"
#include "G4SystemOfUnits.hh"

#include <iostream>
#include <sstream>
Expand Down