Belle II Software  release-08-01-10
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 
17 class TTree;
18 class TFile;
19 
20 #include <string>
21 
22 namespace 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 
74 
75  private:
76  std::string m_gfTrackColName;
77  std::string m_outputFileName;
78 
81 
84 
85  TFile* file;
86  TTree* tree;
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;
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;
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;
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;
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;
123  };
125 }
Module to find Track correlation in cosmic events.
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
ouput filename string
Base class for Modules.
Definition: Module.h:72
Values of the result of a track fit with a given particle hypothesis.
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
Definition: Track.h:71
Abstract base class for different kinds of events.