Belle II Software development
CDCStateTruthVarSet.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/varsets/VarSet.h>
11#include <tracking/trackFindingCDC/varsets/VarNames.h>
12
13#include <tracking/ckf/cdc/filters/states/BaseCDCStateFilter.h>
14
15namespace Belle2 {
21 constexpr
22 static char const* const cdcStateTruthVarNames[] = {
23 "match",
24 "PDG"
25 };
26
28 class CDCStateTruthVarNames : public TrackFindingCDC::VarNames<BaseCDCStateFilter::Object> {
29
30 public:
32 static const size_t nVars = TrackFindingCDC::size(cdcStateTruthVarNames);
33
35 constexpr
36 static char const* getName(int iName)
37 {
38 return cdcStateTruthVarNames[iName];
39 }
40 };
41
45 class CDCStateTruthVarSet : public TrackFindingCDC::VarSet<CDCStateTruthVarNames> {
46
47 public:
49 virtual bool extract(const BaseCDCStateFilter::Object* result) override;
50 };
52}
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)
Get the name of the column.
Var set to store basic quantities related to CDC CKF (using truth information)
virtual bool extract(const BaseCDCStateFilter::Object *result) override
Generate and assign the variables from the object.
AObject Object
Type of the object to be analysed.
Definition: Filter.dcl.h:35
Class that specifies the names of the variables.
Definition: VarNames.h:21
Generic class that generates some named float values from a given object.
Definition: VarSet.h:36
static constexpr char const *const cdcStateTruthVarNames[]
Names of the variables to be generated.
Abstract base class for different kinds of events.