Belle II Software development
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#pragma once
10
11#include <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13
14#include <vxd/geometry/GeoCache.h>
15
16//root stuff
17#include "TFile.h"
18#include "TNtuple.h"
19
20namespace Belle2 {
25 class PXDCluster;
26 class Track;
27 class RecoTrack;
28 class ROIid;
29
39
40 public:
41
46
47 private:
48
52 void event() override final;
53
57 void initialize() override final;
58
62 void terminate() override final;
63
64
65 private:
67 /* returns the space point in local coordinates where the track hits the sensor:
68 sensorInfo: info of the sensor under investigation
69 aTrack: the track to be tested
70 isgood: flag which is false if some error occurred (do not use the point if false)
71 du and dv are the uncertainties in u and v on the sensor plane of the fit (local coordinates)
72 */
73 ROOT::Math::XYZVector getTrackInterSec(const VXD::SensorInfoBase& pxdSensorInfo, const RecoTrack& aTrack, bool& isgood, double& du,
74 double& dv);
76 int findClosestCluster(const VxdID& vxdid, ROOT::Math::XYZVector intersection);
78 bool isCloseToBorder(int u, int v, int checkDistance);
80 bool isDeadPixelClose(int u, int v, int checkDistance, const VxdID& moduleID);
81
84
87
88 std::string m_pxdClustersName;
89 std::string m_tracksName;
90 std::string m_recoTracksName;
91 std::string m_ROIsName;
92
97
98 double m_pcut;
99 double m_momCut;
100 double m_pTCut;
101 unsigned int m_minSVDHits;
103
104 TFile* m_file{};
105 TNtuple* m_tuple{};
106
107 };
108
109}
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
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
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
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:32
Abstract base class for different kinds of events.