Project

General

Profile

Using the Cosmic Tracker » History » Version 1

Muhammad Elnimr, 08/26/2014 08:04 PM

1 1 Muhammad Elnimr
h1. Using the Cosmic Tracker
2 1 Muhammad Elnimr
3 1 Muhammad Elnimr
#
4 1 Muhammad Elnimr
#
5 1 Muhammad Elnimr
# Some indespensible information:
6 1 Muhammad Elnimr
#
7 1 Muhammad Elnimr
# (1) What is a Hit/Cluster/Spacepoint/Track/......?
8 1 Muhammad Elnimr
#     Look for the private members here:
9 1 Muhammad Elnimr
#    https://cdcvs.fnal.gov/redmine/projects/lardata/repository/revisions/develop/entry/RecoBase/Hit.h
10 1 Muhammad Elnimr
#    and others
11 1 Muhammad Elnimr
#    Cluster.h
12 1 Muhammad Elnimr
#    Track.h
13 1 Muhammad Elnimr
#    ....
14 1 Muhammad Elnimr
#
15 1 Muhammad Elnimr
# (2) Michelle's getting started:
16 1 Muhammad Elnimr
#    ~mstancar/getting_started_*
17 1 Muhammad Elnimr
#
18 1 Muhammad Elnimr
#
19 1 Muhammad Elnimr
#
20 1 Muhammad Elnimr
#
21 1 Muhammad Elnimr
# (3) Twiki tutorial:
22 1 Muhammad Elnimr
#
23 1 Muhammad Elnimr
# https://cdcvs.fnal.gov/redmine/projects/lbnecode/wiki/_Tutorial_
24 1 Muhammad Elnimr
#
25 1 Muhammad Elnimr
#
26 1 Muhammad Elnimr
#
27 1 Muhammad Elnimr
# (4) Hot fix: commit changes to quickly LArSoft before anybody notices (and
28 1 Muhammad Elnimr
#     without being on a branch):
29 1 Muhammad Elnimr
#
30 1 Muhammad Elnimr
#  Make sure all your modifications work/ready/tested/compiles with
31 1 Muhammad Elnimr
#  the latest larsoft.
32 1 Muhammad Elnimr
#  Check out the latest larsoft.
33 1 Muhammad Elnimr
#  Copy your stuff over.
34 1 Muhammad Elnimr
#  Do git add
35 1 Muhammad Elnimr
#         commit -m 'some text'
36 1 Muhammad Elnimr
#         push 
37 1 Muhammad Elnimr
#
38 1 Muhammad Elnimr
# (5) ...
39 1 Muhammad Elnimr
40 1 Muhammad Elnimr
41 1 Muhammad Elnimr
42 1 Muhammad Elnimr
43 1 Muhammad Elnimr
44 1 Muhammad Elnimr
45 1 Muhammad Elnimr
#####
46 1 Muhammad Elnimr
47 1 Muhammad Elnimr
48 1 Muhammad Elnimr
 Running the anatree and trkanact:
49 1 Muhammad Elnimr
50 1 Muhammad Elnimr
51 1 Muhammad Elnimr
#####
52 1 Muhammad Elnimr
53 1 Muhammad Elnimr
Look at standard_reco_lbne35t.fcl for the module names and other stuff
54 1 Muhammad Elnimr
to run anatree and trkanact.
55 1 Muhammad Elnimr
56 1 Muhammad Elnimr
Currently the tracks are not stitched, if you want to stitch them just
57 1 Muhammad Elnimr
run the stitch module right after the cosmictracker.
58 1 Muhammad Elnimr
59 1 Muhammad Elnimr
#####
60 1 Muhammad Elnimr
61 1 Muhammad Elnimr
 Working with the anatree:
62 1 Muhammad Elnimr
63 1 Muhammad Elnimr
64 1 Muhammad Elnimr
####
65 1 Muhammad Elnimr
66 1 Muhammad Elnimr
Be careful the anatree has different "sets" of leafs, lets say ones
67 1 Muhammad Elnimr
belonging to tracks and ones belonging to hits (may be third belonging
68 1 Muhammad Elnimr
to clusters). Lets say you wanna draw the x coordinate of track
69 1 Muhammad Elnimr
spacepoints (trkx) so you need to not draw the entries belonging to
70 1 Muhammad Elnimr
tracks (-999 entries) since the tree is filled with hits and tracks at
71 1 Muhammad Elnimr
the same time and definitely there are more hits than tracks in any
72 1 Muhammad Elnimr
event.
73 1 Muhammad Elnimr
So you just do:
74 1 Muhammad Elnimr
75 1 Muhammad Elnimr
76 1 Muhammad Elnimr
treename->Draw("trkx","trkx>-9999");
77 1 Muhammad Elnimr
78 1 Muhammad Elnimr
because if you do just:
79 1 Muhammad Elnimr
80 1 Muhammad Elnimr
treename->Draw("trkx"); 
81 1 Muhammad Elnimr
82 1 Muhammad Elnimr
you get all the entries with -999 (think of it as a static array with
83 1 Muhammad Elnimr
empty elements filled with this big negative number).
84 1 Muhammad Elnimr
85 1 Muhammad Elnimr
86 1 Muhammad Elnimr
#####
87 1 Muhammad Elnimr
88 1 Muhammad Elnimr
89 1 Muhammad Elnimr
Still more to come.........
90 1 Muhammad Elnimr
91 1 Muhammad Elnimr
####