Skip to content
Snippets Groups Projects
Commit 861b2319 authored by matta's avatar matta
Browse files

* Fixing warning in NPS Sharc.cc

parent 01b4ef48
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ void Sharc::ReadConfiguration(string Path){
string DataBuffer ;
G4double R,Phi,Thickness1,Thickness2,Thickness3,Thickness4,ThicknessPAD1,ThicknessPAD2,ThicknessPAD3,ThicknessPAD4,Z;
R=Phi=Thickness1=Thickness2=Thickness3=Thickness4=ThicknessPAD1=ThicknessPAD2=ThicknessPAD3=ThicknessPAD4=Z=0;
G4ThreeVector Pos;
bool check_R = false ;
bool check_Phi = false ;
......@@ -357,14 +359,12 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
G4double BOX_PCB_Slot_Width;
G4double BOX_PCB_Slot_Deepness;
G4double BOX_PCB_Slot_Border;
G4double BOX_PCB_Slot_Position;
G4double BOX_DetectorSpacing;
if(m_ThicknessPAD[i][j]>0){ //PAD Case
BOX_PCB_Slot_Width = BOX_PCB_Slot_Width2;
BOX_PCB_Slot_Deepness = BOX_PCB_Slot_Deepness2;
BOX_PCB_Slot_Border = BOX_PCB_Slot_Border2;
BOX_PCB_Slot_Position = BOX_PCB_Slot_Position2;
BOX_DetectorSpacing = BOX_DetectorSpacing2;
}
......@@ -372,7 +372,6 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
else{ // No Pad Case
BOX_PCB_Slot_Width = BOX_PCB_Slot_Width1;
BOX_PCB_Slot_Deepness = BOX_PCB_Slot_Deepness1;
BOX_PCB_Slot_Border = BOX_PCB_Slot_Border1;
BOX_PCB_Slot_Position = BOX_PCB_Slot_Position1;
BOX_DetectorSpacing = BOX_DetectorSpacing1 ;
}
......@@ -418,7 +417,10 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
// create the PAD
// Make a single detector geometry
G4LogicalVolume* logicPADDetector;
G4LogicalVolume* logicPADDetector=
new G4LogicalVolume(PADDetector,m_MaterialVacuum,"logicPADDetector", 0, 0, 0);
logicPADDetector->SetVisAttributes(G4VisAttributes::Invisible);
G4ThreeVector PAD_Wafer_Offset =
G4ThreeVector(PAD_Wafer_Length_Offset, PAD_Wafer_Width_Offset,0 );
if(m_ThicknessPAD[i][j]>0){
......@@ -471,6 +473,10 @@ void Sharc::ConstructBOXDetector(G4LogicalVolume* world){
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.
Please register or to comment