Belle II Software development
PXDDQMEfficiencyNtupleModule.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
9
10#pragma once
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14
15#include <vxd/geometry/GeoCache.h>
16
17#include "TFile.h"
18#include "TNtuple.h"
19
20
21namespace Belle2 {
26 class PXDCluster;
27 class Track;
28 class RecoTrack;
29 class ROIid;
30 class PXDIntercept;
31
38
39 public:
40
45
46 private:
47
51 void event() override final;
52
56 void initialize() override final;
57
61 void terminate() override final;
62
63
64 private:
65 /* helper functions to do some of the calculations*/
67 int findClosestCluster(const VxdID& vxdid, ROOT::Math::XYZVector intersection);
69 bool isCloseToBorder(int u, int v, int checkDistance);
71 bool isDeadPixelClose(int u, int v, int checkDistance, const VxdID& moduleID);
72
75
78
79 std::string m_ntupleName;
80 std::string m_pxdClustersName;
81 std::string m_tracksName;
82 std::string m_recoTracksName;
83 std::string m_ROIsName;
85
91
92 double m_pcut;
93 double m_momCut;
94 double m_pTCut;
95 unsigned int m_minSVDHits;
97
98 TFile* m_file{};
99 TNtuple* m_tuple{};
100
101 };
102
103}
Module()
Constructor.
Definition Module.cc:30
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
Definition PXDCluster.h:30
void initialize() override final
initializes the need store arrays, trees and histograms
bool isCloseToBorder(int u, int v, int checkDistance)
is it close to the border
unsigned int m_minSVDHits
Required hits in SVD strips for tracks.
StoreArray< PXDCluster > m_pxdclusters
store array of pxd clusters
std::string m_PXDInterceptListName
intercept list name
double m_momCut
Cut on fitted track momentum.
int findClosestCluster(const VxdID &vxdid, ROOT::Math::XYZVector intersection)
find the closest cluster
bool isDeadPixelClose(int u, int v, int checkDistance, const VxdID &moduleID)
is a dead pixel close
void terminate() override final
terminate , save tuple to file if needed
void event() override final
main function which fills trees and histograms
std::string m_pxdClustersName
name of the store array of pxd clusters
StoreArray< Track > m_tracks
store array of tracks
std::string m_recoTracksName
name of the store array of recotracks
int m_maskedDistance
Distance inside which no dead pixel or module border is allowed.
StoreArray< PXDIntercept > m_intercepts
store array of PXD Intercepts
std::string m_ROIsName
name of the store array of ROIs
StoreArray< RecoTrack > m_recoTracks
store array of reco tracks
bool m_useAlignment
if true alignment will be used!
PXDDQMEfficiencyNtupleModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_tracksName
name of the store array of tracks
StoreArray< ROIid > m_ROIs
store array of ROIs
PXDIntercept stores the U,V coordinates and uncertainties of the intersection of a track with an PXD ...
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
Definition ROIid.h:25
This is the Reconstruction Event-Data Model Track.
Definition RecoTrack.h:79
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Class that bundles various TrackFitResults.
Definition Track.h:25
Class to facilitate easy access to sensor information of the VXD like coordinate transformations or p...
Definition GeoCache.h:38
Class to uniquely identify a any structure of the PXD and SVD.
Definition VxdID.h:32
Abstract base class for different kinds of events.