Compare commits
2 Commits
cd7e4d34bd
...
d73a51b185
Author | SHA1 | Date |
---|---|---|
|
d73a51b185 | |
|
c40abc752c |
|
@ -59,12 +59,13 @@ Run with custom config file
|
||||||
* secondsipmenabled - Enable the second SiPM
|
* secondsipmenabled - Enable the second SiPM
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
<<<<<<< HEAD
|
||||||
## 2020-04-08
|
## 2020-04-08
|
||||||
* SiPM position fix
|
* SiPM position fix
|
||||||
* Changed scintillator mother volume
|
* Changed scintillator mother volume
|
||||||
* Changed displayLimit in vis.mac
|
|
||||||
* New default config file
|
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
## 2020-02-19
|
## 2020-02-19
|
||||||
* Scintillator subtracted from it's coating
|
* Scintillator subtracted from it's coating
|
||||||
* Scintillation process fix
|
* Scintillation process fix
|
||||||
|
|
14
config.conf
14
config.conf
|
@ -1,22 +1,22 @@
|
||||||
pgpositionx=0
|
pgpositionx=0
|
||||||
pgpositiony=-10
|
pgpositiony=-15
|
||||||
pgpositionz=11
|
pgpositionz=10
|
||||||
pgmomentumx=0
|
pgmomentumx=0
|
||||||
pgmomentumy=1
|
pgmomentumy=1
|
||||||
pgmomentumz=0
|
pgmomentumz=0
|
||||||
sipmsizex=1
|
sipmsizex=1
|
||||||
sipmsizey=1
|
sipmsizey=1
|
||||||
sipmsizez=1
|
sipmsizez=1
|
||||||
scintillatorsizex=2
|
scintillatorsizex=1
|
||||||
scintillatorsizey=2
|
scintillatorsizey=1
|
||||||
scintillatorlength=20
|
scintillatorlength=20
|
||||||
scintillatorisbox=1
|
scintillatorisbox=1
|
||||||
coatingthickness=0.1
|
coatingthickness=0.1
|
||||||
scintillatorradius=5
|
scintillatorradius=5
|
||||||
xdivision=1
|
xdivision=1
|
||||||
ydivision=5
|
ydivision=1
|
||||||
pgenergy=1000
|
pgenergy=100
|
||||||
numberofevents=1
|
numberofevents=100
|
||||||
lengthunit=cm
|
lengthunit=cm
|
||||||
firstsipmenabled=1
|
firstsipmenabled=1
|
||||||
secondsipmenabled=0
|
secondsipmenabled=0
|
|
@ -17,6 +17,6 @@
|
||||||
/vis/scene/add/eventID
|
/vis/scene/add/eventID
|
||||||
|
|
||||||
/vis/scene/add/text 0 6 14 cm 18 4 4 Box
|
/vis/scene/add/text 0 6 14 cm 18 4 4 Box
|
||||||
/vis/ogl/set/displayListLimit 500000
|
/vis/ogl/set/displayListLimit 50000
|
||||||
|
|
||||||
/run/beamOn 10
|
/run/beamOn 10
|
||||||
|
|
|
@ -165,7 +165,11 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
{
|
{
|
||||||
z_pos_helper = coatingThickness + (scintillator_size.getZ() / 2);
|
z_pos_helper = coatingThickness + (scintillator_size.getZ() / 2);
|
||||||
z_pos_helper = z_pos_helper - (container_sizeZ / 2);
|
z_pos_helper = z_pos_helper - (container_sizeZ / 2);
|
||||||
|
<<<<<<< HEAD
|
||||||
//posScint = G4ThreeVector(0, 0, z_pos_helper); //center on X and Y
|
//posScint = G4ThreeVector(0, 0, z_pos_helper); //center on X and Y
|
||||||
|
=======
|
||||||
|
posScint = G4ThreeVector(0, 0, z_pos_helper); //center on X and Y
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -199,10 +203,16 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
|
|
||||||
//---World definitions----------------------------------------------------------------------------------------------
|
//---World definitions----------------------------------------------------------------------------------------------
|
||||||
G4Box* solidWorld = new G4Box( "World", //its name
|
G4Box* solidWorld = new G4Box( "World", //its name
|
||||||
|
<<<<<<< HEAD
|
||||||
world_sizeX,
|
world_sizeX,
|
||||||
world_sizeY,
|
world_sizeY,
|
||||||
world_sizeZ); //its size
|
world_sizeZ); //its size
|
||||||
//Prevent overlapping so the world size is doubled
|
//Prevent overlapping so the world size is doubled
|
||||||
|
=======
|
||||||
|
0.5 * world_sizeX,
|
||||||
|
0.5 * world_sizeY,
|
||||||
|
0.5 * world_sizeZ); //its size
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
|
|
||||||
G4LogicalVolume* logicWorld = new G4LogicalVolume( solidWorld, //its solid
|
G4LogicalVolume* logicWorld = new G4LogicalVolume( solidWorld, //its solid
|
||||||
world_mat, //its material
|
world_mat, //its material
|
||||||
|
@ -250,14 +260,24 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
0.5 * scintillator_size.getZ()); //its size
|
0.5 * scintillator_size.getZ()); //its size
|
||||||
|
|
||||||
G4LogicalVolume* logicScint = new G4LogicalVolume( solidScint, //its solid
|
G4LogicalVolume* logicScint = new G4LogicalVolume( solidScint, //its solid
|
||||||
|
<<<<<<< HEAD
|
||||||
scint_mat, //its material
|
scint_mat, //its material
|
||||||
|
=======
|
||||||
|
scint_mat, //its material
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
"Scintillator"); //its name
|
"Scintillator"); //its name
|
||||||
|
|
||||||
G4VSolid* solidCoating = new G4SubtractionSolid("ScintillatorCoating",
|
G4VSolid* solidCoating = new G4SubtractionSolid("ScintillatorCoating",
|
||||||
solidScintCoating,
|
solidScintCoating,
|
||||||
|
<<<<<<< HEAD
|
||||||
solidScint/*,
|
solidScint/*,
|
||||||
0,
|
0,
|
||||||
G4ThreeVector(0, 0, 0)*/);
|
G4ThreeVector(0, 0, 0)*/);
|
||||||
|
=======
|
||||||
|
solidScint,
|
||||||
|
0,
|
||||||
|
G4ThreeVector(0, 0, 0));
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
|
|
||||||
G4LogicalVolume* logicScintCoating = new G4LogicalVolume( solidCoating, //its solid
|
G4LogicalVolume* logicScintCoating = new G4LogicalVolume( solidCoating, //its solid
|
||||||
scint_coating, //its material
|
scint_coating, //its material
|
||||||
|
@ -267,7 +287,11 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
posScint, //at position
|
posScint, //at position
|
||||||
logicScint, //its logical volume
|
logicScint, //its logical volume
|
||||||
"Scintillator", //its name
|
"Scintillator", //its name
|
||||||
|
<<<<<<< HEAD
|
||||||
logicContainer, //its mother volume
|
logicContainer, //its mother volume
|
||||||
|
=======
|
||||||
|
logicContainer, //its mother volume
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
false, //no boolean operation
|
false, //no boolean operation
|
||||||
0, //copy lxenumber
|
0, //copy lxenumber
|
||||||
checkOverlaps); //overlaps checking
|
checkOverlaps); //overlaps checking
|
||||||
|
@ -366,7 +390,11 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
scint_material_mpt -> AddProperty("ABSLENGTH", pp, absl, n);
|
scint_material_mpt -> AddProperty("ABSLENGTH", pp, absl, n);
|
||||||
scint_material_mpt -> AddProperty("SLOWCOMPONENT", pp, slow, n);
|
scint_material_mpt -> AddProperty("SLOWCOMPONENT", pp, slow, n);
|
||||||
scint_material_mpt -> AddProperty("FASTCOMPONENT", pp, fast, n);
|
scint_material_mpt -> AddProperty("FASTCOMPONENT", pp, fast, n);
|
||||||
|
<<<<<<< HEAD
|
||||||
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 1000./MeV); //50 volt
|
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 1000./MeV); //50 volt
|
||||||
|
=======
|
||||||
|
scint_material_mpt -> AddConstProperty("SCINTILLATIONYIELD", 50000./MeV); //50 volt
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
scint_material_mpt -> AddConstProperty("RESOLUTIONSCALE", 1.0);
|
scint_material_mpt -> AddConstProperty("RESOLUTIONSCALE", 1.0);
|
||||||
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 0.01*ns);
|
scint_material_mpt -> AddConstProperty("FASTTIMECONSTANT", 0.01*ns);
|
||||||
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 1.*ns);
|
scint_material_mpt -> AddConstProperty("SLOWTIMECONSTANT", 1.*ns);
|
||||||
|
@ -379,7 +407,11 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
|
|
||||||
G4LogicalBorderSurface *ScintillatorSurface = new G4LogicalBorderSurface("Scintillator Surface", physScint, physScintCoating, OpScintillatorSurface);
|
G4LogicalBorderSurface *ScintillatorSurface = new G4LogicalBorderSurface("Scintillator Surface", physScint, physScintCoating, OpScintillatorSurface);
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
G4double reflectivityCoating[n] = {0.99, 0.99};
|
G4double reflectivityCoating[n] = {0.99, 0.99};
|
||||||
|
=======
|
||||||
|
G4double reflectivityCoating[n] = {0.9, 0.9};
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
G4double efficiencyCoating[n] = {0, 0};
|
G4double efficiencyCoating[n] = {0, 0};
|
||||||
|
|
||||||
G4MaterialPropertiesTable *ScintillatorToWolframMaterialPropertyTable = new G4MaterialPropertiesTable();
|
G4MaterialPropertiesTable *ScintillatorToWolframMaterialPropertyTable = new G4MaterialPropertiesTable();
|
||||||
|
@ -429,6 +461,7 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
{
|
{
|
||||||
snprintf(s1, 30, "Container_x%d_y%d", i, j);
|
snprintf(s1, 30, "Container_x%d_y%d", i, j);
|
||||||
logicContainer -> SetName(s1);
|
logicContainer -> SetName(s1);
|
||||||
|
<<<<<<< HEAD
|
||||||
physContainer[i][j] = new G4PVPlacement( 0,
|
physContainer[i][j] = new G4PVPlacement( 0,
|
||||||
G4ThreeVector(i * container_sizeX + (container_sizeX / 2) - (world_sizeX / 2), j * container_sizeY + (container_sizeY / 2) - (world_sizeY / 2), container_sizeZ / 2),
|
G4ThreeVector(i * container_sizeX + (container_sizeX / 2) - (world_sizeX / 2), j * container_sizeY + (container_sizeY / 2) - (world_sizeY / 2), container_sizeZ / 2),
|
||||||
logicContainer,
|
logicContainer,
|
||||||
|
@ -438,6 +471,17 @@ G4VPhysicalVolume* SiPMDetectorConstruction::Construct()
|
||||||
copyNumber, //copy number
|
copyNumber, //copy number
|
||||||
checkOverlaps);
|
checkOverlaps);
|
||||||
copyNumber++;
|
copyNumber++;
|
||||||
|
=======
|
||||||
|
physContainer[x][y] = new G4PVPlacement(0,
|
||||||
|
G4ThreeVector(i * (container_sizeX / 2), j * (container_sizeY / 2), container_sizeZ / 2),
|
||||||
|
logicContainer,
|
||||||
|
s1, //its name
|
||||||
|
logicWorld,
|
||||||
|
false,
|
||||||
|
helper, //copy number
|
||||||
|
checkOverlaps);
|
||||||
|
helper++;
|
||||||
|
>>>>>>> 247f4aad085b756a9fdbb30ec68ccec1ad1b97b7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue