Belle II Software development
PXDInjectionBGTiming.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 <TObject.h>
12#include <vector>
13
14
15namespace Belle2 {
28 class PXDInjectionBGTiming : public TObject {
29 public:
30
33
36 void setGated(bool b) { m_gated = b; }
37
40 bool isGated() const { return m_gated; }
41
44 void setTriggerGate(int g) { m_triggerGate = g; }
45
48 int getTriggerGate(void) const { return m_triggerGate; }
49
52 const std::vector<float>& getGatingStartTimes(void) const { return m_gatingStartTimes; }
53
56 std::vector<float>& getGatingStartTimes(void) { return m_gatingStartTimes; }
57
58 private:
59
62
64 bool m_gated;
65
67 std::vector<float> m_gatingStartTimes;
68
69 ClassDef(PXDInjectionBGTiming, 1)
70
71 }; // class PXDInjectionBGTiming
72
74} // end namespace Belle2
The PXDInjectionBGTiming class.
const std::vector< float > & getGatingStartTimes(void) const
Return vector of start times for gating.
bool isGated() const
Return if data was recorded while detector was gated.
std::vector< float > & getGatingStartTimes(void)
Return vector of start times for gating.
void setTriggerGate(int g)
Set trigger gate.
std::vector< float > m_gatingStartTimes
Start times for gating.
void setGated(bool b)
Set flag that data was while detector was gated.
int getTriggerGate(void) const
Return trigger gate.
PXDInjectionBGTiming()
Default constructor for the ROOT IO.
Abstract base class for different kinds of events.