Belle II Software development
SVDB4CommissioningPlotsModule.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#ifndef SVD_B4COMMISSIONINGPLOTS_H_
10#define SVD_B4COMMISSIONINGPLOTS_H_
11
12#include <framework/core/Module.h>
13
14#include <framework/datastore/StoreArray.h>
15
16#include <svd/dataobjects/SVDRecoDigit.h>
17#include <svd/dataobjects/SVDCluster.h>
18#include <mdst/dataobjects/TrackFitResult.h>
19#include <mdst/dataobjects/Track.h>
20#include <tracking/dataobjects/RecoTrack.h>
21#include <svd/calibration/SVDPulseShapeCalibrations.h>
22#include <svd/calibration/SVDNoiseCalibrations.h>
23
24#include <svd/dataobjects/SVDHistograms.h>
25
26#include <string>
27#include <TFile.h>
28#include <TH1F.h>
29
30// forward declarations
31class TTree;
32class TFile;
33
34namespace Belle2 {
45
46 public:
47
50
53
54 virtual void initialize() override;
55 virtual void beginRun() override;
56 virtual void event() override;
57 virtual void endRun() override;
59 std::string m_ShaperDigitName;
60 std::string m_RecoDigitName;
61 std::string m_ClusterName;
63 std::string m_TrackName;
65 /* user-defined parameters */
66 std::string m_rootFileName;
68 /* ROOT file related parameters */
69 TFile* m_rootFilePtr = nullptr;
71 private:
72
73 int m_nEvents = 0;
84 int m_ntracks = 0;
85 bool m_plotRecoDigits = false;
87 //TRACKS
88 TH1F* m_nTracks = nullptr;
89 TH1F* m_Pvalue = nullptr;
90 TH1F* m_mom = nullptr;
91 TH1F* m_nSVDhits = nullptr;
93 //RECO
99 //CLUSTER
106 //CLUSTER RELATED TO TRACKS
114 };
116}
117
118#endif /* SVDB4CommissioningPlotsModule_H_ */
119
Base class for Modules.
Definition: Module.h:72
The SVD B4CommissioningPlots Module.
SVDHistograms< TH1F > * h_clusterTrkSNR
SVDClusters SNR.
bool m_plotRecoDigits
Produce plots for SVDRecoDigits when True.
std::string m_ShaperDigitName
SVDSHaperDigit StoreArray name.
SVDHistograms< TH1F > * h_clusterTrkCharge
SVDClusters Charge.
virtual void initialize() override
check StoreArrays & create rootfile
StoreArray< SVDCluster > m_svdClusters
SVDCluster StoreArray.
virtual void event() override
fill histograms
StoreArray< TrackFitResult > m_tfr
TrackFitResult StoreArray.
SVDNoiseCalibrations m_NoiseCal
SVDNoise Calibrations db object.
virtual void endRun() override
write histogrmas
SVDHistograms< TH1F > * h_recoEnergy
SVDRecoDigits Energy.
SVDHistograms< TH1F > * h_clusterTrkEnergy
SVDClusters Energy.
SVDHistograms< TH1F > * h_clusterEnergy
SVDClusters Energy.
SVDPulseShapeCalibrations m_PulseShapeCal
SVDPulseShaper calibrations db object.
SVDHistograms< TH1F > * h_clusterSNR
SVDClusters SNR.
std::string m_TrackName
Track StoreArray name.
std::string m_RecoDigitName
SVDRecoDigit StoreArray name.
SVDHistograms< TH1F > * h_recoNoise
SVDRecoDigits Noise.
virtual void beginRun() override
create histograms
std::string m_TrackFitResultName
TrackFitResult name.
SVDHistograms< TH1F > * h_clusterSize
SVDClusters Size.
SVDHistograms< TH1F > * h_recoCharge
SVDRecoDigits Charge.
SVDHistograms< TH1F > * h_clusterTime
SVDClusters Time.
SVDHistograms< TH1F > * h_recoTime
SVDRecoDigits Time.
StoreArray< RecoTrack > m_recoTracks
RecoTrack StoreArray.
std::string m_ClusterName
SVDCluster StoreArray name.
StoreArray< SVDRecoDigit > m_svdRecos
SVDRecoDigit StoreArray.
SVDHistograms< TH1F > * h_clusterTrkTime
SVDClusters Time.
SVDHistograms< TH1F > * h_clusterCharge
SVDClusters Charge.
StoreArray< Track > m_Tracks
Track StoreArray.
TFile * m_rootFilePtr
pointer at root file used for storing histograms
SVDHistograms< TH1F > * h_clusterTrkSize
SVDClusters Size.
SVDHistograms< TH1F > * h_clusterTrkInterstripPos
SVDClusters InterstripPosition.
template class for SVd histograms
Definition: SVDHistograms.h:24
This class defines the dbobject and the method to access SVD calibrations from the noise local runs.
This class defines the dbobject and the methods to access the SVD calibrations from the local runs pr...
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.