Project

General

Profile

Art2 Changes » History » Version 10

Gavin Davies, 03/12/2018 06:07 AM
couple more sometimes used header relocations

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 8 Gavin Davies
h1. art header includes
29 8 Gavin Davies
30 8 Gavin Davies
The code in art2 had a bit of a restructuring. The locations of product-reading libraries and headers have migrated to canvas.
31 8 Gavin Davies
Full details of the Migration from "ROOT5 to ROOT6":https://cdcvs.fnal.gov/redmine/projects/art/wiki/Migrating_from_ROOT5_to_ROOT6
32 8 Gavin Davies
33 8 Gavin Davies
h2. Common to novasoft
34 8 Gavin Davies
35 8 Gavin Davies
Here are a few changes you're most likely to see/need:
36 8 Gavin Davies
<pre>
37 10 Gavin Davies
art/Framework/Core/FindOneP.h          --> canvas/Persistency/Common/FindOneP.h (FindMany/FindManyP...)
38 10 Gavin Davies
art/Utilities/InputTag.h               --> canvas/Utilities/InputTag.h
39 10 Gavin Davies
art/Persistency/Common/Assns.h         --> canvas/Persistency/Common/Assns.h
40 10 Gavin Davies
art/Persistency/Provenance/ProductID.h --> canvas/Persistency/Provenance/ProductID.h
41 10 Gavin Davies
art/Persistency/Common/Ptr.h           --> canvas/Persistency/Common/Ptr.h (PtrVector.h)
42 8 Gavin Davies
</pre>
43 9 Gavin Davies
44 7 Erica Smith
h1. CAFAna macros
45 2 Gavin Davies
46 7 Erica Smith
h2. New Features
47 7 Erica Smith
48 5 Gavin Davies
h3. Compilation
49 5 Gavin Davies
50 5 Gavin Davies
Don't be alarmed by the increase in the number of files produced when compiling CAFAna macros.
51 2 Gavin Davies
You should see three as opposed to the previous 2 that look like this:
52 2 Gavin Davies
<pre>
53 2 Gavin Davies
Compiling test.C produces:
54 2 Gavin Davies
55 2 Gavin Davies
test_C.d
56 2 Gavin Davies
test_C.so
57 2 Gavin Davies
test_C_ACLiC_dict_rdict.pcm
58 1 Gavin Davies
</pre>
59 5 Gavin Davies
60 5 Gavin Davies
h3. Compilation errors
61 4 Gavin Davies
62 4 Gavin Davies
One gets more useful error messaging when running a macro with missing arguments.
63 4 Gavin Davies
Example:
64 4 Gavin Davies
<pre>
65 4 Gavin Davies
Info in <TUnixSystem::ACLiC>: creating shared library /nova/app/users/gsdavies/dev/./DataMCNDLoad_nus17_C.so
66 4 Gavin Davies
input_line_84:2:2: error: no matching function for call to 'DataMCNDLoad_nus17'
67 4 Gavin Davies
 DataMCNDLoad_nus17()
68 4 Gavin Davies
 ^~~~~~~~~~~~~~~~~~
69 4 Gavin Davies
././DataMCNDLoad_nus17.C:53:6: note: candidate function not viable: requires single argument 'outfile', but no
70 4 Gavin Davies
      arguments were provided
71 1 Gavin Davies
void DataMCNDLoad_nus17(std::string outfile)
72 1 Gavin Davies
</pre>
73 1 Gavin Davies
74 7 Erica Smith
75 7 Erica Smith
h2. Harmless Warnings 
76 7 Erica Smith
77 7 Erica Smith
This section documents new warnings that may pop up, but should not affect the successful completion of your macro.
78 7 Erica Smith
79 7 Erica Smith
h3. TTreeFormula support only 2 level of variables size collections
80 7 Erica Smith
81 7 Erica Smith
If you are seeing warnings similar to:
82 7 Erica Smith
83 7 Erica Smith
<pre>
84 7 Erica Smith
Warning in <TTreeFormula::DefinedVariable>: TTreeFormula support only 2 level of variables size collections.  Assuming '@' notation for the collection bpf.
85 7 Erica Smith
Warning in <TTreeFormula::DefinedVariable>: Missing class for rec.vtx.elastic[0].fuzzyk.png[0].@bpf.at(1).pdg!
86 7 Erica Smith
</pre>
87 7 Erica Smith
88 7 Erica Smith
This is due to accessing more than 2 vectors in your variable (in this example: vertices, prongs, tracks).
89 7 Erica Smith
90 7 Erica Smith
h2. Potential changes
91 7 Erica Smith
92 7 Erica Smith
This section documents changes you may need to make to your macro as a result of switching to root6.
93 7 Erica Smith
94 6 Erica Smith
h3. Fitting errors
95 6 Erica Smith
96 6 Erica Smith
If you are fitting a histogram and getting the error message 
97 6 Erica Smith
98 6 Erica Smith
<pre>Warning in <Fit>: Fit data is empty</pre> 
99 6 Erica Smith
100 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>
101 6 Erica Smith
102 6 Erica Smith
which will output something like this:
103 6 Erica Smith
104 6 Erica Smith
<pre>
105 6 Erica Smith
TH1.Print Name  = cafanauniq86, Entries= 1, Total sum= 102.998
106 6 Erica Smith
 fSumw[0]=0, x=-1.10917, error=0
107 6 Erica Smith
</pre>
108 6 Erica Smith
109 6 Erica Smith
If they are 0, setting <pre>h->Sumw2(kFALSE);</pre> should solve the problem.