Project

General

Profile

Using the Cosmic Tracker » History » Version 3

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

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