Belle II Software  release-08-01-10
FilterValueDataSet< SecIDSetType > Class Template Reference

contains the relevant information needed for filling a TTree containing train-data for the secMap. More...

#include <FilterValueDataSet.h>

Collaboration diagram for FilterValueDataSet< SecIDSetType >:

Public Member Functions

 FilterValueDataSet (std::vector< std::string > filterNames)
 constructor, expects to get a vector of names for filters.
 
void setValueOfFilter (std::string filterName, double value)
 for given filterName a value is set. More...
 
double * getValuePtr (std::string filterName)
 returns pointer to value of given filterName, nullptr if filterName has not been found.
 
void reset ()
 resets all values stored to std::numeric_limits< double>::max(). More...
 
bool isValid ()
 checks if any value is still not set and returns false if that is the case. More...
 

Public Attributes

unsigned expNo
 number of the experiment this dataset is taken from.
 
unsigned runNo
 number of the run this dataset is taken from.
 
unsigned evtNo
 number of the event this dataset is taken from.
 
unsigned trackNo
 number of the reference track this dataset is taken from (its ID in the datastore).
 
int pdg
 Pdg given by reference track.
 
SecIDSetType secIDs
 contains the secIDs.
 

Protected Attributes

std::map< std::string, double > m_values
 map containing a value for each key==name of filter.
 

Detailed Description

template<class SecIDSetType>
class Belle2::FilterValueDataSet< SecIDSetType >

contains the relevant information needed for filling a TTree containing train-data for the secMap.

Definition at line 119 of file FilterValueDataSet.h.

Member Function Documentation

◆ isValid()

bool isValid ( )
inline

checks if any value is still not set and returns false if that is the case.

(only completely set values in the dataSet are valid).

Definition at line 202 of file FilterValueDataSet.h.

◆ reset()

void reset ( void  )
inline

resets all values stored to std::numeric_limits< double>::max().

and all FilterIDs to std::numeric_limits< unsigned>::max()

Definition at line 187 of file FilterValueDataSet.h.

◆ setValueOfFilter()

void setValueOfFilter ( std::string  filterName,
double  value 
)
inline

for given filterName a value is set.

if filterName does not exist, an error is produced and nothing gets stored.

Definition at line 163 of file FilterValueDataSet.h.


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