Belle II Software  release-08-01-10
PXDDQMTrackRawNtupleModule.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/PXDRawHit.h>
16 #include <pxd/dataobjects/PXDDAQStatus.h>
17 
18 #include <vxd/geometry/GeoCache.h>
19 #include <vxd/geometry/SensorInfoBase.h>
20 #include <mdst/dataobjects/Track.h>
21 #include <tracking/dataobjects/RecoTrack.h>
22 
23 #include <tracking/pxdDataReductionClasses/PXDInterceptor.h>
24 
25 #include "TVector3.h"
26 #include "TFile.h"
27 #include "TNtuple.h"
28 
29 
30 namespace Belle2 {
42 
43  public:
44 
49 
50  private:
51 
55  void event() override final;
56 
60  void initialize() override final;
61 
65  void terminate() override final;
66 
67 
68  private:
69 
72 
75 
76  std::string m_ntupleName;
77  std::string m_pxdHitsName;
78  std::string m_tracksName;
79  std::string m_recoTracksName;
80  std::string m_PXDInterceptListName;
88 
89  double m_pcut{0};
90  double m_momCut{0};
91  double m_pTCut{0};
92  unsigned int m_minSVDHits{0};
93  int m_uDist{0};
94  int m_vDist{0};
95 
96  TFile* m_file{nullptr};
97  TNtuple* m_tuple{nullptr};
98 
99  };
101 }
Base class for Modules.
Definition: Module.h:72
Creates Ntuples for PXD Trigger analysis.
StoreArray< PXDRawHit > m_pxdhits
store array of pxd clusters
void initialize() override final
initializes the need store arrays, trees and histograms
StoreObjPtr< PXDDAQStatus > m_storeDAQEvtStats
Input array for DAQ Status.
unsigned int m_minSVDHits
Required hits in SVD strips for tracks.
std::string m_PXDInterceptListName
intercept list name
double m_momCut
Cut on fitted track momentum.
void terminate() override final
terminate , save tuple to file if needed
void event() override final
main function which fills trees and histograms
StoreArray< Track > m_tracks
store array of tracks
std::string m_recoTracksName
name of the store array of recotracks
std::string m_pxdHitsName
name of the store array of pxd clusters
PXDDQMTrackRawNtupleModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< PXDIntercept > m_intercepts
store array of PXD Intercepts
StoreArray< RecoTrack > m_recoTracks
store array of reco tracks
bool m_useAlignment
if true alignment will be used!
int m_uDist
distance in ucell to intercept to accept hit
TNtuple * m_tuple
pointer to opened tuple
int m_vDist
distance in vcell to intercept to accept hit
std::string m_tracksName
name of the store array of tracks
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
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.