Project

General

Profile

Using the Cosmic Tracker » History » Version 2

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