Belle II Software  release-08-01-10
SVDDQMEfficiencyModule.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/HistoModule.h>
13 #include <framework/datastore/StoreArray.h>
14 
15 #include <svd/dataobjects/SVDCluster.h>
16 #include <svd/dataobjects/SVDSummaryPlots.h>
17 
18 #include <vxd/geometry/GeoCache.h>
19 #include <vxd/dataobjects/VxdID.h>
20 
21 #include <tracking/dataobjects/SVDIntercept.h>
22 #include <tracking/dataobjects/RecoTrack.h>
23 
24 #include "TH2D.h"
25 
26 namespace Belle2 {
39 
40  public:
41 
46 
47  private:
48 
52  void event() override final;
53 
57  void initialize() override final;
58 
62  void defineHisto() override final;
63 
64 
65  bool isGoodIntercept(SVDIntercept* inter);
69  std::string m_svdClustersName;
70  std::string m_interceptsName;
76  float m_fiducialU;
77  float m_fiducialV;
79  float m_maxResidU;
80  float m_maxResidV;
82  // double m_d0cut; /**<d0-Cut for tracks */
83  // double m_z0cut; /**<z0-Cut for tracks */
84  double m_pcut;
85  double m_momCut;
86  double m_ptCut;
87  unsigned int m_minSVDHits;
88  unsigned int m_minCDCHits;
90  /* Histograms to later determine efficiency */
91 
96  int m_u_bins;
97  int m_v_bins;
99  std::map<VxdID, TH2D*> m_h_track_hits;
100  std::map<VxdID, TH2D*> m_h_matched_clusterU;
101  std::map<VxdID, TH2D*> m_h_matched_clusterV;
102  std::map<VxdID, TH2D*> m_h_matched3_clusterU;
103  std::map<VxdID, TH2D*> m_h_matched3_clusterV;
104  std::map<VxdID, TH2D*> m_h_matched6_clusterU;
105  std::map<VxdID, TH2D*> m_h_matched6_clusterV;
115  };
117 }
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Creates the basic histograms for SVD Efficiency DQM.
float m_fiducialV
stay away from the U border by m_fiducialU (in cm)
SVDDQMEfficiencyModule()
Constructor: Sets the description, the properties and the parameters of the module.
std::string m_svdClustersName
SVDClusters StoreArray name.
std::map< VxdID, TH2D * > m_h_track_hits
track hits histogram map to sensorID
void initialize() override final
initializes the need store arrays, trees and histograms
unsigned int m_minCDCHits
Required hits in CDC for tracks.
bool m_saveExpertHistos
save additional histograms id set True
std::map< VxdID, TH2D * > m_h_matched6_clusterV
matched V-hits histogram map to sensorID for 6 samples
StoreArray< SVDIntercept > m_intercepts
SVDIntercept StoreArray.
VXD::GeoCache & m_geoCache
BelleII Geometry.
std::map< VxdID, TH2D * > m_h_matched3_clusterV
matched V-hits histogram map to sensorID for 3 samples
unsigned int m_minSVDHits
Required hits in SVD strips for tracks.
SVDSummaryPlots * m_MatchedHits6
matched hits summary plot for 6 samples
StoreArray< SVDCluster > m_svdClusters
SVDCluster StoreArray.
double m_momCut
Cut on fitted track momentum.
int m_u_bins
number of U-bins for expert histogram
std::map< VxdID, TH2D * > m_h_matched_clusterU
matched U-hits histogram map to sensorID
std::map< VxdID, TH2D * > m_h_matched6_clusterU
matched U-hits histogram map to sensorID for 6 samples
SVDSummaryPlots * m_TrackHits6
track hits summary plot for 6 samples
float m_fiducialU
stay away from the U border by m_fiducialU (in cm)
void defineHisto() override final
actually defines the trees and histograms
double m_pcut
pValue-Cut for tracks
bool isGoodIntercept(SVDIntercept *inter)
returns true if the track related to the intercept passes the selection cuts
void event() override final
main function which fills trees and histograms
SVDSummaryPlots * m_TrackHits3
track hits summary plot for 3 samples
std::string m_histogramDirectoryName
name of the directory where to store the histograms
float m_maxResidV
max distance cut in cm V side
std::map< VxdID, TH2D * > m_h_matched3_clusterU
matched U-hits histogram map to sensorID for 3 samples
int m_v_bins
number of V-bins for expert histogram
SVDSummaryPlots * m_MatchedHits
matched hits summary plot
SVDSummaryPlots * m_TrackHits
track hits summary plot
SVDSummaryPlots * m_MatchedHits3
matched hits summary plot for 3 samples
StoreArray< RecoTrack > m_recoTracks
RecoTrack StoreArray.
double m_ptCut
Cut on fitted track pt.
std::string m_interceptsName
SVDIntercepts StoreArray name.
std::map< VxdID, TH2D * > m_h_matched_clusterV
matched V-hits histogram map to sensorID
float m_maxResidU
max distance cut in cm U side
SVDIntercept stores the U,V coordinates and uncertainties of the intersection of a track with an SVD ...
Definition: SVDIntercept.h:22
class to summarize SVD quantities per sensor and side
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
Definition: GeoCache.h:39
Abstract base class for different kinds of events.