ATLAS Offline Software
Loading...
Searching...
No Matches
compareGeometries.py
Go to the documentation of this file.
1#==============================================================
2# Author: John Alison (johnda@hep.upenn.edu)
3#
4# Date: 22 Aug 2008
5#
6# Description: Takes the output of the GetDetectorPositions packages
7# run on two different geometries and compares them.
8# It draws the two geometries and plots the difference
9# as a function of several parameters.
10#
11#Usage:
12# 1) Run InDetRecExample or poolToText.py with the jobOptions with the line
13# include("InDetSimpleVisual/GetDetectorPositions.py")
14# included for two different geometries.
15# 2) Point the inputFile1 and inputFile2 to the textfile outputs of GetDetectorPositions
16# 3) Name the output file
17# 4) Then do:
18# athena CompareGeometries.py
19# 5) The root file you named is created with all the relavent output.
20#==============================================================
21#inputFile1 = "IDgeometry_DB.txt"
22#inputFile1 = "M9Cosmics_BOFF/IDgeometry_L1_BON_Tp20.txt"
23inputFile1 = "M8Cosmics_L3/preM7.txt"
24inputFile2 = "M8Cosmics_L3/M8_afterL3.txt"
25outputFile = "IDAlignment3D.root"
26
27# The following options set the scales in the relevant plots
28# ==================
29#deltaR = 1.5
30#deltaPhiTrans = 2
31#deltaPhi = 0.0008
32deltaX = 0.1
33#deltaY = 2
34#deltaZ = 2
35#deltaXY = 3
36#TRASL_FACTOR = 500
37
38# Do we do detailed (wire level) drawing in the TRT ?
39# (Need the detailed text file as input)
40# Can do this by adding:
41# job.GetDetectorPositions.DoDetailedTRT = True
42# after including GetDetectorPositions.py
43# list of modules to draw the canvases for
44#drawTRTModules = [ (lay_1,phi_1), (lay_2,phi_2), ... ]
45drawTRTModules = [ (0,8), (0,9) ]
46
47# include the main script
48#==========================
49include("InDetSimpleVisual/makeComparison.py")
50