Belle II Software development
TOPInjectionVeto.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 <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
18
23
24 public:
25
31
36 void set(bool flag = true) {m_flag = m_flag or flag;}
37
41 void reset() {m_flag = false;}
42
47 bool isSet() const {return m_flag;}
48
49 private:
50
51 bool m_flag = false;
52
54
55 };
56
58} // end namespace Belle2
59
60
void set(bool flag=true)
Sets the veto flag on first occurence of true if called multiple times (like in TOPUnpacker).
bool isSet() const
Returns the veto flag.
TOPInjectionVeto()
Default constructor.
ClassDef(TOPInjectionVeto, 1)
ClassDef.
void reset()
Resets the veto flag.
bool m_flag
injection veto flag
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.