Project

General

Profile

Art2 Changes » History » Version 7

Erica Smith, 02/27/2018 11:50 AM

1 7 Erica Smith
{{>toc}}
2 1 Gavin Davies
3 3 Gavin Davies
In February 2018 we made the long-awaited move to art2 and ROOT6
4 1 Gavin Davies
Specifically upgrading from art v1_17_01 --> art v2_09_06
5 1 Gavin Davies
This also brought along upgrade of nutools v1_21_11 --> v2_18_01
6 1 Gavin Davies
7 1 Gavin Davies
We now pull novaddt/novadaq packages into novasoft instead of using ups products that contain these
8 1 Gavin Davies
9 1 Gavin Davies
Tensorflow is now available in the offline for deep learning development efforts.
10 1 Gavin Davies
11 7 Erica Smith
h1. FHICL changes
12 1 Gavin Davies
13 6 Erica Smith
An extensive list of fhicl deprecations is listed on the "art redmine page":https://cdcvs.fnal.gov/redmine/projects/art/wiki under "Deprecations".
14 1 Gavin Davies
Specific fhicl changes of note in novasoft are the following:
15 1 Gavin Davies
16 1 Gavin Davies
<pre>
17 1 Gavin Davies
services.user.myService: {...}           --> services.myService: {...}
18 1 Gavin Davies
services.Timing: {...}                   --> services.TimeTracker: {...}
19 1 Gavin Davies
services.SimpleMemoryCheck: {...}        --> services.MemoryTracker: {...}
20 1 Gavin Davies
services.MemoryTracker.ignoreTotal: ".." --> No longer used
21 1 Gavin Davies
SelectEvents.SelectEvents: [...]         --> SelectEvents: [...]
22 1 Gavin Davies
debugModules: "*"  --> debugModules: ["*"] 
23 1 Gavin Davies
24 1 Gavin Davies
Make a note for cases that use
25 1 Gavin Davies
services.scheduler.fileMode              --> Contact artists for details
26 1 Gavin Davies
</pre>
27 1 Gavin Davies
28 7 Erica Smith
h1. CAFAna macros
29 2 Gavin Davies
30 7 Erica Smith
h2. New Features
31 7 Erica Smith
32 5 Gavin Davies
h3. Compilation
33 5 Gavin Davies
34 5 Gavin Davies
Don't be alarmed by the increase in the number of files produced when compiling CAFAna macros.
35 2 Gavin Davies
You should see three as opposed to the previous 2 that look like this:
36 2 Gavin Davies
<pre>
37 2 Gavin Davies
Compiling test.C produces:
38 2 Gavin Davies
39 2 Gavin Davies
test_C.d
40 2 Gavin Davies
test_C.so
41 2 Gavin Davies
test_C_ACLiC_dict_rdict.pcm
42 1 Gavin Davies
</pre>
43 5 Gavin Davies
44 5 Gavin Davies
h3. Compilation errors
45 4 Gavin Davies
46 4 Gavin Davies
One gets more useful error messaging when running a macro with missing arguments.
47 4 Gavin Davies
Example:
48 4 Gavin Davies
<pre>
49 4 Gavin Davies
Info in <TUnixSystem::ACLiC>: creating shared library /nova/app/users/gsdavies/dev/./DataMCNDLoad_nus17_C.so
50 4 Gavin Davies
input_line_84:2:2: error: no matching function for call to 'DataMCNDLoad_nus17'
51 4 Gavin Davies
 DataMCNDLoad_nus17()
52 4 Gavin Davies
 ^~~~~~~~~~~~~~~~~~
53 4 Gavin Davies
././DataMCNDLoad_nus17.C:53:6: note: candidate function not viable: requires single argument 'outfile', but no
54 4 Gavin Davies
      arguments were provided
55 1 Gavin Davies
void DataMCNDLoad_nus17(std::string outfile)
56 1 Gavin Davies
</pre>
57 1 Gavin Davies
58 7 Erica Smith
59 7 Erica Smith
h2. Harmless Warnings 
60 7 Erica Smith
61 7 Erica Smith
This section documents new warnings that may pop up, but should not affect the successful completion of your macro.
62 7 Erica Smith
63 7 Erica Smith
h3. TTreeFormula support only 2 level of variables size collections
64 7 Erica Smith
65 7 Erica Smith
If you are seeing warnings similar to:
66 7 Erica Smith
67 7 Erica Smith
<pre>
68 7 Erica Smith
Warning in <TTreeFormula::DefinedVariable>: TTreeFormula support only 2 level of variables size collections.  Assuming '@' notation for the collection bpf.
69 7 Erica Smith
Warning in <TTreeFormula::DefinedVariable>: Missing class for rec.vtx.elastic[0].fuzzyk.png[0].@bpf.at(1).pdg!
70 7 Erica Smith
</pre>
71 7 Erica Smith
72 7 Erica Smith
This is due to accessing more than 2 vectors in your variable (in this example: vertices, prongs, tracks).
73 7 Erica Smith
74 7 Erica Smith
h2. Potential changes
75 7 Erica Smith
76 7 Erica Smith
This section documents changes you may need to make to your macro as a result of switching to root6.
77 7 Erica Smith
78 6 Erica Smith
h3. Fitting errors
79 6 Erica Smith
80 6 Erica Smith
If you are fitting a histogram and getting the error message 
81 6 Erica Smith
82 6 Erica Smith
<pre>Warning in <Fit>: Fit data is empty</pre> 
83 6 Erica Smith
84 6 Erica Smith
but your histogram is not empty, check to see if your bin errors are equal to 0 with <pre>h->Print("all");</pre>
85 6 Erica Smith
86 6 Erica Smith
which will output something like this:
87 6 Erica Smith
88 6 Erica Smith
<pre>
89 6 Erica Smith
TH1.Print Name  = cafanauniq86, Entries= 1, Total sum= 102.998
90 6 Erica Smith
 fSumw[0]=0, x=-1.10917, error=0
91 6 Erica Smith
</pre>
92 6 Erica Smith
93 6 Erica Smith
If they are 0, setting <pre>h->Sumw2(kFALSE);</pre> should solve the problem.