Belle II Software development
CDCfromEclStateTruthVarSet.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 cdcfromEclStateTruthVarNames[] = {
23 "match",
24 "PDG",
25 "seed_p_truth",
26 "seed_theta_truth",
27 "seed_pt_truth",
28 "seed_pz_truth",
29 "seed_px_truth",
30 "seed_py_truth"
31 };
32
34 class CDCfromEclStateTruthVarNames : public TrackFindingCDC::VarNames<BaseCDCStateFilter::Object> {
35
36 public:
38 static const size_t nVars = TrackFindingCDC::size(cdcfromEclStateTruthVarNames);
39
41 constexpr
42 static char const* getName(int iName)
43 {
44 return cdcfromEclStateTruthVarNames[iName];
45 }
46 };
47
51 class CDCfromEclStateTruthVarSet : public TrackFindingCDC::VarSet<CDCfromEclStateTruthVarNames> {
52
53 public:
55 virtual bool extract(const BaseCDCStateFilter::Object* result) override;
56 };
58}
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 cdcfromEclStateTruthVarNames[]
Names of the variables to be generated.
Abstract base class for different kinds of events.