Skip to content
Snippets Groups Projects
Commit 7035a004 authored by matta's avatar matta
Browse files

* Fixing Warning in NPS and new bug created by previous warning fix

parent 861b2319
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ public: // Constructor and destructor
virtual ~EventGeneratorIsotropic();
public: // Inherit from VEventGenerator Class
void ReadConfiguration(string,int dump=0) ;
void ReadConfiguration(string,int) ;
void GenerateEvent(G4Event*) ;
void InitializeRootOutput() ;
......
......@@ -54,7 +54,7 @@ class EventGeneratorTwoBodyReaction : public VEventGenerator
public: // Inherit from VEventGenerator class
void ReadConfiguration(string,int dump=0);
void ReadConfiguration(string,int);
void GenerateEvent(G4Event*);
void SetTarget(Target* Target) ;
......
......@@ -53,7 +53,7 @@ public:
virtual ~VEventGenerator();
public:
virtual void ReadConfiguration(string,int iteration=0) {};
virtual void ReadConfiguration(string,int dump=0) {dump=0;};
virtual void GenerateEvent(G4Event*) {};
virtual void InitializeRootOutput() {};
......
......@@ -190,7 +190,7 @@ void EventGeneratorIsotropic::ReadConfiguration(string Path,int){
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void EventGeneratorIsotropic::GenerateEvent(G4Event* anEvent){
void EventGeneratorIsotropic::GenerateEvent(G4Event*){
if(m_particle==NULL){
if(m_particleName!="gamma"){
......
......@@ -64,8 +64,6 @@ void EventGeneratorParticleDecay::ReadConfiguration(string Path,int Occurence){
bool ReadingStatusParticleDecay = false ;
bool check_Daughter = false ;
bool check_CrossSection = false ;
bool check_ExcitationEnergy = false ;
bool check_shoot = false ;
bool check_created = false ;
......@@ -136,7 +134,6 @@ void EventGeneratorParticleDecay::ReadConfiguration(string Path,int Occurence){
}
else if(DataBuffer == "ExcitationEnergy=") {
check_ExcitationEnergy = true;
LineStream.clear();
LineStream.str(LineBuffer);
......@@ -159,7 +156,6 @@ void EventGeneratorParticleDecay::ReadConfiguration(string Path,int Occurence){
LineStream.str(LineBuffer);
LineStream >> CSPath >> CSName ;
if(VerboseLevel==1) G4cout << " Cross Section Path: " << CSPath << G4endl;
check_CrossSection = true;
}
else if(DataBuffer == "shoot=") {
......@@ -201,7 +197,7 @@ void EventGeneratorParticleDecay::ReadConfiguration(string Path,int Occurence){
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void EventGeneratorParticleDecay::GenerateEvent(G4Event* anEvent){
void EventGeneratorParticleDecay::GenerateEvent(G4Event*){
// Look for the decaying nucleus
Particle decayingParticle = m_ParticleStack->SearchAndRemoveParticle(m_MotherNucleiName);
......
......@@ -417,9 +417,7 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
// create the PAD
// Make a single detector geometry
G4LogicalVolume* logicPADDetector=
new G4LogicalVolume(PADDetector,m_MaterialVacuum,"logicPADDetector", 0, 0, 0);
logicPADDetector->SetVisAttributes(G4VisAttributes::Invisible);
G4LogicalVolume* logicPADDetector = NULL;
G4ThreeVector PAD_Wafer_Offset =
G4ThreeVector(PAD_Wafer_Length_Offset, PAD_Wafer_Width_Offset,0 );
......@@ -472,11 +470,6 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
PAD_Wafer_Offset-G4ThreeVector(0,0,0.5*PAD_PCB_Thickness-0.5*m_ThicknessPAD[i][j]),
logicPADWafer,"PAD_Wafer",logicPADDetector,false,DetNbr);
}
else{
delete logicPADDetector;
}
///////////////////////////////////////////////////////////////////////////////////
// Place the detector in the world
// Position of the center of the PCB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment