Skip to content

Commit

Permalink
Add Sapphire and PEDOT in front of the SiPMs
Browse files Browse the repository at this point in the history
  • Loading branch information
MiryamMV committed May 31, 2022
1 parent 2c22db7 commit 3f52f96
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 12 deletions.
20 changes: 11 additions & 9 deletions macros/black_box.config.mac
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@
#/Generator/SingleParticle/min_costheta -1.
#/Generator/SingleParticle/max_costheta -0.9935

/Generator/LED450LW/particle opticalphoton
/Generator/LED450LW/min_energy 2.9 eV
/Generator/LED450LW/max_energy 2.9 eV
/Generator/LED450LW/region AD_HOC
/Generator/LED450LW/momentum 0 0 -1
/Generator/LED450LWcone/particle opticalphoton
/Generator/LED450LWcone/min_energy 2.9 eV
/Generator/LED450LWcone/max_energy 2.9 eV
/Generator/LED450LWcone/region AD_HOC
/Generator/LED450LWcone/momentum 0 0 -1
/Generator/LED450LWcone/min_costheta -1.
/Generator/LED450LWcone/max_costheta -0.9935

/Geometry/BlackBox/specific_vertex 0 0 0 mm
/Geometry/BlackBox/dice_board_x_pos 0 cm
/Geometry/BlackBox/dice_board_y_pos 0 cm
/Geometry/BlackBox/dice_board_z_pos -50. cm
/Geometry/BlackBox/dice_board_z_pos -50 cm
/Geometry/BlackBox/rotation 0 deg
/Geometry/BlackBox/mask_thickn 3. mm
/Geometry/BlackBox/membrane_thickn 1. mm
/Geometry/BlackBox/mask_thickn 0. mm
/Geometry/BlackBox/membrane_thickn 0. mm
/Geometry/BlackBox/coating_thickn 0. mm
/Geometry/BlackBox/hole_diameter 0. mm #if set to 0 the holes will be rectangular.
/Geometry/BlackBox/hole_x 6. mm
Expand All @@ -40,4 +42,4 @@
### JOB CONTROL
/nexus/random_seed -1
/nexus/persistency/start_id 0
/nexus/persistency/outputFile LED450LW_MC.next
/nexus/persistency/outputFile LED450LW_cone_MC_pedot_0deg.next
2 changes: 1 addition & 1 deletion macros/black_box.init.mac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/nexus/RegisterGeometry BlackBox
#/nexus/RegisterGenerator SingleParticleGenerator
/nexus/RegisterGenerator LED450LW
/nexus/RegisterGenerator LED450LWcone
/nexus/RegisterPersistencyManager PersistencyManager

/PhysicsList/RegisterPhysics G4OpticalPhysics
Expand Down
66 changes: 64 additions & 2 deletions source/geometries/BlackBox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <G4SDManager.hh>
#include <G4UserLimits.hh>
#include <Randomize.hh>
#include <G4LogicalSkinSurface.hh>
#include <G4OpticalSurface.hh>
#include <G4LogicalSkinSurface.hh>
#include <G4RotationMatrix.hh>
#include <G4SystemOfUnits.hh>

Expand Down Expand Up @@ -204,7 +204,69 @@ namespace nexus {
rot -> rotateY(rotation_);
new G4PVPlacement(rot, post, dice_board_logic,
dice_board_logic->GetName(), box_logic_vol, false, 1, false);
/////////////////////////////////////////////////////////

// SAPPHIRE //////////////////////////////////////////////////

G4String sapphire_name = "SAPPHIRE";

G4Material* sapphire_mat = materials::Sapphire();

sapphire_mat->SetMaterialPropertiesTable(opticalprops::Sapphire());

//G4double pedot_thickn = 1. *um;
G4double tpb_thickn = 1. *um;
G4double sapphire_thickn = 6. *mm;
G4double pedot_thickn = sapphire_thickn/2.;
G4double window_thickn = sapphire_thickn + pedot_thickn;
G4double sapphire_diam = 20 *cm;

G4Tubs* sapphire_solid_vol =
new G4Tubs(sapphire_name, 0, sapphire_diam/2.,
window_thickn/2., 0, twopi);

G4LogicalVolume* sapphire_logic_vol =
new G4LogicalVolume(sapphire_solid_vol, sapphire_mat, sapphire_name);

G4VisAttributes sapphire_col = nexus::LightBlue();
sapphire_logic_vol->SetVisAttributes(sapphire_col);

G4ThreeVector sapphire_pos(dice_board_x_pos_,dice_board_y_pos_,-49*cm);

new G4PVPlacement(rot, sapphire_pos,
sapphire_logic_vol, sapphire_name, box_logic_vol,
false, 0, false);

// PEDOT ////////////////////////////////////////////////////////

G4String pedot_name = "PEDOT";

G4Material* pedot_mat = materials::TPB();

sapphire_mat->SetMaterialPropertiesTable(opticalprops::Sapphire());

G4Tubs* pedot_solid_vol =
new G4Tubs(pedot_name, 0, sapphire_diam/2., pedot_thickn/2., 0, twopi);

G4LogicalVolume* pedot_logic_vol =
new G4LogicalVolume(pedot_solid_vol, pedot_mat, pedot_name);

/// Add optical surface to PEDOT ///
//G4OpticalSurface* pedot_coating_opsurf =
//new G4OpticalSurface("SAPPHIRE_WNDW_PEDOT_OPSURF", glisur, ground,
// dielectric_dielectric, .01);
//new G4LogicalSkinSurface("SAPPHIRE_WNDW_PEDOT_OPSURF",
// pedot_logic_vol, pedot_coating_opsurf);

G4VisAttributes pedot_col = nexus::CopperBrown();
pedot_logic_vol->SetVisAttributes(pedot_col);

G4ThreeVector pedot_pos(0,0,window_thickn/2.- pedot_thickn/2.);

new G4PVPlacement(0, pedot_pos,
pedot_logic_vol, pedot_name, sapphire_logic_vol,
false, 0, false);



}

Expand Down

0 comments on commit 3f52f96

Please sign in to comment.