Belle II Software  release-08-01-10
TOPOffsetCollectorModule.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 <top/dataobjects/TOPRecBunch.h>
16 #include <framework/dataobjects/EventT0.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/dbobjects/BunchStructure.h>
19 #include <framework/gearbox/Const.h>
20 #include <map>
21 
22 namespace Belle2 {
35 
36  public:
41 
42  private:
43 
47  virtual void prepare() final;
48 
52  virtual void collect() final;
53 
54  // collections
58  // database
61  // other
62  std::map<Const::EDetector, std::string> m_names;
63  bool m_firstEvent = true;
65  };
66 
68 } // end namespace Belle2
Calibration collector module base class.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Collector for eventT0 and fill pattern offset calibrations.
std::map< Const::EDetector, std::string > m_names
histogram names
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
StoreObjPtr< EventT0 > m_eventT0
event T0
DBObjPtr< BunchStructure > m_bunchStructure
fill pattern
virtual void collect() final
Replacement for event().
virtual void prepare() final
Replacement for initialize().
Abstract base class for different kinds of events.