Closed redeboer closed 4 years ago
Merging #306 into master will increase coverage by
1.35%
. The diff coverage is72.47%
.
@@ Coverage Diff @@
## master #306 +/- ##
==========================================
+ Coverage 36.68% 38.03% +1.35%
==========================================
Files 88 84 -4
Lines 7373 7274 -99
==========================================
+ Hits 2705 2767 +62
+ Misses 4668 4507 -161
The design of EventCollection
could definitely be made safer (either making Events
and Pids
const
or by making them private). I tried but then ran into several problems where (1) STL algorithms need direct access to the Events
vector and (2) the EventCollection
is build up in steps using for instance push_back
.
In the
Event
class,Particle
has been replaced byFourMomentum
. The particle information is contained within a list of PIDs that is contained within theEventList
class. This required a lot of refactoring, but allows for checking the PIDs when for instance doing kinematic variable conversion.Note that the format of RootDataIO has been changed as well: no use is made of the infamous
TClonesArray
anymore (note that even ROOT writes "It is recommended to use STL containers instead ofTClonesArrays
").I also took the liberty to rename several variables to make them agree with our naming conventions.