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 std::string getName() { return m_name; };
46 double getResult() { return m_result; };
48 bool getWasAccepted() { return m_wasAccepted; };
50 bool getWasUsed() { return m_wasUsed; };
51
52 private:
54 std::string m_name;
56 double m_result;
61
64 };
66}
helper class to store the information for a Filter
Definition: FilterInfo.h:20
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
bool getWasAccepted()
returns if the event was accepted
Definition: FilterInfo.h:48
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 getWasUsed()
returns if filter was evaluated
Definition: FilterInfo.h:50
double getResult()
returns the result of the filtervariable attached to this filter
Definition: FilterInfo.h:46
std::string getName()
getter function to get the name
Definition: FilterInfo.h:44
ClassDef(FilterInfo, 1)
Class definition to make this a ROOT class.
std::string m_name
name of the FilterVariable
Definition: FilterInfo.h:54
Abstract base class for different kinds of events.