Belle II Software  release-08-01-10
ObserverInfo Class Reference

Helper class that stores the information an Observer stores: i.e. More...

#include <ObserverInfo.h>

Inheritance diagram for ObserverInfo:
Collaboration diagram for ObserverInfo:

Public Member Functions

 ObserverInfo ()
 constructor
 
 ~ObserverInfo ()
 destructor
 
void clear ()
 resets all member variables
 
FilterInfo getFilterInfo (std::string const &key)
 returns the filter info with the requested key More...
 
std::string getFilterName (int i)
 function to access the filter infos directly, as inderect access seems not to work within the Draw of root: More...
 
double getFilterResult (std::string const &key)
 returns the requested filter result More...
 
bool getFilterAccepted (std::string const &key)
 returns if the filter was accepted More...
 
double getFilterUsed (std::string const &key)
 returns if the filter was used More...
 
void addFilterInfo (FilterInfo info)
 add a new filter info: More...
 
std::vector< SpacePointInfogetHits ()
 returns the vector of spacepoints which have been used to evaluate the filters
 
SpacePointInfo getHit (int i)
 Returns the i-th hit. More...
 
void setHits (const std::vector< SpacePointInfo > &newHits)
 sets the hits the filter has been evaluated with More...
 
int getMainMCParticleID ()
 return the MCParticle ID of the related MCParticle
 
void setMainMCParticleID (int id)
 set the MCParticle id More...
 
double getMainPurity ()
 returns the purity
 
void setMainPurity (double val)
 sets the purity More...
 

Private Member Functions

 ClassDef (ObserverInfo, 1)
 Needed to make the ROOT object storable.
 

Private Attributes

std::vector< FilterInfom_filterInfos
 stores the information for each Filter
 
std::vector< SpacePointInfom_hits
 stores the hits used in the filter, should have the order as used in the filter from outer to inner!
 
int m_mainMCParticleID
 dominating mcParticleID.
 
double m_mainPurity
 purity for the dominating particleID.
 

Detailed Description

Helper class that stores the information an Observer stores: i.e.

all the responses of the subfilters contained in a Filter.

Definition at line 24 of file ObserverInfo.h.

Member Function Documentation

◆ addFilterInfo()

void addFilterInfo ( FilterInfo  info)
inline

add a new filter info:

Parameters
infothe filterinfo to be added

Definition at line 86 of file ObserverInfo.h.

86 { m_filterInfos.push_back(info); };
std::vector< FilterInfo > m_filterInfos
stores the information for each Filter
Definition: ObserverInfo.h:119

◆ getFilterAccepted()

bool getFilterAccepted ( std::string const &  key)
inline

returns if the filter was accepted

Parameters
keyname under which filter was stored

Definition at line 70 of file ObserverInfo.h.

◆ getFilterInfo()

FilterInfo getFilterInfo ( std::string const &  key)
inline

returns the filter info with the requested key

Parameters
keyname of the key for that filter

Definition at line 43 of file ObserverInfo.h.

◆ getFilterName()

std::string getFilterName ( int  i)
inline

function to access the filter infos directly, as inderect access seems not to work within the Draw of root:

Parameters
ithe index under which the filter was stored in m_filterinfos

Definition at line 54 of file ObserverInfo.h.

◆ getFilterResult()

double getFilterResult ( std::string const &  key)
inline

returns the requested filter result

Parameters
keythe key under which the filter was stored

Definition at line 62 of file ObserverInfo.h.

◆ getFilterUsed()

double getFilterUsed ( std::string const &  key)
inline

returns if the filter was used

Parameters
keykey under which filter was stored

Definition at line 78 of file ObserverInfo.h.

◆ getHit()

SpacePointInfo getHit ( int  i)
inline

Returns the i-th hit.

Parameters
ihit index

Definition at line 94 of file ObserverInfo.h.

◆ setHits()

void setHits ( const std::vector< SpacePointInfo > &  newHits)
inline

sets the hits the filter has been evaluated with

Parameters
newHitsvector of spacepoint which have been used in this filter

Definition at line 103 of file ObserverInfo.h.

◆ setMainMCParticleID()

void setMainMCParticleID ( int  id)
inline

set the MCParticle id

Parameters
idthe new id

Definition at line 111 of file ObserverInfo.h.

◆ setMainPurity()

void setMainPurity ( double  val)
inline

sets the purity

Parameters
valnew value of the purity

Definition at line 119 of file ObserverInfo.h.


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