Belle II Software  release-05-02-19
HitRateBase.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TTree.h>
14 
15 namespace Belle2 {
20  namespace Background {
21 
26  class HitRateBase {
27 
28  public:
29 
33  virtual ~HitRateBase()
34  {}
35 
40  virtual void initialize(TTree* tree) = 0;
41 
45  virtual void clear() = 0;
46 
51  virtual void accumulate(unsigned timeStamp) = 0;
52 
57  virtual void normalize(unsigned timeStamp) = 0;
58 
59  };
60 
61  } // Background namespace
63 } // Belle2 namespace
Belle2::Background::HitRateBase::~HitRateBase
virtual ~HitRateBase()
virtual destructor
Definition: HitRateBase.h:41
Belle2::Background::HitRateBase::initialize
virtual void initialize(TTree *tree)=0
Class initializer: set branch address.
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Background::HitRateBase::accumulate
virtual void accumulate(unsigned timeStamp)=0
Accumulate hits.
Belle2::Background::HitRateBase::clear
virtual void clear()=0
Clear time-stamp buffer to prepare for 'accumulate'.
Belle2::Background::HitRateBase::normalize
virtual void normalize(unsigned timeStamp)=0
Normalize accumulated hits (e.g.