Change the Geometry - twongjirad/LArLiteSoftCookBook GitHub Wiki
First setup a new uboonecode environment. Download the uboonecode source (mrb g uboonecode), build and install (mrb i).
The fhcl file that sets the GDML file used is in srcs/uboonecode/uboone/Geometry/geometry_microboone.fcl
You'll need to change the following:
microboone_geo:
{
SurfaceY: 6.9e2 #in cm, vertical distance to the surface
Name: "microboonev8"
GDML: "microboonev8.gdml"
ROOT: "microboonev8.gdml"
DisableWiresInG4: true # Whether to use wirefree geometry in LArG4
# As per Brians request, wire free file is specified by
# [GDMLFileName]_nowires.gdml
}
If DisableWiresInG4 is true, then it will look for a file [GDMLFilename]_nowires.gdml. If there is no such file, make sure this is set to false. (Or create an identical file with such a name.)
Note that once you've changed the file, you need to install it. (mrb i)
The GDML file is found by searching the path in the FW_SEARCH_PATH environment variable. Type 'echo $FW_SEARCH_PATH' to see what's in it. You'll see a folder in the beginning that looks something like:
[working directory]/build_slf6.x86_64/uboonecode/gdml
Put your new GDML file into here.
Note that sensitive volumes for the optical detectors are created for every logical volume whose name is 'volOpDetSensitive'.