Belle II Software  release-05-02-19
FillTrackFitNtupleModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Stefano Spataro *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #ifndef FILLTRACKFITNTUPLEMODULE_H_
11 #define FILLTRACKFITNTUPLEMODULE_H_
12 
13 #include <framework/core/Module.h>
14 #include <tracking/modules/trackingPerformanceEvaluation/PerformanceEvaluationBaseClass.h>
15 
16 #include <TNtuple.h>
17 
18 #include <framework/datastore/StoreArray.h>
19 
20 #include <mdst/dataobjects/Track.h>
21 
22 #include <tracking/dataobjects/RecoTrack.h>
23 
24 // forward declarations
25 namespace Belle2 {
35  class FillTrackFitNtupleModule : public Module, PerformanceEvaluationBaseClass {
36 
37  public:
38 
41 
43  void initialize() override;
44 
46  void event() override;
47 
49  void terminate() override;
50 
51  private:
52 
53  /* user-defined parameters */
54  std::string m_RecoTracksName;
55  std::string m_TracksName;
58  TNtuple* m_n_MultiParticle = nullptr;
62  };
64 } // end of namespace
65 
66 
67 #endif /* FILLTRACKFITNTUPLEMODULE_H_ */
Belle2::FillTrackFitNtupleModule::m_RecoTracksName
std::string m_RecoTracksName
RecoTrack StoreArray name.
Definition: FillTrackFitNtupleModule.h:62
Belle2::FillTrackFitNtupleModule::m_n_MultiParticle
TNtuple * m_n_MultiParticle
Multi particle ntuple.
Definition: FillTrackFitNtupleModule.h:66
Belle2::FillTrackFitNtupleModule::m_ParticleHypothesis
int m_ParticleHypothesis
Particle Hypothesis for the track fit (default: 211)
Definition: FillTrackFitNtupleModule.h:64
Belle2::FillTrackFitNtupleModule::initialize
void initialize() override
Require the store arrays and create the output root file.
Definition: FillTrackFitNtupleModule.cc:39
Belle2::FillTrackFitNtupleModule::m_Tracks
StoreArray< Track > m_Tracks
Track StoreArray.
Definition: FillTrackFitNtupleModule.h:69
Belle2::FillTrackFitNtupleModule::m_RecoTracks
StoreArray< RecoTrack > m_RecoTracks
RecoTrack StoreArray.
Definition: FillTrackFitNtupleModule.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FillTrackFitNtupleModule::FillTrackFitNtupleModule
FillTrackFitNtupleModule()
Default Empty Constructor.
Definition: FillTrackFitNtupleModule.cc:25
Belle2::FillTrackFitNtupleModule::m_TracksName
std::string m_TracksName
Track StoreArray name.
Definition: FillTrackFitNtupleModule.h:63
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::FillTrackFitNtupleModule::terminate
void terminate() override
Save output root file with ntuple.
Definition: FillTrackFitNtupleModule.cc:184
Belle2::FillTrackFitNtupleModule::event
void event() override
Loop over Track objects and fill ntuples with tracking parameters.
Definition: FillTrackFitNtupleModule.cc:68