Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STT default geometry added #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 42 additions & 4 deletions build_hall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ gegede-cli duneggd/Config/WORLDggd.cfg \
duneggd/Config/ND_HallwayStruct.cfg \
duneggd/Config/ND_CryoStruct.cfg \
duneggd/Config/SAND_MAGNET.cfg \
duneggd/Config/SAND_INNERVOLOPT2.cfg \
duneggd/Config/SAND_INNERVOLOPT4.cfg \
duneggd/Config/SAND_ECAL.cfg \
duneggd/Config/SAND_STT/STT1.cfg \
duneggd/Config/SAND_STT/STT_Default.cfg \
duneggd/Config/SAND_GRAIN.cfg \
duneggd/Config/TMS.cfg \
duneggd/Config/ArgonCube/ArgonCubeCryostat.cfg \
Expand All @@ -47,9 +47,9 @@ gegede-cli duneggd/Config/WORLDggd.cfg \
duneggd/Config/ND_HallwayStruct.cfg \
duneggd/Config/ND_CryoStruct.cfg \
duneggd/Config/SAND_MAGNET.cfg \
duneggd/Config/SAND_INNERVOLOPT2.cfg \
duneggd/Config/SAND_INNERVOLOPT4.cfg \
duneggd/Config/SAND_ECAL.cfg \
duneggd/Config/SAND_STT/STT1.cfg \
duneggd/Config/SAND_STT/STT_Default.cfg \
duneggd/Config/SAND_GRAIN.cfg \
duneggd/Config/TMS.cfg \
duneggd/Config/ArgonCube/ArgonCubeCryostat.cfg \
Expand Down Expand Up @@ -443,6 +443,44 @@ gegede-cli duneggd/Config/WORLDggd.cfg \
-w World -o SAND_opt3_STT1.gdml
fi

# SAND Default STT (Jul'24)
if [ $option = "all" -o $option = "sand_def_stt" ];
then
gegede-cli duneggd/Config/WORLDggd.cfg \
duneggd/Config/ND_Hall_Air_Volume.cfg \
duneggd/Config/ND_Hall_Rock.cfg \
duneggd/Config/ND_ElevatorStruct.cfg \
duneggd/Config/SAND_MAGNET.cfg \
duneggd/Config/SAND_INNERVOLOPT4.cfg \
duneggd/Config/SAND_ECAL.cfg \
duneggd/Config/SAND_STT/STT_Default.cfg \
duneggd/Config/SAND_GRAIN.cfg \
duneggd/Config/ND_CraneRailStruct1.cfg \
duneggd/Config/ND_CraneRailStruct2.cfg \
duneggd/Config/ND_HallwayStruct.cfg \
duneggd/Config/ND_CryoStruct.cfg \
duneggd/Config/ND-GAr/ND-GAr-SPYv3_noTPC.cfg \
duneggd/Config/ND-GAr/ND-GAr-SPYv3.cfg \
duneggd/Config/ArgonCube/ArgonCubeCryostat.cfg \
duneggd/Config/ArgonCube/ArgonCubeDetector.cfg \
-w World -o SAND_STT_Default.gdml
fi

# Only SAND Default STT (Jul'24)
if [ $option = "all" -o $option = "only_sand_def_stt" ];
then
gegede-cli duneggd/Config/WORLDggd.cfg \
duneggd/Config/ND_Hall_Air_Volume_Only_SAND.cfg \
duneggd/Config/ND_Hall_Rock.cfg \
duneggd/Config/ND_ElevatorStruct.cfg \
duneggd/Config/SAND_MAGNET.cfg \
duneggd/Config/SAND_INNERVOLOPT4.cfg \
duneggd/Config/SAND_ECAL.cfg \
duneggd/Config/SAND_STT/STT_Default.cfg \
duneggd/Config/SAND_GRAIN.cfg \
-w World -o only_SAND_STT_Default.gdml
fi

