Belle II Software  release-05-01-25
BinnedEventT0.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/gearbox/Const.h>
13 #include <TObject.h>
14 
15 #include <map>
16 
17 namespace Belle2 {
35  class BinnedEventT0 : public TObject {
36  public:
38  int getBinnedEventT0(const Const::EDetector detector) const;
39 
41  void addBinnedEventT0(int eventT0, Const::EDetector detector);
42 
44  bool hasBinnedEventT0(const Const::EDetector detector) const;
45 
47  void clear();
48 
49  private:
51  std::map<Const::EDetector, int> m_eventT0Map;
52 
53  ClassDef(BinnedEventT0, 1)
54  };
56 }
Belle2::Const::EDetector
EDetector
Enum for identifying the detector components (detector and subdetector).
Definition: Const.h:44
Belle2::BinnedEventT0::addBinnedEventT0
void addBinnedEventT0(int eventT0, Const::EDetector detector)
Store a binned event t0 for the given detector replacing any other hypothesis for this detector.
Definition: BinnedEventT0.cc:26
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BinnedEventT0::clear
void clear()
Clear the list of extracted event T0 estimations.
Definition: BinnedEventT0.cc:36
Belle2::BinnedEventT0::m_eventT0Map
std::map< Const::EDetector, int > m_eventT0Map
Internal storage of the event t0 list.
Definition: BinnedEventT0.h:59
Belle2::BinnedEventT0::getBinnedEventT0
int getBinnedEventT0(const Const::EDetector detector) const
Return the stored binned event t0 for the given detector or 0 if nothing stored.
Definition: BinnedEventT0.cc:15
Belle2::BinnedEventT0::hasBinnedEventT0
bool hasBinnedEventT0(const Const::EDetector detector) const
Check if one of the detectors in the given set has a binned t0 estimation.
Definition: BinnedEventT0.cc:31