Belle II Software development
CDCPathTruthVarSet.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 cdcPathTruthVarNames[] = {
23 "mcTrackHits",
24 "daughters",
25 "PDG",
26 "seed_p_truth",
27 "seed_theta_truth",
28 "seed_pt_truth",
29 "seed_pz_truth",
30 "seed_px_truth",
31 "seed_py_truth"
32 };
33
35 class CDCPathTruthVarNames : public TrackFindingCDC::VarNames<BaseCDCPathFilter::Object> {
36
37 public:
39 static const size_t nVars = TrackFindingCDC::size(cdcPathTruthVarNames);
40
42 constexpr
43 static char const* getName(int iName)
44 {
45 return cdcPathTruthVarNames[iName];
46 }
47 };
48
52 class CDCPathTruthVarSet : public TrackFindingCDC::VarSet<CDCPathTruthVarNames> {
53
54 public:
56 virtual bool extract(const BaseCDCPathFilter::Object* path) override;
57 };
59}
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 cdcPathTruthVarNames[]
Names of the variables to be generated.
Abstract base class for different kinds of events.