10#include <tracking/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/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 TrackFindingCDC {
34 static char const*
const basicTrackVarNames[] = {
43 "has_matching_segment",
46 "cont_layer_variance",
51 "cont_layer_max_vs_last",
52 "cont_layer_first_vs_min",
54 "cont_layer_occupancy",
57 "super_layer_variance",
62 "super_layer_max_vs_last",
63 "super_layer_first_vs_min",
65 "super_layer_occupancy",
68 "drift_length_variance",
99 static const size_t nVars = size(basicTrackVarNames);
102 static constexpr char const*
getName(
int iName)
104 return basicTrackVarNames[iName];
128 bacc::tag::lazy_variance>;
Class to compute floating point variables from a track which can be recorded as a flat TNtuple or ser...
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.
bool extract(const CDCTrack *track) override
Generate and assign the contained variables.
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.