Belle II Software development
FilterInfo Class Reference

helper class to store the information for a Filter More...

#include <FilterInfo.h>

Inheritance diagram for FilterInfo:

Public Member Functions

 FilterInfo ()
 default constructor needed by root
 
 FilterInfo (const std::string &aname, double aresult, bool accepted, bool used)
 no setters so use this one to put in the information!
 
 ~FilterInfo ()
 destructor
 
std::string getName ()
 getter function to get the name
 
double getResult ()
 returns the result of the filtervariable attached to this filter
 
bool getWasAccepted ()
 returns if the event was accepted
 
bool getWasUsed ()
 returns if filter was evaluated
 

Private Member Functions

 ClassDef (FilterInfo, 1)
 Class definition to make this a ROOT class.
 

Private Attributes

std::string m_name
 name of the FilterVariable
 
double m_result
 the result of the filter variable
 
bool m_wasAccepted
 stores if filter was accepted
 
bool m_wasUsed
 stores if filter was evaluated
 

Detailed Description

helper class to store the information for a Filter

Definition at line 20 of file FilterInfo.h.

Constructor & Destructor Documentation

◆ FilterInfo() [1/2]

FilterInfo ( )
inline

default constructor needed by root

Definition at line 23 of file FilterInfo.h.

23 :
24 m_name(""),
25 m_result(-666.),
26 m_wasAccepted(false),
27 m_wasUsed(false)
28 {
29 };
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 m_wasAccepted
stores if filter was accepted
Definition: FilterInfo.h:58
std::string m_name
name of the FilterVariable
Definition: FilterInfo.h:54

◆ FilterInfo() [2/2]

FilterInfo ( const std::string &  aname,
double  aresult,
bool  accepted,
bool  used 
)
inline

no setters so use this one to put in the information!

Definition at line 32 of file FilterInfo.h.

32 :
33 m_name(aname),
34 m_result(aresult),
35 m_wasAccepted(accepted),
36 m_wasUsed(used)
37 {
38 };

◆ ~FilterInfo()

~FilterInfo ( )
inline

destructor

Definition at line 41 of file FilterInfo.h.

41{};

Member Function Documentation

◆ getName()

std::string getName ( )
inline

getter function to get the name

Definition at line 44 of file FilterInfo.h.

44{ return m_name; };

◆ getResult()

double getResult ( )
inline

returns the result of the filtervariable attached to this filter

Definition at line 46 of file FilterInfo.h.

46{ return m_result; };

◆ getWasAccepted()

bool getWasAccepted ( )
inline

returns if the event was accepted

Definition at line 48 of file FilterInfo.h.

48{ return m_wasAccepted; };

◆ getWasUsed()

bool getWasUsed ( )
inline

returns if filter was evaluated

Definition at line 50 of file FilterInfo.h.

50{ return m_wasUsed; };

Member Data Documentation

◆ m_name

std::string m_name
private

name of the FilterVariable

Definition at line 54 of file FilterInfo.h.

◆ m_result

double m_result
private

the result of the filter variable

Definition at line 56 of file FilterInfo.h.

◆ m_wasAccepted

bool m_wasAccepted
private

stores if filter was accepted

Definition at line 58 of file FilterInfo.h.

◆ m_wasUsed

bool m_wasUsed
private

stores if filter was evaluated

Definition at line 60 of file FilterInfo.h.


The documentation for this class was generated from the following file: