10#include <tracking/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
13#include <tracking/trackFindingCDC/utilities/Named.h>
14#include <tracking/trackFindingCDC/utilities/MayBePtr.h>
16#include <RtypesCore.h>
26 namespace TrackFindingCDC {
29 template<
class AFilter>
36 static constexpr char const*
getName(
int iName);
46 template <
class AFilter>
64 FilterVarSet(
const std::string& filterName, std::unique_ptr<Filter> ptrFilter);
84 MayBePtr<Float_t>
find(const
std::
string& varName) override;
std::vector< Named< Float_t * > > getNamedVariables()
Getter for the named references to the individual variables.
Class to compute floating point variables from a filter response which can be recorded as a flat TNtu...
std::string m_filterNamePrefix
Prefix to be put in front of the filter variables.
std::string m_filterName
Name of the filter.
void initialize() final
Initialize the filter before event processing.
bool extract(const Object *obj) final
Generate filter weight variable from the object.
typename Filter::Object Object
Type of the object from which the filter judgement should be extracted.
std::unique_ptr< Filter > m_ptrFilter
Filter from which to generate weight as a variable set;.
AFilter Filter
Type of the filter.
double m_cut
The cut on the filter output.
MayBePtr< Float_t > find(const std::string &varName) override
Pointer to the variable with the given name.
AObject Object
Type of the object to be analysed.
A mixin class to attach a name to an object.
Class that specifies the names of the variables.
Generic class that generates some named float values from a given object.
static constexpr int named(const char *name)
Getter for the index from the name.
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.