 |
Belle II Software
release-05-01-25
|
15 #include <tracking/dataobjects/SpacePointInfo.h>
16 #include <tracking/dataobjects/FilterInfo.h>
26 class ObserverInfo :
public TObject {
105 void setHits(std::vector<SpacePointInfo>& newHits) {
m_hits = newHits; };
127 std::vector<SpacePointInfo>
m_hits;
void setMainMCParticleID(int id)
set the MCParticle id
double getResult()
returns the result of the filtervariable attached to this filter
double m_mainPurity
purity for the dominating particleID.
bool getWasUsed()
returns if filter was evaluated
void addFilterInfo(FilterInfo info)
add a new filter info:
void setHits(std::vector< SpacePointInfo > &newHits)
sets the hits the filter has been evaluated with
helper class to store the information for a Filter
double getFilterResult(std::string const &key)
returns the requested filter result
ClassDef(ObserverInfo, 1)
Needed to make the ROOT object storable.
std::vector< SpacePointInfo > m_hits
stores the hits used in the filter, should have the order as used in the filter from outer to inner!
bool getFilterAccepted(std::string const &key)
returns if the filter was accepted
void setMainPurity(double val)
sets the purity
int m_mainMCParticleID
dominating mcParticleID.
Abstract base class for different kinds of events.
std::vector< SpacePointInfo > getHits()
returns the vector of spacepoints which have been used to evaluate the filters
ObserverInfo()
constructor
FilterInfo getFilterInfo(std::string const &key)
returns the filter info with the requested key
~ObserverInfo()
destructor
double getFilterUsed(std::string const &key)
returns if the filter was used
void clear()
resets all member variables
helper class to store the SpacePoint information as coding convention prohibits to use the SpacePoint...
SpacePointInfo getHit(int i)
Returns the i-th hit.
Helper class that stores the information an Observer stores: i.e.
std::vector< FilterInfo > m_filterInfos
stores the information for each Filter
int getMainMCParticleID()
return the MCParticle ID of the related MCParticle
std::string getFilterName(int i)
function to access the filter infos directly, as inderect access seems not to work within the Draw of...
bool getWasAccepted()
returns if the event was accepted
double getMainPurity()
returns the purity