Belle II Software  release-06-00-14
eclHadronTimeCalibrationValidationCollectorModule.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  * Description: *
11  * Select photons from a hadronic event selection to be used as a *
12  * validation of the ECL timing calibration. *
13  **************************************************************************/
14 
15 #pragma once
16 
17 #include <framework/core/Module.h>
18 #include <ecl/utility/ECLChannelMapper.h>
19 
20 #include <calibration/CalibrationCollectorModule.h>
21 #include <framework/database/DBObjPtr.h>
22 #include <framework/datastore/StoreArray.h>
23 #include <framework/dataobjects/EventT0.h>
24 
25 class TTree ;
26 
27 namespace Belle2 {
32  class ECLDigit ;
33  class ECLCalDigit ;
34  class Track ;
35  class ECLCrystalCalib ;
36  class ECLCluster ;
37  class ECLChannelMapper;
38 
39 
45 
46  public:
47 
50 
55 
57  void inDefineHisto() override;
58 
60  void prepare() override;
61 
63  void collect() override;
64 
65  private:
66 
68  bool m_saveTree ;
69 
70  /****** Parameters END ******/
71 
72 
75  //StoreArray<ECLDigit> m_eclDigitArray; /**< Required input array of ECLDigits */
84 
89  TTree* m_dbg_tree_event ;
91  /*** tree branches ***/
92  /*** See inDefineHisto method for branches description ***/
93  int m_tree_evt_num = -1;
94  int m_tree_run = -1;
95  int m_tree_cid = -1;
96  double m_tree_dt99 = -1;
97  double m_tree_time = -1;
99  double m_tree_time_fromE0 = -1;
100  double m_tree_E0 = -1;
102  double m_tree_t0 = -1;
103  double m_tree_t0_unc = -1;
105  int m_NtightTracks = -1;
106  int m_NphotonClusters = -1;
107  int m_NGoodClusters = -1;
109  /*** tree branches END ***/
110 
111  std::vector<float> m_EperCrys ;
114  double m_E_photon_clust = -1;
116  /****** Parameters for cuts ******/
117  short m_timeAbsMax ;
119  double m_looseTrkZ0 ;
120  double m_tightTrkZ0 ;
121  double m_looseTrkD0 ;
122  double m_tightTrkD0 ;
125  } ;
127 }
Calibration collector module base class.
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:95
This module generates 'TimevsCrys' histogram to later (in eclBhabhaTAlgorithm) find time offset from ...
StoreArray< ECLCluster > m_eclClusterArray
Required input array of ECLClusters.
short m_timeAbsMax
Events with abs(time) > m_timeAbsMax are excluded, mostly for histogram x-range purposes.
void collect() override
Select events and crystals and accumulate histograms.
StoreArray< ECLCalDigit > m_eclCalDigitArray
Required input array of ECLCalDigits.
void inDefineHisto() override
Replacement for defineHisto() in CalibrationCollector modules.
Abstract base class for different kinds of events.