Belle II Software development
HitRateBase.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 <TTree.h>
12
13namespace Belle2 {
18 namespace Background {
19
25
26 public:
27
31 virtual ~HitRateBase()
32 {}
33
38 virtual void initialize(TTree* tree) = 0;
39
43 virtual void clear() = 0;
44
49 virtual void accumulate(unsigned timeStamp) = 0;
50
55 virtual void normalize(unsigned timeStamp) = 0;
56
57 };
58
59 } // Background namespace
61} // Belle2 namespace
Abstract base class for monitoring beam background hit rates All the monitoring classes must inherit ...
Definition: HitRateBase.h:24
virtual ~HitRateBase()
virtual destructor
Definition: HitRateBase.h:31
virtual void accumulate(unsigned timeStamp)=0
Accumulate hits.
virtual void clear()=0
Clear time-stamp buffer to prepare for 'accumulate'.
virtual void normalize(unsigned timeStamp)=0
Normalize accumulated hits (e.g.
virtual void initialize(TTree *tree)=0
Class initializer: set branch address.
Abstract base class for different kinds of events.