Warning, /CommonTools/TrackerMap/bin/README is written in an unsupported language. File is not indexed.
0001 1)Example on how to generate a tkmap starting from a list of
0002 <detids> <value> (NB: a single entry for each detid)
0003
0004 Starting from a ascii file containing the list (dummy.txt) and from an empty tkmap.xml
0005 run this awk script to create a new xml tkmap
0006
0007 awk -f tkmap.awk [optional vmin=value0 vmax=value1] dummy.txt tkmap_white.xml > ! dummy.xml
0008
0009 -------------------------------------------------
0010
0011 To generate a .png, .pdf, .C file containing the same tkmap included in a tkmap.xml
0012 run the application
0013
0014 svgTopng.exe <inputTkMap> <outputFile>
0015
0016 for example
0017 ./svgTopng.exe dummy.xml dummy.png
0018 ./svgTopng.exe dummy.xml dummy.pdf
0019
0020 or
0021 ./svgTopng.exe NoiseTkMap_Run_109574.svg Noise.png
0022 -------------------------------------------------
0023
0024 To compile the executable svtTopng.exe run the script ./compile.sh
0025
0026
0027 2)Example on how to create the set of 41 images of the "tracker scan" (one for each layer)
0028 starting from a text file "points.txt" containing a list of points in space in the format:
0029 detid x y z
0030
0031 ./tkScanBuild.exe points.txt
0032
0033 To compile the executable tkScanBuild.exe
0034
0035 use the command:
0036
0037 g++ -g -m32 -Wall -ansi -I $ROOTSYS/include -L $ROOTSYS/lib `root-config --glibs` -o tkScanBuild.exe tkScanBuild.C
0038
0039 To test the program you need to download in the same directory:
0040 tkScanBuild.exe
0041 points.txt
0042 CommonTools/TrackerMap/data/tracker.dat
0043
0044 Then give the command:
0045
0046 ./tkScanBuild.exe points.txt
0047
0048 To create the web page "tkscan.html" with thumbnails linked to the 41 images use
0049 the following command:
0050 montage -geometry 240x120+10+10 -background white -tile 5x100 -label %f PIXB*.png TIB*.png TOB*.png NULL: NULL: PIXEM*.png TIDM*.png TECM*.png NULL: PIXEP*.png TIDP*.png TECP*.png tkscan.html
0051
0052
0053
0054