Belle II Software development
FilterInfo.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
13
14namespace Belle2 {
20 class FilterInfo : public TObject {
21 public:
24 m_name(""),
25 m_result(-666.),
26 m_wasAccepted(false),
27 m_wasUsed(false)
28 {
29 };
30
32 FilterInfo(const std::string& aname, double aresult, bool accepted, bool used) :
33 m_name(aname),
34 m_result(aresult),
35 m_wasAccepted(accepted),
36 m_wasUsed(used)
37 {
38 };
39
42
44 const std::string& getName() const { return m_name; };
46 double getResult() const { return m_result; };
48 bool getWasAccepted() const { return m_wasAccepted; };
50 bool getWasUsed() const { return m_wasUsed; };
51
52 private:
54 std::string m_name;
56 double m_result;
61
64 };
65
66}
double getResult() const
returns the result of the filtervariable attached to this filter
Definition FilterInfo.h:46
bool m_wasUsed
stores if filter was evaluated
Definition FilterInfo.h:60
double m_result
the result of the filter variable
Definition FilterInfo.h:56
const std::string & getName() const
getter function to get the name
Definition FilterInfo.h:44
FilterInfo(const std::string &aname, double aresult, bool accepted, bool used)
no setters so use this one to put in the information!
Definition FilterInfo.h:32
~FilterInfo()
destructor
Definition FilterInfo.h:41
bool m_wasAccepted
stores if filter was accepted
Definition FilterInfo.h:58
FilterInfo()
default constructor needed by root
Definition FilterInfo.h:23
bool getWasAccepted() const
returns if the event was accepted
Definition FilterInfo.h:48
ClassDef(FilterInfo, 1)
Class definition to make this a ROOT class.
bool getWasUsed() const
returns if filter was evaluated
Definition FilterInfo.h:50
std::string m_name
name of the FilterVariable
Definition FilterInfo.h:54
Abstract base class for different kinds of events.