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 beginRun() override;
54
59 virtual void event() override;
60
65 virtual void endRun() override;
66
68 virtual void terminate() override;
69
73 const TrackFitResult* findRelatedTrackFitResult(const genfit::Track* gfTrack);
74
75 private:
76 std::string m_gfTrackColName;
77 std::string m_outputFileName;
78
81
84
85 TFile* file;
86 TTree* tree;
87
88 float t_p1 = 0;
89 float t_p1MC = 0;
90 float t_p2MC = 0;
91 float t_p2 = 0;
92 float t_pt1 = 0;
93 float t_pt2 = 0;
94 float t_dz = 0;
95 float t_dR = 0;
96
97 float t_x1 = 0;
98 float t_x2 = 0;
99 float t_y1 = 0;
100 float t_y2 = 0;
101 float t_z1 = 0;
102 float t_z2 = 0;
103
104 float t_px1 = 0;
105 float t_px2 = 0;
106 float t_py1 = 0;
107 float t_py2 = 0;
108 float t_pz1 = 0;
109 float t_pz2 = 0;
110
111 float t_D01 = 0;
112 float t_Phi1 = 0;
113 float t_Omega1 = 0;
114 float t_Z01 = 0;
115 float t_cotTheta1 = 0;
116
117 float t_D02 = 0;
118 float t_Phi2 = 0;
119 float t_Omega2 = 0;
120 float t_Z02 = 0;
121 float t_cotTheta2 = 0;
122
123 };
124
125}
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 endRun() override
Called once when a run ends.
virtual void terminate() override
Clean up anything you created in initialize().
const TrackFitResult * findRelatedTrackFitResult(const genfit::Track *gfTrack)
Find trackfit results in for the corresponding track.
virtual void beginRun() override
Called once before a new run begins.
CosmicsAlignmentValidationModule()
Constructor, for setting module description and parameters.
StoreArray< genfit::Track > m_GenfitTracks
Genfit tracks.
virtual ~CosmicsAlignmentValidationModule()
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.