3 # On Alex Himmel's request -- turn all of the photon detector Acrylic to LAr
4 # in the DUNE 10kt *_nowires.gdml files, in order to make photon library generation
7 # some assumptions -- the photon detectors are the only acrylic in these files.
8 # this is the case for the 10kt geometries as of April 2017, but we'll skip doing
9 # this for ProtoDUNE's and 35t -- they have acrylic cosmic-ray taggers, and their
10 # photon detector volumes are already LAr in the *_nowires.gdml files for them.
12 # to do later -- de-acrylify only those Acrylic lines right after the optical
15 tmpfile=deacrylifytmpgdml.txt
17 for filename in dune10kt*_nowires.gdml
19 echo Processing $filename
22 sed -e 's/ref="Acrylic"/ref="LAr"/' $filename > $tmpfile