Belle II Software  release-05-02-19
FilterInfo.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Lueck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TObject.h>
14 
15 
16 namespace Belle2 {
21  class FilterInfo : public TObject {
23  public:
25  FilterInfo() :
26  m_name(""),
27  m_result(-666.),
28  m_wasAccepted(false),
29  m_wasUsed(false)
30  {
31  };
32 
34  FilterInfo(const std::string& aname, double aresult, bool accepted, bool used) :
35  m_name(aname),
36  m_result(aresult),
37  m_wasAccepted(accepted),
38  m_wasUsed(used)
39  {
40  };
41 
43  ~FilterInfo() {};
44 
46  std::string getName() { return m_name; };
48  double getResult() { return m_result; };
50  bool getWasAccepted() { return m_wasAccepted; };
52  bool getWasUsed() { return m_wasUsed; };
53 
54  private:
56  std::string m_name;
58  double m_result;
62  bool m_wasUsed;
63 
65  ClassDef(FilterInfo, 1);
66  };
68 }
Belle2::FilterInfo::FilterInfo
FilterInfo()
default constructor needed by root
Definition: FilterInfo.h:33
Belle2::FilterInfo::m_result
double m_result
the result of the filter variable
Definition: FilterInfo.h:66
Belle2::FilterInfo::getResult
double getResult()
returns the result of the filtervariable attached to this filter
Definition: FilterInfo.h:56
Belle2::FilterInfo::getWasUsed
bool getWasUsed()
returns if filter was evaluated
Definition: FilterInfo.h:60
Belle2::FilterInfo
helper class to store the information for a Filter
Definition: FilterInfo.h:30
Belle2::FilterInfo::m_name
std::string m_name
name of the FilterVariable
Definition: FilterInfo.h:60
Belle2::FilterInfo::m_wasUsed
bool m_wasUsed
stores if filter was evaluated
Definition: FilterInfo.h:70
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FilterInfo::getName
std::string getName()
getter function to get the name
Definition: FilterInfo.h:54
Belle2::FilterInfo::ClassDef
ClassDef(FilterInfo, 1)
Class definition to make this a ROOT class.
Belle2::FilterInfo::m_wasAccepted
bool m_wasAccepted
stores if filter was accepted
Definition: FilterInfo.h:68
Belle2::FilterInfo::getWasAccepted
bool getWasAccepted()
returns if the event was accepted
Definition: FilterInfo.h:58
Belle2::FilterInfo::~FilterInfo
~FilterInfo()
destructor
Definition: FilterInfo.h:51