Belle II Software  release-08-01-10
TOPPhotonYieldsCollectorModule.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 <calibration/CalibrationCollectorModule.h>
12 
13 #include <framework/datastore/StoreArray.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/dataobjects/EventMetaData.h>
16 #include <mdst/dataobjects/Track.h>
17 #include <tracking/dataobjects/ExtHit.h>
18 #include <top/dataobjects/TOPDigit.h>
19 #include <top/dataobjects/TOPRecBunch.h>
20 #include <top/dataobjects/TOPAsicMask.h>
21 #include <top/dataobjects/TOPAssociatedPDF.h>
22 #include <top/utilities/TrackSelector.h>
23 #include <top/dbobjects/TOPCalChannelMask.h>
24 #include <top/dbobjects/TOPCalChannelThresholdEff.h>
25 #include <vector>
26 #include <string>
27 
28 namespace Belle2 {
41 
42  public:
47 
48  private:
49 
53  virtual void prepare() final;
54 
58  virtual void collect() final;
59 
60  // steering parameters
61  std::string m_sample;
62  double m_deltaEcms;
63  double m_dr;
64  double m_dz;
67  // cuts (do not change the values)
68  const double m_minZ = -130.0;
69  const double m_maxZ = 130.0;
70  const double m_excludedZ = 50.0;
71  const double m_timeWindow = 50.0;
73  // procedure
75  std::vector<std::string> m_signalNames;
76  std::vector<std::string> m_bkgNames;
77  std::vector<std::string> m_activeNames;
78  std::vector<std::string> m_alphaLowNames;
79  std::vector<std::string> m_alphaHighNames;
80  std::vector<std::string> m_pulseHeightNames;
81  std::vector<std::string> m_muonZNames;
83  // collections
92  // database
96  };
97 
99 } // end namespace Belle2
Calibration collector module base class.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
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
Collector for photon pixel yields aimed for PMT ageing studies and for finding optically decoupled PM...
DBObjPtr< TOPCalChannelMask > m_channelMask
masked channels
double m_minThresholdEffi
minimal threshold efficiency
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
TOP::TrackSelector m_selector
track selection utility
std::vector< std::string > m_activeNames
histogram names for active pixels count
std::vector< std::string > m_alphaHighNames
histogram names for counting hits w/ high impact angle on photo cathode
std::vector< std::string > m_pulseHeightNames
histogram names for pulse heights
DBObjPtr< TOPCalChannelThresholdEff > m_thresholdEff
threshold efficiencies
StoreObjPtr< EventMetaData > m_eventMetaData
event meta data object
std::vector< std::string > m_muonZNames
histogram names for track z-distribution
std::vector< std::string > m_alphaLowNames
histogram names for counting hits w/ low impact angle on photo cathode
const double m_timeWindow
time window for counting photon hits (half size)
StoreArray< Track > m_tracks
collection of tracks
StoreArray< TOPAssociatedPDF > m_associatedPDFs
collection of PDF's associated to TOP digits
const double m_minZ
minimal local z of extrapolated track
const double m_excludedZ
excluded central region of extrapolated track for photon impact angle counting
const double m_maxZ
maximal local z of extrapolated track
std::vector< std::string > m_signalNames
histogram names for signal window hit counts
std::vector< std::string > m_bkgNames
histogram names for background window hit counts
StoreArray< TOPDigit > m_digits
collection of TOP digits
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
StoreObjPtr< TOPAsicMask > m_asicMask
online masked Asics
Utility for the track selection - used in various calibration modules.
Definition: TrackSelector.h:27
virtual void collect() final
Replacement for event().
virtual void prepare() final
Replacement for initialize().
Abstract base class for different kinds of events.