Belle II Software development
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
22namespace Belle2 {
32
33 public:
38
39 private:
40
44 virtual void prepare() final;
45
49 virtual void collect() final;
50
51 // collections
55 // database
58 // other
59 std::map<Const::EDetector, std::string> m_names;
60 bool m_firstEvent = true;
62 };
63
65} // 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.