Belle II Software release-09-00-07
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 {
23
24 public:
25
30 {}
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;
55 };
56
58} // end namespace Belle2
59
60
Defines interface for accessing relations of objects in StoreArray.
Class to store TOP injection veto flag.
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
Abstract base class for different kinds of events.