Belle II Software prerelease-10-00-00a
PXDDQMEfficiencyNtupleSelftrackModule.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 <pxd/dataobjects/PXDCluster.h>
16
17#include <vxd/geometry/GeoCache.h>
18#include <vxd/geometry/SensorInfoBase.h>
19#include <mdst/dataobjects/Track.h>
20#include <tracking/dataobjects/RecoTrack.h>
21#include <tracking/dataobjects/ROIid.h>
22
23
24//root stuff
25#include "TFile.h"
26#include "TNtuple.h"
27
28
29namespace Belle2 {
34
47
48 public:
49
54
55 private:
56
60 void event() override final;
61
65 void initialize() override final;
66
70 void terminate() override final;
71
72
73 private:
75 /* returns the space point in local coordinates where the track hits the sensor:
76 sensorInfo: info of the sensor under investigation
77 aTrack: the track to be tested
78 isgood: flag which is false if some error occurred (do not use the point if false)
79 du and dv are the uncertainties in u and v on the sensor plane of the fit (local coordinates)
80 */
81 ROOT::Math::XYZVector getTrackInterSec(const VXD::SensorInfoBase& pxdSensorInfo, const RecoTrack& aTrack, bool& isgood, double& du,
82 double& dv);
84 int findClosestCluster(const VxdID& vxdid, ROOT::Math::XYZVector intersection);
86 bool isCloseToBorder(int u, int v, int checkDistance);
88 bool isDeadPixelClose(int u, int v, int checkDistance, const VxdID& moduleID);
89
92
95
96 std::string m_pxdClustersName;
97 std::string m_tracksName;
98 std::string m_recoTracksName;
99 std::string m_ROIsName;
100
105
106 double m_pcut;
107 double m_momCut;
108 double m_pTCut;
109 unsigned int m_minSVDHits;
111
112 TFile* m_file{};
113 TNtuple* m_tuple{};
114
115 };
116
117}
Module()
Constructor.
Definition Module.cc: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
int findClosestCluster(const VxdID &vxdid, ROOT::Math::XYZVector intersection)
find the closest cluster
ROOT::Math::XYZVector getTrackInterSec(const VXD::SensorInfoBase &pxdSensorInfo, const RecoTrack &aTrack, bool &isgood, double &du, double &dv)
helper functions to do some of the calculations
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
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< RecoTrack > m_recoTracks
store array of reco tracks
PXDDQMEfficiencyNtupleSelftrackModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_tracksName
name of the store array of tracks
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 to facilitate easy access to sensor information of the VXD like coordinate transformations or p...
Definition GeoCache.h:39
Base class to provide Sensor Information for PXD and SVD.
Class to uniquely identify a any structure of the PXD and SVD.
Definition VxdID.h:33
Abstract base class for different kinds of events.