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
13
namespace
Belle2
{
18
22
class
TOPInjectionVeto
:
public
RelationsObject
{
23
24
public
:
25
29
TOPInjectionVeto
()
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
;
52
53
ClassDef
(
TOPInjectionVeto
, 1);
54
55
};
56
58
}
// end namespace Belle2
59
60
Belle2::TOPInjectionVeto::set
void set(bool flag=true)
Sets the veto flag on first occurence of true if called multiple times (like in TOPUnpacker).
Definition
TOPInjectionVeto.h:36
Belle2::TOPInjectionVeto::isSet
bool isSet() const
Returns the veto flag.
Definition
TOPInjectionVeto.h:47
Belle2::TOPInjectionVeto::TOPInjectionVeto
TOPInjectionVeto()
Default constructor.
Definition
TOPInjectionVeto.h:29
Belle2::TOPInjectionVeto::ClassDef
ClassDef(TOPInjectionVeto, 1)
ClassDef.
Belle2::TOPInjectionVeto::reset
void reset()
Resets the veto flag.
Definition
TOPInjectionVeto.h:41
Belle2::TOPInjectionVeto::m_flag
bool m_flag
injection veto flag
Definition
TOPInjectionVeto.h:51
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition
RelationsObject.h:441
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
top
dataobjects
include
TOPInjectionVeto.h
Generated on Mon Nov 3 2025 03:00:18 for Belle II Software by
1.13.2