Belle II Software development
CosmicsAlignmentValidation.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 <framework/core/Module.h>
11#include <framework/datastore/StoreArray.h>
12#include <mdst/dataobjects/MCParticle.h>
13#include <mdst/dataobjects/TrackFitResult.h>
14
15#include <genfit/Track.h>
16
17class TTree;
18class TFile;
19
20#include <string>
21
22namespace Belle2 {
35 public:
38
41
47 virtual void initialize() override;
48
53 virtual void event() override;
54
56 virtual void terminate() override;
57
61 static const TrackFitResult* findRelatedTrackFitResult(const genfit::Track* gfTrack);
62
63 private:
64 std::string m_gfTrackColName;
65 std::string m_outputFileName;
66
69
72
73 TFile* file;
74 TTree* tree;
75
76 float t_p1 = 0;
77 float t_p1MC = 0;
78 float t_p2MC = 0;
79 float t_p2 = 0;
80 float t_pt1 = 0;
81 float t_pt2 = 0;
82 float t_dz = 0;
83 float t_dR = 0;
84
85 float t_x1 = 0;
86 float t_x2 = 0;
87 float t_y1 = 0;
88 float t_y2 = 0;
89 float t_z1 = 0;
90 float t_z2 = 0;
91
92 float t_px1 = 0;
93 float t_px2 = 0;
94 float t_py1 = 0;
95 float t_py2 = 0;
96 float t_pz1 = 0;
97 float t_pz2 = 0;
98
99 float t_D01 = 0;
100 float t_Phi1 = 0;
101 float t_Omega1 = 0;
102 float t_Z01 = 0;
103 float t_cotTheta1 = 0;
104
105 float t_D02 = 0;
106 float t_Phi2 = 0;
107 float t_Omega2 = 0;
108 float t_Z02 = 0;
109 float t_cotTheta2 = 0;
110
111 };
112
113}
virtual void initialize() override
Use this to initialize resources or memory your module needs.
virtual void event() override
Called once for each event.
virtual void terminate() override
Clean up anything you created in initialize().
static const TrackFitResult * findRelatedTrackFitResult(const genfit::Track *gfTrack)
Find trackfit results in for the corresponding track.
CosmicsAlignmentValidationModule()
Constructor, for setting module description and parameters.
StoreArray< genfit::Track > m_GenfitTracks
Genfit tracks.
~CosmicsAlignmentValidationModule() override
Use to clean up anything you created in the constructor.
StoreArray< MCParticle > m_MCParticles
MC particles.
std::string m_outputFileName
output filename string
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Values of the result of a track fit with a given particle hypothesis.
Abstract base class for different kinds of events.