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

this observer identifies the McParticles responsible for creating underlying clusters for given spacePoints and counts how often a particle type was accepted and how often it was rejected More...

Inheritance diagram for CountAcceptedRejectedMCParticleObserver:
Collaboration diagram for CountAcceptedRejectedMCParticleObserver:

Static Public Member Functions

template<class Var , class RangeType >
static void notify (const Var &, typename Var::variableType fResult, const RangeType &range, const typename Var::argumentType &outerHit, const typename Var::argumentType &innerHit)
 notifier producing a info message if SelectionVariable was accepted and a Warning if otherwise
 
template<class hitType >
static void collectPDGs (const hitType &aHit, vector< pair< bool, int > > &collectedPDGs)
 collects all PDGs connected to given hit. More...
 
template<class hitType >
static void collectParticleIDs (const hitType &aHit, vector< pair< bool, int > > &collectedIDS)
 collects all particleIDs connected to given hit. More...
 
template<class hitType >
static CountContainer::Key createKey (const hitType &hitA, const hitType &hitB, bool usePDG)
 for two hits given, a key for the CountContainer is returned. More...
 
template<class hitType >
static void collectMCParticles (const hitType &aHit, std::vector< const MCParticle * > &collectedParticles)
 collects all mcParticles connected to given hit. More...
 
template<class Type >
static std::string vec2str (const vector< Type > &vec)
 small helper for easily printing vectors
 
template<typename ... types>
static void notify (const types &...)
 static method used by the observed object to notify the observer. More...
 
template<typename ... types>
static bool initialize (const types &...)
 static method used by the observed object to initialize the observer it is called once usually from the user.
 
template<typename ... types>
static void prepare (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void collect (const types &...)
 static method used by the observed object to prepare the observer it is called by the boolean filter operator.
 
template<typename ... types>
static void terminate (const types &...)
 static method used by the observed object to terminate the observer.
 

Detailed Description

this observer identifies the McParticles responsible for creating underlying clusters for given spacePoints and counts how often a particle type was accepted and how often it was rejected

Definition at line 500 of file observers.cc.

Member Function Documentation

◆ collectMCParticles()

static void collectMCParticles ( const hitType &  aHit,
std::vector< const MCParticle * > &  collectedParticles 
)
inlinestatic

collects all mcParticles connected to given hit.

does only work, if hit has direct relations PXD/SVDCluster which have relations to MCParticle.

first parameter is a hit (e.g. spacePoint) which is related to MCParticles. second parameter is the vector for collecting the PDGcodes found.

Definition at line 621 of file observers.cc.

◆ collectParticleIDs()

static void collectParticleIDs ( const hitType &  aHit,
vector< pair< bool, int > > &  collectedIDS 
)
inlinestatic

collects all particleIDs connected to given hit.

does only work, if hit has direct relations PXD/SVDCluster which have relations to MCParticle.

first parameter is a hit (e.g. spacePoint) which is related to MCParticles. second parameter is the vector for collecting the PDGcodes found.

Definition at line 567 of file observers.cc.

◆ collectPDGs()

static void collectPDGs ( const hitType &  aHit,
vector< pair< bool, int > > &  collectedPDGs 
)
inlinestatic

collects all PDGs connected to given hit.

does only work, if hit has direct relations PXD/SVDCluster which have relations to MCParticle.

first parameter is a hit (e.g. spacePoint) which is related to MCParticles. second parameter is the vector for collecting the PDGcodes found.

Definition at line 545 of file observers.cc.

◆ createKey()

static CountContainer::Key createKey ( const hitType &  hitA,
const hitType &  hitB,
bool  usePDG 
)
inlinestatic

for two hits given, a key for the CountContainer is returned.

if usePDG == true, PDGcode will be used as identifyer, if false, the ParticleID will be used

Definition at line 581 of file observers.cc.

◆ notify()

static void notify ( const types &  ...)
inlinestaticinherited

static method used by the observed object to notify the observer.

it is called at each accept.

Definition at line 37 of file VoidObserver.h.


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