Belle II Software development
BinnedEventT0.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#pragma once
9
10#include <framework/gearbox/Const.h>
11#include <TObject.h>
12
13#include <map>
14
15namespace Belle2 {
33 class BinnedEventT0 : public TObject {
34 public:
36 int getBinnedEventT0(const Const::EDetector detector) const;
37
39 void addBinnedEventT0(int eventT0, Const::EDetector detector);
40
42 bool hasBinnedEventT0(const Const::EDetector detector) const;
43
45 void clear();
46
47 private:
49 std::map<Const::EDetector, int> m_eventT0Map;
50
51 ClassDef(BinnedEventT0, 1)
52 };
54}
Database object for storing a binned EventT0 coming from the trigger.
Definition: BinnedEventT0.h:33
bool hasBinnedEventT0(const Const::EDetector detector) const
Check if one of the detectors in the given set has a binned t0 estimation.
int getBinnedEventT0(const Const::EDetector detector) const
Return the stored binned event t0 for the given detector or 0 if nothing stored.
void addBinnedEventT0(int eventT0, Const::EDetector detector)
Store a binned event t0 for the given detector replacing any other hypothesis for this detector.
std::map< Const::EDetector, int > m_eventT0Map
Internal storage of the event t0 list.
Definition: BinnedEventT0.h:49
void clear()
Clear the list of extracted event T0 estimations.
EDetector
Enum for identifying the detector components (detector and subdetector).
Definition: Const.h:42
Abstract base class for different kinds of events.