# SAND OPT 3 DRIFT1
if [ $option = "all" -o $option = "sand_opt3_DRIFT1" ];
then
Expand Down
12 changes: 12 additions & 0 deletions duneggd/Config/SAND_INNERVOLOPT4.cfg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this option, supposed to be the default one, forsees a diffent clearances among ECAL GRAIN and the Tracker?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grain size has been updated to 902mm. The clearances are listed in the file are just guessing parameters. Here are the final parameters.
GRAIN-ECAL | 1.15 centimeter
GRAIN-STT | 11.568251845746317 millimeter
STT-ECAL | 0.0764459008996361 meter
The total STT length is 2998.4 mm. Details are included in page 11 here

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[SANDINNERVOLUME]
class = duneggd.SubDetector.SandInnerVolume.SandInnerVolumeBuilder
subbuilders = ['GRAIN', 'STT_Default']
halfDimension = {'rmin':Q('0.0cm'), 'rmax':Q('2.00m'), 'dz':Q('1.69m')}
Material = "Air35C"
nBarrelModules = 24
configuration = "option_4"
GRAINThickness = Q("0.902m")

clearenceECALGRAIN = Q("1.15cm")
clearenceGRAINTracker = Q("1cm")
clearenceTrackerECAL = Q("6.8cm")
53 changes: 53 additions & 0 deletions duneggd/Config/SAND_STT/STT_Default.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[STT_Default]

#**********************************| SAND inner vol |********************************************

class = duneggd.SubDetector.STT_Default.STTBuilder
STTconfiguration = "STT_Default"
nBarrelModules = {SANDINNERVOLUME:nBarrelModules}
halfDimension = {SANDINNERVOLUME:halfDimension}
Material = {SANDINNERVOLUME:Material}
configuration = {SANDINNERVOLUME:configuration}
GRAINThickness = {SANDINNERVOLUME:GRAINThickness}
clearenceECALGRAIN = {SANDINNERVOLUME:clearenceECALGRAIN}
clearenceGRAINTracker = {SANDINNERVOLUME:clearenceGRAINTracker} # this should be read from SANDINNERVOLUME
clearenceTrackerECAL = {SANDINNERVOLUME:clearenceTrackerECAL} # the same

#**********************************| STT tracker |********************************************

nofUpstreamTrkMod = 1
nofDownstreamTrkMod = 6
nofC3H6ModAfterCMod = 6
nofC3H6ModNoRadAfterCMod = 3

#**********************************| STT MODULE |********************************************

# target
FrameThickness = Q("10cm")
AddGapForSlab = Q("7cm")
#targetThickness = {"CMod" : Q("4mm"), "C3H6Mod": Q("5mm"), "C3H6ModNoRad": Q("6.89mm"), "TrkMod":Q("0mm"), "TrkMod2lyr":Q("0mm")}
targetThickness = {"CMod" : Q("4mm"), "C3H6Mod": Q("5mm"), "C3H6ModNoRad": Q("5mm"), "TrkMod":Q("0mm"), "TrkMod2lyr":Q("0mm")}

# radiator
radiator = "yes" # "yes" or "no
nofFoils = 105 if radiator=="yes" else 0
FoilThickness = Q("18um") if radiator=="yes" else Q("0um")
AirGapThickness = Q("117um") if radiator=="yes" else Q("0um")
RadiatorThickness = {"CMod" : Q("0mm"), "C3H6Mod": nofFoils*FoilThickness + (nofFoils-1)*AirGapThickness, "C3H6ModNoRad":Q("0mm"), "TrkMod":Q("0mm"), "TrkMod2lyr":Q("0mm")}
# straw planes
nofStrawPlanes = {"CMod" : 2, "C3H6Mod": 2, "C3H6ModNoRad": 2, "TrkMod": 3, "TrkMod2lyr": 2}
#gap = {"CMod" : Q("4.67mm"), "C3H6Mod": Q("0mm"), "C3H6ModNoRad": Q("3.225mm"), "TrkMod":Q("4.67mm"), "TrkMod2lyr":Q("4.67mm")}
gap = {"CMod" : Q("4.67mm"), "C3H6Mod": Q("0mm"), "C3H6ModNoRad": Q("4.17mm"), "TrkMod":Q("4.67mm"), "TrkMod2lyr":Q("4.67mm")}

#**********************************| STRAW |********************************************

StrawRadius = Q('2.5mm')
StrawPlug = Q('0mm')
DistStrawStraw = Q('0mm')
DistStrawWall = Q('0mm')
AngleStrawStraw = Q('60deg')
StrawWireRadius = Q('20um')
StrawWireCoatThickness = Q('20nm')
CoatThickness = Q("70nm")
MylarThickness = Q("12um")
StrawGas = {"CMod" : "stGas_Ar19", "C3H6Mod":"stGas_Xe19", "C3H6ModNoRad":"stGas_Ar19", "TrkMod":"stGas_Ar19", "TrkMod2lyr":"stGas_Ar19"}
Loading
Loading