Belle II Software  release-05-01-25
SVDStateTruthVarSet.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/varsets/VarSet.h>
13 #include <tracking/trackFindingCDC/varsets/VarNames.h>
14 
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 
18 #include <tracking/ckf/svd/filters/states/BaseSVDStateFilter.h>
19 #include <tracking/ckf/svd/utilities/SVDMCUtil.h>
20 
21 namespace Belle2 {
26  constexpr
28  static char const* const svdStateTruthVarNames[] = {
29  "truth",
30  "truth_inverted",
31  "truth_position_x",
32  "truth_position_y",
33  "truth_position_z",
34  "truth_momentum_x",
35  "truth_momentum_y",
36  "truth_momentum_z",
37  "truth_event_id",
38  "truth_seed_number"
39  };
40 
42  class SVDStateTruthVarNames : public TrackFindingCDC::VarNames<BaseSVDStateFilter::Object> {
43 
44  public:
46  static const size_t nVars = TrackFindingCDC::size(svdStateTruthVarNames);
47 
49  constexpr
50  static char const* getName(int iName)
51  {
52  return svdStateTruthVarNames[iName];
53  }
54  };
55 
60  class SVDStateTruthVarSet : public TrackFindingCDC::VarSet<SVDStateTruthVarNames> {
61 
62  public:
64  virtual bool extract(const BaseSVDStateFilter::Object* result) override;
65 
66  private:
69 
72  };
74 }
Belle2::SVDStateTruthVarSet::m_mcUtil
MCUtil m_mcUtil
MC information used in the SVD CKF.
Definition: SVDStateTruthVarSet.h:79
Belle2::SVDStateTruthVarSet
Var set used in the VXD-CDC-Merger for calculating the probability of a VXD-CDC-track match,...
Definition: SVDStateTruthVarSet.h:68
Belle2::svdStateTruthVarNames
constexpr static char const *const svdStateTruthVarNames[]
Names of the variables to be generated.
Definition: SVDStateTruthVarSet.h:36
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::SVDStateTruthVarNames::getName
constexpr static char const * getName(int iName)
Get the name of the column.
Definition: SVDStateTruthVarSet.h:58
Belle2::SVDStateTruthVarSet::m_eventMetaData
StoreObjPtr< EventMetaData > m_eventMetaData
Pointer to the object containing event number etc.
Definition: SVDStateTruthVarSet.h:76
Belle2::SVDStateTruthVarNames::nVars
static const size_t nVars
Number of variables to be generated.
Definition: SVDStateTruthVarSet.h:54
Belle2::MCUtil
Class bundling all helper functions for the MC information used in the PXD CKF.
Definition: PXDMCUtil.h:33
Belle2::SVDStateTruthVarSet::extract
virtual bool extract(const BaseSVDStateFilter::Object *result) override
Generate and assign the variables from the object.
Definition: SVDStateTruthVarSet.cc:19
Belle2::TrackFindingCDC::VarSet
Generic class that generates some named float values from a given object.
Definition: VarSet.h:46
Belle2::TrackFindingCDC::Filter::Object
AObject Object
Type of the object to be analysed.
Definition: Filter.dcl.h:43