Belle II Software  release-08-01-10
DetectorOccupanciesDQMModule.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/datastore/StoreArray.h>
12 #include <framework/datastore/StoreObjPtr.h>
13 #include <framework/dataobjects/EventMetaData.h>
14 #include <framework/core/HistoModule.h>
15 
16 #include <ecl/dataobjects/ECLCalDigit.h>
17 #include <ecl/dataobjects/ECLElementNumbers.h>
18 #include <mdst/dataobjects/EventLevelTrackingInfo.h>
19 #include <mdst/dataobjects/TRGSummary.h>
20 #include <klm/dataobjects/bklm/BKLMElementNumbers.h>
21 #include <klm/dataobjects/bklm/BKLMHit1d.h>
22 #include <klm/dataobjects/KLMDigit.h>
23 #include <arich/dataobjects/ARICHHit.h>
24 #include <top/dataobjects/TOPDigit.h>
25 
26 #include <string>
27 #include <TH1F.h>
28 #include <TProfile.h>
29 
30 namespace Belle2 {
42 
43  public:
44 
47 
48  /* Destructor */
50 
52  void initialize() override final;
54  void beginRun() override final;
56  void event() override final;
57 
61  void defineHisto() override final;
62 
63  private:
64 
67 
71  //KLM stuff
76  //ARICH stuff
79  //TOP stuff
82  //ECL stuff
83  double m_eclEnergyThr;
86  //histograms (all)
87  //index: 0 = passive veto; 1 = active veto
91  TH1F* m_BKLM_TimeRPC[2]; ;
94  TH1F* m_ARICH_Occupancy[2];
95  TH1F* m_TOP_Occupancy[2];
96  TProfile* m_ECL_Occupancy[2];
97  };
98 
100 }
101 
102 
DQM Module for basic detector quantities before the HLT filter.
void initialize() override final
Module function initialize.
TH1F * m_EKLM_Plane_Occupancy[2]
EKLM plane integrated occupancy.
TH1F * m_TOP_Occupancy[2]
TOP occupancy (good hits only)
StoreArray< KLMDigit > m_KLMDigits
KLM digits.
const EKLMElementNumbers * m_eklmElementNumbers
EKLM Element numbers.
void defineHisto() override final
Defines Histograms.
StoreObjPtr< TRGSummary > m_trgSummary
trg summary
TH1F * m_BKLM_PlanePhi_Occupancy[2]
BKLM phi plane integrated occupancy.
StoreObjPtr< EventMetaData > m_eventMetaData
event meta data
void event() override final
Module function event.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
double m_eclEnergyThr
Energy threshold (in MeV) for ECL occupancy histogram.
StoreArray< BKLMHit1d > m_BklmHit1ds
BKLM hit 1D.
void beginRun() override final
Module function beginRun.
TH1F * m_ARICH_Occupancy[2]
ARICH Digit Occupancy.
TH1F * m_BKLM_TimeScintillator[2]
BKLM Scintillator Hit Time.
StoreArray< ARICHHit > m_ARICHHits
ARICH hits.
TH1F * m_EKLM_TimeScintillator[2]
EKLM Scintillator Hit Time.
TProfile * m_ECL_Occupancy[2]
ECL occupancy (hits above 5 MeV)
StoreArray< TOPDigit > m_topDigits
collection of TOP digits
StoreArray< ECLCalDigit > m_eclCalDigits
collection of ECL digits
TH1F * m_BKLM_PlaneZ_Occupancy[2]
BKLM z plane integrated occupancy.
EKLM element numbers.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
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
Abstract base class for different kinds of events.