Belle II Software development
CDCfromEclPathTruthVarSet.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/paths/BaseCDCPathFilter.h>
14
15namespace Belle2 {
21 constexpr
22 static char const* const cdcfromEclPathTruthVarNames[] = {
23 "matched",
24 "daughters",
25 "PDG",
26 "mcTrackHits",
27 "seed_p_truth",
28 "seed_theta_truth",
29 "seed_pt_truth",
30 "seed_pz_truth",
31 "seed_px_truth",
32 "seed_py_truth"
33 };
34
36 class CDCfromEclPathTruthVarNames : public TrackFindingCDC::VarNames<BaseCDCPathFilter::Object> {
37
38 public:
40 static const size_t nVars = TrackFindingCDC::size(cdcfromEclPathTruthVarNames);
41
43 constexpr
44 static char const* getName(int iName)
45 {
46 return cdcfromEclPathTruthVarNames[iName];
47 }
48 };
49
53 class CDCfromEclPathTruthVarSet : public TrackFindingCDC::VarSet<CDCfromEclPathTruthVarNames> {
54
55 public:
57 virtual bool extract(const BaseCDCPathFilter::Object* path) override;
58 };
60}
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 BaseCDCPathFilter::Object *path) 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 cdcfromEclPathTruthVarNames[]
Names of the variables to be generated.
Abstract base class for different kinds of events.