Commit 59fd2936 authored by flavigny's avatar flavigny
Browse files

* Update and fix STRASSE sim: geometry (ledge/Step), volume overlaps,

and add readout of STL
parent 96103e33
This diff is collapsed.
This diff is collapsed.
......@@ -57,16 +57,29 @@ class Strasse : public NPS::VDetector{
G4LogicalVolume* BuildInnerDetector();
G4LogicalVolume* BuildOuterDetector();
G4LogicalVolume* BuildElectronic();
G4LogicalVolume* BuildFrame();
G4LogicalVolume* BuildChamber();
G4LogicalVolume* BuildChamberFromCAD(string path);
G4LogicalVolume* BuildStars(string path);
G4LogicalVolume* BuildBlades(string path);
G4LogicalVolume* BuildBase(string path);
private:
G4LogicalVolume* m_InnerDetector;
G4LogicalVolume* m_OuterDetector;
G4LogicalVolume* m_Electronic;
G4LogicalVolume* m_Frame;
G4LogicalVolume* m_Stars;
G4LogicalVolume* m_Chamber;
G4LogicalVolume* m_Blades;
G4LogicalVolume* m_Base;
string ChamberPath;
string BasePath;
string StarsPath;
string BladesPath;
bool found_chamber;
bool found_blades;
bool found_stars;
bool found_base;
private:
// Initialize material used in detector definition
......@@ -78,6 +91,7 @@ class Strasse : public NPS::VDetector{
G4Material* m_MaterialAl ;
G4Material* m_MaterialVacuum ;
G4Material* m_MaterialPCB ;
G4Material* m_MaterialCu ;
// calculated dimension
double m_Active_InnerWafer_Width;
......@@ -141,8 +155,6 @@ class Strasse : public NPS::VDetector{
vector<double> m_Chamber_Z;
// Visualisation Attribute
//G4VisAttributes* m_VisTrap;
// Needed for dynamic loading of the library
public:
......@@ -153,9 +165,10 @@ class Strasse : public NPS::VDetector{
G4VisAttributes* SiliconVisAtt ;
G4VisAttributes* PCBVisAtt;
G4VisAttributes* PADVisAtt ;
G4VisAttributes* FrameVisAtt ;
G4VisAttributes* StarsVisAtt ;
G4VisAttributes* ChamberVisAtt ;
G4VisAttributes* GuardRingVisAtt ;
G4VisAttributes* BladeVisAtt ;
};
......
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Target
THICKNESS= 150 mm
ANGLE= 0 deg
RADIUS= 15 mm
MATERIAL= LH2
X= 0 mm
Y= 0 mm
Z= 0 mm
NbSlices= 10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1
Strasse Info
Inner_Wafer_Length= 124 mm
Inner_Wafer_Width= 32 mm
Inner_Wafer_Thickness= 200 micrometer
Inner_Wafer_AlThickness= 0.4 micrometer
Inner_Wafer_PADExternal= 0 mm
Inner_Wafer_PADInternal= 0 mm
Inner_Wafer_GuardRing= 1.0 mm
Inner_Wafer_TransverseStrips= 610
Inner_Wafer_LongitudinalStrips= 150
Inner_PCB_PortWidth= 1 mm
Inner_PCB_StarboardWidth= 1 mm
Inner_PCB_BevelAngle= 90 deg
Inner_PCB_UpstreamWidth= 12 mm
Inner_PCB_DownstreamWidth= 38 mm
Inner_PCB_MidWidth= 1 mm
Inner_PCB_Thickness= 2.4 mm
Inner_PCB_Ledge= 1 mm
Inner_PCB_Step= 2 mm
Outer_Wafer_Length= 123 mm
Outer_Wafer_Width= 64.6 mm
Outer_Wafer_Thickness= 300 micrometer
Outer_Wafer_AlThickness= 0.4 micrometer
Outer_Wafer_PADExternal= 0 mm
Outer_Wafer_PADInternal= 0 mm
Outer_Wafer_GuardRing= 1.0 mm
Outer_PCB_PortWidth= 1 mm
Outer_PCB_StarboardWidth= 1 mm
Outer_PCB_BevelAngle= 90 deg
Outer_PCB_UpstreamWidth= 40 mm
Outer_PCB_DownstreamWidth= 12 mm
Outer_PCB_MidWidth= 1 mm
Outer_PCB_Thickness= 2.4 mm
Outer_PCB_Ledge= 1 mm
Outer_PCB_Step= 2 mm
Outer_Wafer_TransverseStrips= 605
Outer_Wafer_LongitudinalStrips= 313
% unused if using CAD file (.stl) chamber
Chamber_Thickness= 3 mm
Chamber_Cylinder_Length= 360 mm
Chamber_Radius= 180 mm
Chamber_ExitTube_Radius= 79.5 mm
Chamber_ExitTube_Length= 100 mm
Chamber_Flange_Inner_Radius= 50 mm
Chamber_Sphere_Radius= 220 mm
Chamber_Sphere_Shift= 60 mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias InnerPhi
Action= Copy
% Value= 116
Value= -4 56 116 176 236 296
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Strasse Inner
Radius= 27.6 mm
Z= 76.5 mm
Phi= @InnerPhi deg
Shift= 3 mm
Ref= 0 0 0 mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Alias OuterPhi
Action= Copy
% Value= 0
Value= 0 60 120 180 240 300
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Strasse Outer
Radius= 58.5 mm
Z= 76.5 mm
Phi= @OuterPhi deg
Shift= 0 mm
Ref= 0 0 0 mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Strasse InactiveMaterial
Chamber= /Users/flavigny/LPCCloud/home/Documents/STRASSE/Meca_CAD/STEP/STRASSE_Chamber.stl
Stars= /Users/flavigny/LPCCloud/home/Documents/STRASSE/Meca_CAD/STEP/STRASSE_StarSupports.stl
Base= /Users/flavigny/LPCCloud/home/Documents/STRASSE/Meca_CAD/STEP/STRASSE_Base.stl
Blades= /Users/flavigny/LPCCloud/home/Documents/STRASSE/Meca_CAD/STEP/Groupe_6_Blade3.stl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%1
%Catana CSV
% Path= geometry/Catana.csv
% Pos= 0 0 100 mm
% Rshift= 100 micrometer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment