Belle II Software  release-05-02-19
ARICHDQMModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kindo Haruki *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef ARICHDQMMODULE_H
12 #define ARICHDQMMODULE_H
13 
14 #include <framework/core/HistoModule.h>
15 
16 #include <TH1F.h>
17 #include <TH2F.h>
18 #include <TH3F.h>
19 
20 #include <framework/datastore/StoreArray.h>
21 #include <rawdata/dataobjects/RawFTSW.h>
22 
23 namespace Belle2 {
35  class ARICHDQMModule : public HistoModule {
36 
37  public:
38 
43 
47  virtual ~ARICHDQMModule();
48 
53  virtual void initialize() override;
54 
55  virtual void defineHisto() override;
56 
61  virtual void beginRun() override;
62 
66  virtual void event() override;
67 
72  virtual void endRun() override;
73 
78  virtual void terminate() override;
79 
80 
81  protected:
82  bool m_debug;
84  bool m_arichEvents;
85  int m_maxHits;
86  int m_minHits;
88  //Histograms to show status by 1/0
89  TH1* h_chStat = NULL;
90  TH1* h_aeroStat = NULL;
92  //Hitograms to show the data quality
93  TH1* h_chDigit = NULL;
94  TH1* h_chipDigit = NULL;
95  TH1* h_hapdDigit = NULL;
96  TH1* h_chHit = NULL;
97  TH1* h_chipHit = NULL;
98  TH1* h_hapdHit = NULL;
99  TH1* h_mergerHit = NULL;
100  TH2* h_bitsPerMergerNorm =
101  NULL;/*<The number of hits in each bit in each Merger Board normalised to number of HAPDs and sum(bit1, bit2)>*/
102  TH2* h_bitsPerHapdMerger = NULL;/*<The number of hits in each bit in each HAPD sorted by Merger Board>*/
103  TH1* h_secHapdHit[6] = {};
104  TH2* h_hapdHitPerEvent = NULL;
105  TH1* h_aerogelHit = NULL;
106  TH1* h_bits = NULL;
107  TH2* h_bitsPerChannel = NULL;
108  TH2* h_hitsPerTrack2D = NULL;
109  TH2* h_tracks2D = NULL;
110  TH3* h_aerogelHits3D = NULL;
111  TH3* h_mirrorThetaPhi = NULL;
112  TH2* h_thetaPhi = NULL;
113  TH1* h_hitsPerEvent = NULL;
114  TH1* h_theta = NULL;
115  TH1* h_hitsPerTrack = NULL;
116  TH1* h_trackPerEvent = NULL;
117  TH1* h_flashPerAPD = NULL;
119  TH1* h_secTheta[6] = {};
120  TH1* h_secHitsPerTrack[6] = {};
122  TH1* h_ARICHOccAfterInjLer = NULL;
123  TH1* h_ARICHOccAfterInjHer = NULL;
126  // dataobjects
129  //Monitoring parameters
130 
131  double m_momUpLim = 0;
132  double m_momDnLim = 0;
134  };
135 
137 } // Belle2 namespace
138 
139 #endif
Belle2::ARICHDQMModule::h_flashPerAPD
TH1 * h_flashPerAPD
Number of flashes in each APD.
Definition: ARICHDQMModule.h:125
Belle2::ARICHDQMModule::h_hitsPerEvent
TH1 * h_hitsPerEvent
Ihe number of all hits in each event.
Definition: ARICHDQMModule.h:121
Belle2::ARICHDQMModule::terminate
virtual void terminate() override
Termination action.
Definition: ARICHDQMModule.cc:496
Belle2::ARICHDQMModule::h_hitsPerTrack2D
TH2 * h_hitsPerTrack2D
Sum of 2D hit/track map on each position of track.
Definition: ARICHDQMModule.h:116
Belle2::ARICHDQMModule::h_ARICHOccAfterInjLer
TH1 * h_ARICHOccAfterInjLer
Histogram Ndigits after LER injection.
Definition: ARICHDQMModule.h:130
Belle2::ARICHDQMModule::h_hapdHit
TH1 * h_hapdHit
The number of hits in each HAPD.
Definition: ARICHDQMModule.h:106
Belle2::ARICHDQMModule::~ARICHDQMModule
virtual ~ARICHDQMModule()
Destructor.
Definition: ARICHDQMModule.cc:69
Belle2::ARICHDQMModule::h_hapdHitPerEvent
TH2 * h_hapdHitPerEvent
number of hits in each HAPD per event
Definition: ARICHDQMModule.h:112
Belle2::ARICHDQMModule::h_thetaPhi
TH2 * h_thetaPhi
cherenkov theta vs phi for non-mirror-reflected photons
Definition: ARICHDQMModule.h:120
Belle2::ARICHDQMModule::h_theta
TH1 * h_theta
Reconstructed Cherenkov angles.
Definition: ARICHDQMModule.h:122
Belle2::ARICHDQMModule::h_mergerHit
TH1 * h_mergerHit
The number of hits in each Merger Boards.
Definition: ARICHDQMModule.h:107
Belle2::ARICHDQMModule::m_momUpLim
double m_momUpLim
Upper momentum limit of tracks used in GeV (if set 0, no limit is applied)
Definition: ARICHDQMModule.h:139
Belle2::ARICHDQMModule::h_ARICHOccAfterInjHer
TH1 * h_ARICHOccAfterInjHer
Histogram Ndigits after HER injection.
Definition: ARICHDQMModule.h:131
Belle2::ARICHDQMModule::h_chStat
TH1 * h_chStat
Status of each channels.
Definition: ARICHDQMModule.h:97
Belle2::ARICHDQMModule::h_aeroStat
TH1 * h_aeroStat
Status of each aerogel tiles.
Definition: ARICHDQMModule.h:98
Belle2::ARICHDQMModule::m_rawFTSW
StoreArray< RawFTSW > m_rawFTSW
Input array for DAQ Status.
Definition: ARICHDQMModule.h:135
Belle2::ARICHDQMModule::h_secHitsPerTrack
TH1 * h_secHitsPerTrack[6]
Detailed average hits/track for each sector.
Definition: ARICHDQMModule.h:128
Belle2::ARICHDQMModule::event
virtual void event() override
Event processor.
Definition: ARICHDQMModule.cc:269
Belle2::ARICHDQMModule::h_chipHit
TH1 * h_chipHit
The number of hits in each ASIC chip.
Definition: ARICHDQMModule.h:105
Belle2::ARICHDQMModule::h_ARICHEOccAfterInjHer
TH1 * h_ARICHEOccAfterInjHer
Histogram for Nr Entries (=Triggrs) for normalization after HER injection.
Definition: ARICHDQMModule.h:133
Belle2::ARICHDQMModule::h_aerogelHit
TH1 * h_aerogelHit
The number of reconstructed photons in each aerogel tiles.
Definition: ARICHDQMModule.h:113
Belle2::ARICHDQMModule::h_chHit
TH1 * h_chHit
The number of hits in each channel.
Definition: ARICHDQMModule.h:104
Belle2::ARICHDQMModule::endRun
virtual void endRun() override
End-of-run action.
Definition: ARICHDQMModule.cc:459
Belle2::ARICHDQMModule::h_trackPerEvent
TH1 * h_trackPerEvent
Number of tracks in ARICH per event (with p>0.5 GeV)
Definition: ARICHDQMModule.h:124
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHDQMModule::m_momDnLim
double m_momDnLim
Lower momentum limit of tracks used in GeV (if set 0, no limit is applied)
Definition: ARICHDQMModule.h:140
Belle2::ARICHDQMModule::h_mirrorThetaPhi
TH3 * h_mirrorThetaPhi
cherenkov theta vs phi for mirror reflected photons (for each mirror plate)
Definition: ARICHDQMModule.h:119
Belle2::ARICHDQMModule::h_hitsPerTrack
TH1 * h_hitsPerTrack
Average hits/track calculated from h_hits2D and h_track2D.
Definition: ARICHDQMModule.h:123
Belle2::ARICHDQMModule::m_debug
bool m_debug
debug
Definition: ARICHDQMModule.h:90
Belle2::ARICHDQMModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ARICHDQMModule.cc:207
Belle2::ARICHDQMModule::m_arichEvents
bool m_arichEvents
process only events that have extrapolated hit in arich
Definition: ARICHDQMModule.h:92
Belle2::ARICHDQMModule::h_chDigit
TH1 * h_chDigit
The number of raw digits in each channel.
Definition: ARICHDQMModule.h:101
Belle2::ARICHDQMModule::ARICHDQMModule
ARICHDQMModule()
Constructor.
Definition: ARICHDQMModule.cc:56
Belle2::ARICHDQMModule::m_maxHits
int m_maxHits
exclude events with very large number of hits in arich
Definition: ARICHDQMModule.h:93
Belle2::ARICHDQMModule::h_ARICHEOccAfterInjLer
TH1 * h_ARICHEOccAfterInjLer
Histogram for Nr Entries (=Triggrs) for normalization after LER injection.
Definition: ARICHDQMModule.h:132
Belle2::ARICHDQMModule::h_hapdDigit
TH1 * h_hapdDigit
The number of raw digits in each HAPD.
Definition: ARICHDQMModule.h:103
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::ARICHDQMModule::h_secTheta
TH1 * h_secTheta[6]
Detailed view of Cherenkov angle for each sector.
Definition: ARICHDQMModule.h:127
Belle2::ARICHDQMModule::h_chipDigit
TH1 * h_chipDigit
The number of raw digits in each ASIC chip.
Definition: ARICHDQMModule.h:102
Belle2::ARICHDQMModule::h_bits
TH1 * h_bits
Timing bits.
Definition: ARICHDQMModule.h:114
Belle2::ARICHDQMModule::m_minHits
int m_minHits
exclude events with number of hits lower than this
Definition: ARICHDQMModule.h:94
Belle2::ARICHDQMModule::h_tracks2D
TH2 * h_tracks2D
2D track distribution of whole ARICH
Definition: ARICHDQMModule.h:117
Belle2::ARICHDQMModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: ARICHDQMModule.cc:227
Belle2::ARICHDQMModule::h_aerogelHits3D
TH3 * h_aerogelHits3D
3D histogram of
Definition: ARICHDQMModule.h:118
Belle2::ARICHDQMModule::defineHisto
virtual void defineHisto() override
Function to define histograms.
Definition: ARICHDQMModule.cc:73
Belle2::ARICHDQMModule::h_secHapdHit
TH1 * h_secHapdHit[6]
The number of hits in each HAPDs of each sector.
Definition: ARICHDQMModule.h:111