10#include <tracking/trackingUtilities/varsets/VarSet.h>
11#include <tracking/trackingUtilities/varsets/VarNames.h>
14#include <boost/accumulators/accumulators.hpp>
15#include <boost/accumulators/statistics/count.hpp>
16#include <boost/accumulators/statistics/min.hpp>
17#include <boost/accumulators/statistics/max.hpp>
18#include <boost/accumulators/statistics/sum.hpp>
19#include <boost/accumulators/statistics/mean.hpp>
20#include <boost/accumulators/statistics/variance.hpp>
22namespace bacc = boost::accumulators;
29 namespace TrackingUtilities {
32 namespace TrackFindingCDC {
36 static char const*
const basicTrackVarNames[] = {
45 "has_matching_segment",
48 "cont_layer_variance",
53 "cont_layer_max_vs_last",
54 "cont_layer_first_vs_min",
56 "cont_layer_occupancy",
59 "super_layer_variance",
64 "super_layer_max_vs_last",
65 "super_layer_first_vs_min",
67 "super_layer_occupancy",
70 "drift_length_variance",
101 static const size_t nVars = TrackingUtilities::size(basicTrackVarNames);
104 static constexpr char const*
getName(
int iName)
106 return basicTrackVarNames[iName];
130 bacc::tag::lazy_variance>;
Class to compute floating point variables from a track which can be recorded as a flat TNtuple or ser...
bool extract(const TrackingUtilities::CDCTrack *track) override
Generate and assign the contained variables.
bacc::features< bacc::tag::count, bacc::tag::sum, bacc::tag::min, bacc::tag::max, bacc::tag::mean, bacc::tag::lazy_variance > statistics_set
Set of statistics/features to accumulate for each variable category (e.g.
bacc::accumulator_set< double, statistics_set > statistics_accumulator
A boost accumulators set that aggregates statistics for the values it is called with.
Class representing a sequence of three dimensional reconstructed hits.
Class that specifies the names of the variables.
Generic class that generates some named float values from a given object.
Abstract base class for different kinds of events.
Vehicle class to transport the variable names.
static const size_t nVars
Number of variables to be generated.
static constexpr char const * getName(int iName)
Getter for the name at the given index.