Functions | |
def | get_mod_id |
def | get_mod_id_num |
def | beam |
def | beamVol |
def | strip |
def | module |
def | minosSideTagger |
def | minosNorthTagger |
def | minosSouthTagger |
def | DCTagger |
def | cernTopTagger |
def | cernLatRimTagger |
def | cernLongRimTagger |
def | detectorEnclosure |
Variables | |
testmode = False | |
printModIds = False | |
float | WVWIDTH = 1031.8 |
Parameters ##################### warm vessel (cm), increased as of 7/19/2019 to reflect full extent of WV profile in detector hall. More... | |
float | WVHEIGHT = 627.4 |
float | WVLENGTH = 2268.8 |
float | WVFOOTELEVATION = 10.16 |
float | ISLANDWIDTH = 118.0 |
float | IVLENGTH = 1996.0 |
float | TOPLEDGERISERTOFLOOR = 991.9 |
float | LEDGERISERHEIGTH = 46.99 |
float | TOPCRTBEAMTOFLOOR = 970.8 |
float | CRTBEAMSPACING = 92.71 |
float | BOTTOMCRTROLLERHEIGHT = 3.02 |
float | SIDECRTWVOFFSET = 4.13 |
float | SIDECRTPOSTWIDTH = 4.13 |
float | SIDECRTPOSTSPACING = 4.13 |
int | SIDECRTSTACKDEPTH = 3 |
float | SIDECRTSHELFTHICK = 0.56 |
float | overlap = 0.0065 |
float | gap = 0.005 |
float | crosstwomodule = 10.7 |
float | separatetwomodule = 0.6 |
float | offsetontopmodule = 48.26 |
float | verticalmodule = 485.14 |
float | CRTBEAMLENGTH = 1132.84 |
float | CRTBEAMHEIGHT = 25.3 |
float | CRTBEAMWIDTH = 25.4 |
float | CRTBEAMFLANGETHICK = 1.434 |
float | CRTBEAMWEBTHICK = 0.89407 |
int | CRTBEAMMASSDENS = 73 |
float | YM = 4.1 |
float | ZM = 800.0 |
float | XM = 1.0 |
float | MINOSSTRAIGHTSNOUT = 37.5 |
float | MINOSBENDSNOUT = 26.5 |
float | MINOSSNOUTLENGTH = 0.5 |
float | XC = 23.0 |
float | ZC = 184.0 |
float | YCTOP = 1.0 |
float | YCBOT = 1.5 |
float | XD = 5.0 |
float | ZD = 322.5 |
float | YD = 1.0 |
int | NXM = 20 |
int | NXC = 8 |
int | NXD = 32 |
float | PADM = 0.05 |
float | PADC = 0.1 |
float | PADD = 0.05 |
float | PADModule = 0.1 |
float | PADStrip = 0.01 |
float | PADTagger = 0.001 |
int | mModL = ZM+2 |
int | mModW = YM*NXM+2 |
int | mModH = XM+2 |
int | cModW = XC*NXC+2 |
int | cModH = YCTOP+YCBOT+2 |
int | dModH = YD*2 |
float | LAYERSPACE = 8.27 |
int | NMODSTACK = 9 |
int | NMODSTACKSOUTHY = 10 |
float | SLIDERSPACE = 18.5 |
float | STACKOVERLAP = 50.0 |
float | SIDECRTROLLOFFSET = 44.29 |
float | SIDECRTNORTHWALLTOFLOOR = 152.2 |
float | SIDECRTSOUTHWALLLATOFFSET = 1.1 |
float | DCSPACER = 32.6 |
tuple | LONGOFF5 = (3*ISLANDWIDTH+481.8) |
tuple | LONGOFF2 = (ISLANDWIDTH+181.8) |
float | CERNMODSPACE = 0.2 |
int | NTOPX = 6 |
int | NTOPZ = 14 |
int | NSLOPELAT = 14 |
int | NSLOPEFRONT = 6 |
float | SLOPEINCLINATION = 90.0 |
tuple | CERNROOFL = NTOPZ*cModW+(NTOPZ-1) |
float | SHELLY = 1.1 |
float | MINOSSOUTHY = -0.5 |
MINOSLATFIXY = MINOSSOUTHY | |
float | MINOSLATROLLY = MINOSLATFIXY-0.5 |
int | MINOSLATSOUTHACTIVEOVERHANG = 2 |
float | MINOSLATSOUTHZ = -0.5 |
float | MINOSLATNORTHZ = 0.5 |
float | MINOSLATCENTZ = 0.5 |
tuple | posDCInDetEncl = (0,-480.135, 0) |
float | CERNRIMSWVOFFSET = 34.0 |
float | CERNTOPY = SHELLY*0.5 |
float | CERNRIMSY = CERNTOPY-0.5 |
float | CERNRIMSZ = -0.5 |
float | CERNRIMNY = CERNRIMSY+29.0 |
float | CERNRIMNZ = CERNROOFL+CERNRIMSZ+0.6 |
float | CERNTOPZ = CERNRIMSZ+0.5 |
float | CERNRIMLATX = 0.5 |
CERNRIMLATY = CERNRIMSY | |
CERNRIMLATZ = CERNTOPZ | |
float | SHELLZ = 1.01 |
float | SHELLWVOFFSET = SHELLZ*0.5 |
tuple | minosCutModLengthNorth = (256.54, 309.9, 309.9, 508.19, 508.19, 508.19) |
tuple | minosCutModLengthSoutheast = (497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84) |
tuple | minosCutModLengthSouthwest = (497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 325.12, 325.12, 325.12) |
float | MINOSNORTHY = -0.5 |
tuple | gdml = ET.Element('gdml') |
tuple | solids = ET.SubElement(gdml, 'solids') |
tuple | structure = ET.SubElement(gdml, 'structure') |
dictionary | solids_store = {} |
tuple | modToFeb = dict() |
int | feb_id = 0 |
int | mod_id = -1 |
int | beam_id = 0 |
int | nModM = 0 |
int | nModC = 0 |
int | nModD = 0 |
tuple | m = ET.SubElement(materials, 'element', name='aluminum', formula='Al', Z='13') |
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for use with master geometry generator script More... | |
tuple | ws = ET.SubElement(solids, 'box', name='World', lunit="cm", x='1500', y='1500', z='3000') |
tuple | w = ET.SubElement(structure, 'volume', name='volWorld') |
tuple | pv = ET.SubElement(w, 'physvol') |
string | posname = 'pos' |
tuple | setup = ET.SubElement(gdml, 'setup', name='Default', version='1.0') |
Generate the GDML for the SBND CRT geometry. We define a global XML DOM which the function for each volume will append to. Volume-building functions are called hierarchically, so if you call module(), it will construct the module and all the parts that make it up, so you end up with complete GDML for one module. Each physical volume has a corresponding unique logical volume, as required by LArG4 to keep track of energy depositions. The solids, however, can safely be referenced many times, and so are stored only once (using a hash keyed on the the linear dimensions). The output of this code is a file "crt.gdml" which contains the GDML snippets to paste into the full SBND geometry. Created by A. Mastbaum <mastbaum@uchicago.edu>, 2016/10/27 Downloaded by C. Hilgenberg <Chris.Hilgenberg@colostate.edu> 2017/10/25 Modified by C. Hilgenberg 2017/10/26
def gen_crt_frags.beam | ( | ) |
build one wide flange beam for top CRT support
Definition at line 212 of file gen_crt_frags.py.
def gen_crt_frags.beamVol | ( | ) |
Definition at line 257 of file gen_crt_frags.py.
def gen_crt_frags.cernLatRimTagger | ( | side = 'L' | ) |
Build east(side='R') or west(side='L') CERN rim tagger
Definition at line 1009 of file gen_crt_frags.py.
def gen_crt_frags.cernLongRimTagger | ( | side = 'U' | ) |
Build north(side='D') or south(side='U') CERN rim tagger
Definition at line 1067 of file gen_crt_frags.py.
def gen_crt_frags.cernTopTagger | ( | ) |
Build top CERN tagger (1 layer of modules)
Definition at line 955 of file gen_crt_frags.py.
def gen_crt_frags.DCTagger | ( | ) |
Build bottom tagger
Definition at line 886 of file gen_crt_frags.py.
def gen_crt_frags.detectorEnclosure | ( | ) |
Definition at line 1123 of file gen_crt_frags.py.
def gen_crt_frags.get_mod_id | ( | style = 'm' | ) |
Definition at line 193 of file gen_crt_frags.py.
def gen_crt_frags.get_mod_id_num | ( | ) |
Definition at line 208 of file gen_crt_frags.py.
def gen_crt_frags.minosNorthTagger | ( | ) |
Build north MINOS tagger (2 layers cut modules in X-X) on upstream face
Definition at line 668 of file gen_crt_frags.py.
Build a side tagger (1 stacks)
Definition at line 539 of file gen_crt_frags.py.
def gen_crt_frags.minosSouthTagger | ( | ) |
Build front MINOS tagger (2 layers in X-Y) on upstream face
Definition at line 746 of file gen_crt_frags.py.
def gen_crt_frags.module | ( | style = "c" , |
|
reg = 'tt' , |
|||
length = 0 |
|||
) |
Build an edge-to-edge array of scintillator strips.
Definition at line 363 of file gen_crt_frags.py.
def gen_crt_frags.strip | ( | style = "m" , |
|
modnum = 0 , |
|||
stripnum = 0 , |
|||
length = 0 |
|||
) |
int gen_crt_frags.beam_id = 0 |
Definition at line 188 of file gen_crt_frags.py.
float gen_crt_frags.BOTTOMCRTROLLERHEIGHT = 3.02 |
Definition at line 47 of file gen_crt_frags.py.
float gen_crt_frags.CERNMODSPACE = 0.2 |
Definition at line 129 of file gen_crt_frags.py.
float gen_crt_frags.CERNRIMLATX = 0.5 |
Definition at line 159 of file gen_crt_frags.py.
gen_crt_frags.CERNRIMLATY = CERNRIMSY |
Definition at line 160 of file gen_crt_frags.py.
gen_crt_frags.CERNRIMLATZ = CERNTOPZ |
Definition at line 161 of file gen_crt_frags.py.
float gen_crt_frags.CERNRIMNY = CERNRIMSY+29.0 |
Definition at line 156 of file gen_crt_frags.py.
Definition at line 157 of file gen_crt_frags.py.
float gen_crt_frags.CERNRIMSWVOFFSET = 34.0 |
Definition at line 152 of file gen_crt_frags.py.
float gen_crt_frags.CERNRIMSY = CERNTOPY-0.5 |
Definition at line 154 of file gen_crt_frags.py.
float gen_crt_frags.CERNRIMSZ = -0.5 |
Definition at line 155 of file gen_crt_frags.py.
Definition at line 135 of file gen_crt_frags.py.
float gen_crt_frags.CERNTOPY = SHELLY*0.5 |
Definition at line 153 of file gen_crt_frags.py.
float gen_crt_frags.CERNTOPZ = CERNRIMSZ+0.5 |
Definition at line 158 of file gen_crt_frags.py.
Definition at line 110 of file gen_crt_frags.py.
Definition at line 109 of file gen_crt_frags.py.
float gen_crt_frags.crosstwomodule = 10.7 |
Definition at line 58 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMFLANGETHICK = 1.434 |
Definition at line 71 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMHEIGHT = 25.3 |
Definition at line 69 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMLENGTH = 1132.84 |
Definition at line 68 of file gen_crt_frags.py.
int gen_crt_frags.CRTBEAMMASSDENS = 73 |
Definition at line 73 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMSPACING = 92.71 |
Definition at line 45 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMWEBTHICK = 0.89407 |
Definition at line 72 of file gen_crt_frags.py.
float gen_crt_frags.CRTBEAMWIDTH = 25.4 |
Definition at line 70 of file gen_crt_frags.py.
float gen_crt_frags.DCSPACER = 32.6 |
Definition at line 124 of file gen_crt_frags.py.
int gen_crt_frags.dModH = YD*2 |
Definition at line 111 of file gen_crt_frags.py.
int gen_crt_frags.feb_id = 0 |
Definition at line 186 of file gen_crt_frags.py.
float gen_crt_frags.gap = 0.005 |
Definition at line 55 of file gen_crt_frags.py.
tuple gen_crt_frags.gdml = ET.Element('gdml') |
Definition at line 180 of file gen_crt_frags.py.
float gen_crt_frags.ISLANDWIDTH = 118.0 |
Definition at line 37 of file gen_crt_frags.py.
float gen_crt_frags.IVLENGTH = 1996.0 |
Definition at line 39 of file gen_crt_frags.py.
float gen_crt_frags.LAYERSPACE = 8.27 |
Definition at line 114 of file gen_crt_frags.py.
float gen_crt_frags.LEDGERISERHEIGTH = 46.99 |
Definition at line 43 of file gen_crt_frags.py.
tuple gen_crt_frags.LONGOFF2 = (ISLANDWIDTH+181.8) |
Definition at line 126 of file gen_crt_frags.py.
tuple gen_crt_frags.LONGOFF5 = (3*ISLANDWIDTH+481.8) |
Definition at line 125 of file gen_crt_frags.py.
tuple gen_crt_frags.m = ET.SubElement(materials, 'element', name='aluminum', formula='Al', Z='13') |
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for use with master geometry generator script
Definition at line 1347 of file gen_crt_frags.py.
float gen_crt_frags.MINOSBENDSNOUT = 26.5 |
Definition at line 80 of file gen_crt_frags.py.
tuple gen_crt_frags.minosCutModLengthNorth = (256.54, 309.9, 309.9, 508.19, 508.19, 508.19) |
Definition at line 173 of file gen_crt_frags.py.
tuple gen_crt_frags.minosCutModLengthSoutheast = (497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 497.84) |
Definition at line 174 of file gen_crt_frags.py.
tuple gen_crt_frags.minosCutModLengthSouthwest = (497.84, 497.84, 497.84, 497.84, 497.84, 497.84, 325.12, 325.12, 325.12) |
Definition at line 175 of file gen_crt_frags.py.
float gen_crt_frags.MINOSLATCENTZ = 0.5 |
Definition at line 146 of file gen_crt_frags.py.
gen_crt_frags.MINOSLATFIXY = MINOSSOUTHY |
Definition at line 141 of file gen_crt_frags.py.
float gen_crt_frags.MINOSLATNORTHZ = 0.5 |
Definition at line 145 of file gen_crt_frags.py.
float gen_crt_frags.MINOSLATROLLY = MINOSLATFIXY-0.5 |
Definition at line 142 of file gen_crt_frags.py.
int gen_crt_frags.MINOSLATSOUTHACTIVEOVERHANG = 2 |
Definition at line 143 of file gen_crt_frags.py.
float gen_crt_frags.MINOSLATSOUTHZ = -0.5 |
Definition at line 144 of file gen_crt_frags.py.
float gen_crt_frags.MINOSNORTHY = -0.5 |
Definition at line 176 of file gen_crt_frags.py.
float gen_crt_frags.MINOSSNOUTLENGTH = 0.5 |
Definition at line 81 of file gen_crt_frags.py.
float gen_crt_frags.MINOSSOUTHY = -0.5 |
Definition at line 140 of file gen_crt_frags.py.
float gen_crt_frags.MINOSSTRAIGHTSNOUT = 37.5 |
Definition at line 79 of file gen_crt_frags.py.
int gen_crt_frags.mModH = XM+2 |
Definition at line 108 of file gen_crt_frags.py.
int gen_crt_frags.mModL = ZM+2 |
Definition at line 106 of file gen_crt_frags.py.
Definition at line 107 of file gen_crt_frags.py.
int gen_crt_frags.mod_id = -1 |
Definition at line 187 of file gen_crt_frags.py.
tuple gen_crt_frags.modToFeb = dict() |
Definition at line 185 of file gen_crt_frags.py.
int gen_crt_frags.nModC = 0 |
Definition at line 190 of file gen_crt_frags.py.
int gen_crt_frags.nModD = 0 |
Definition at line 191 of file gen_crt_frags.py.
int gen_crt_frags.nModM = 0 |
Definition at line 189 of file gen_crt_frags.py.
int gen_crt_frags.NMODSTACK = 9 |
Definition at line 115 of file gen_crt_frags.py.
int gen_crt_frags.NMODSTACKSOUTHY = 10 |
Definition at line 116 of file gen_crt_frags.py.
int gen_crt_frags.NSLOPEFRONT = 6 |
Definition at line 133 of file gen_crt_frags.py.
int gen_crt_frags.NSLOPELAT = 14 |
Definition at line 132 of file gen_crt_frags.py.
int gen_crt_frags.NTOPX = 6 |
Definition at line 130 of file gen_crt_frags.py.
int gen_crt_frags.NTOPZ = 14 |
Definition at line 131 of file gen_crt_frags.py.
int gen_crt_frags.NXC = 8 |
Definition at line 95 of file gen_crt_frags.py.
int gen_crt_frags.NXD = 32 |
Definition at line 96 of file gen_crt_frags.py.
int gen_crt_frags.NXM = 20 |
Definition at line 94 of file gen_crt_frags.py.
float gen_crt_frags.offsetontopmodule = 48.26 |
Definition at line 61 of file gen_crt_frags.py.
float gen_crt_frags.overlap = 0.0065 |
Definition at line 54 of file gen_crt_frags.py.
float gen_crt_frags.PADC = 0.1 |
Definition at line 100 of file gen_crt_frags.py.
float gen_crt_frags.PADD = 0.05 |
Definition at line 101 of file gen_crt_frags.py.
float gen_crt_frags.PADM = 0.05 |
Definition at line 99 of file gen_crt_frags.py.
float gen_crt_frags.PADModule = 0.1 |
Definition at line 102 of file gen_crt_frags.py.
float gen_crt_frags.PADStrip = 0.01 |
Definition at line 103 of file gen_crt_frags.py.
float gen_crt_frags.PADTagger = 0.001 |
Definition at line 104 of file gen_crt_frags.py.
tuple gen_crt_frags.posDCInDetEncl = (0,-480.135, 0) |
Definition at line 149 of file gen_crt_frags.py.
string gen_crt_frags.posname = 'pos' |
Definition at line 1421 of file gen_crt_frags.py.
gen_crt_frags.printModIds = False |
Definition at line 28 of file gen_crt_frags.py.
tuple gen_crt_frags.pv = ET.SubElement(w, 'physvol') |
Definition at line 1419 of file gen_crt_frags.py.
float gen_crt_frags.separatetwomodule = 0.6 |
Definition at line 59 of file gen_crt_frags.py.
Definition at line 1423 of file gen_crt_frags.py.
float gen_crt_frags.SHELLWVOFFSET = SHELLZ*0.5 |
Definition at line 165 of file gen_crt_frags.py.
float gen_crt_frags.SHELLY = 1.1 |
Definition at line 138 of file gen_crt_frags.py.
float gen_crt_frags.SHELLZ = 1.01 |
Definition at line 164 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTNORTHWALLTOFLOOR = 152.2 |
Definition at line 120 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTPOSTSPACING = 4.13 |
Definition at line 50 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTPOSTWIDTH = 4.13 |
Definition at line 49 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTROLLOFFSET = 44.29 |
Definition at line 119 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTSHELFTHICK = 0.56 |
Definition at line 52 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTSOUTHWALLLATOFFSET = 1.1 |
Definition at line 121 of file gen_crt_frags.py.
int gen_crt_frags.SIDECRTSTACKDEPTH = 3 |
Definition at line 51 of file gen_crt_frags.py.
float gen_crt_frags.SIDECRTWVOFFSET = 4.13 |
Definition at line 48 of file gen_crt_frags.py.
float gen_crt_frags.SLIDERSPACE = 18.5 |
Definition at line 117 of file gen_crt_frags.py.
float gen_crt_frags.SLOPEINCLINATION = 90.0 |
Definition at line 134 of file gen_crt_frags.py.
tuple gen_crt_frags.solids = ET.SubElement(gdml, 'solids') |
Definition at line 182 of file gen_crt_frags.py.
dictionary gen_crt_frags.solids_store = {} |
Definition at line 184 of file gen_crt_frags.py.
float gen_crt_frags.STACKOVERLAP = 50.0 |
Definition at line 118 of file gen_crt_frags.py.
tuple gen_crt_frags.structure = ET.SubElement(gdml, 'structure') |
Definition at line 183 of file gen_crt_frags.py.
gen_crt_frags.testmode = False |
Definition at line 27 of file gen_crt_frags.py.
float gen_crt_frags.TOPCRTBEAMTOFLOOR = 970.8 |
Definition at line 44 of file gen_crt_frags.py.
float gen_crt_frags.TOPLEDGERISERTOFLOOR = 991.9 |
Definition at line 42 of file gen_crt_frags.py.
float gen_crt_frags.verticalmodule = 485.14 |
Definition at line 62 of file gen_crt_frags.py.
Definition at line 1416 of file gen_crt_frags.py.
tuple gen_crt_frags.ws = ET.SubElement(solids, 'box', name='World', lunit="cm", x='1500', y='1500', z='3000') |
Definition at line 1415 of file gen_crt_frags.py.
float gen_crt_frags.WVFOOTELEVATION = 10.16 |
Definition at line 36 of file gen_crt_frags.py.
float gen_crt_frags.WVHEIGHT = 627.4 |
Definition at line 34 of file gen_crt_frags.py.
float gen_crt_frags.WVLENGTH = 2268.8 |
Definition at line 35 of file gen_crt_frags.py.
float gen_crt_frags.WVWIDTH = 1031.8 |
Parameters ##################### warm vessel (cm), increased as of 7/19/2019 to reflect full extent of WV profile in detector hall.
Definition at line 33 of file gen_crt_frags.py.
float gen_crt_frags.XC = 23.0 |
Definition at line 84 of file gen_crt_frags.py.
float gen_crt_frags.XD = 5.0 |
Definition at line 89 of file gen_crt_frags.py.
float gen_crt_frags.XM = 1.0 |
Definition at line 78 of file gen_crt_frags.py.
float gen_crt_frags.YCBOT = 1.5 |
Definition at line 87 of file gen_crt_frags.py.
float gen_crt_frags.YCTOP = 1.0 |
Definition at line 86 of file gen_crt_frags.py.
float gen_crt_frags.YD = 1.0 |
Definition at line 91 of file gen_crt_frags.py.
float gen_crt_frags.YM = 4.1 |
Definition at line 76 of file gen_crt_frags.py.
float gen_crt_frags.ZC = 184.0 |
Definition at line 85 of file gen_crt_frags.py.
float gen_crt_frags.ZD = 322.5 |
Definition at line 90 of file gen_crt_frags.py.
float gen_crt_frags.ZM = 800.0 |
Definition at line 77 of file gen_crt_frags.py.