this observer searches for mcParticles attached to the hits given and stores the information found to be retrieved later. More...
#include <ObserverCheckMCPurity.h>
Public Member Functions | |
ObserverCheckMCPurity () | |
empty constructor: | |
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 &, const typename Var::argumentType &, const typename Var::argumentType &) |
notifier which finds the mcParticles attached to given triplet of spacePoints and determines the purities for them. | |
template<class Var, class RangeType> | |
static void | notify (const Var &, typename Var::variableType fResult, const RangeType &range, const typename Var::argumentType &, const typename Var::argumentType &) |
notifier which finds the mcParticles attached to given pair of spacePoints and determines the purities for them. | |
template<class Var, class Range, typename ... types> | |
static bool | initialize (Var var, Range, const types &...) |
static method used by the observed object to initialize the observer. | |
static bool | initialize (TTree *attree) |
version for 2-hit-combinations. | |
static void | prepare (const SpacePoint &outerHit, const SpacePoint &innerHit) |
static method used by the observed object to initialize the observer (partial template specialization of the general version). | |
template<typename ... types> | |
static void | terminate (const types &...) |
static method used by the observed object to terminate the observer. | |
template<typename ... types> | |
static void | collect (const types &...) |
fill the tree. | |
Static Public Attributes | |
static std::map< std::string, double * > | s_results |
stores the results calculated (->value) for a selectionVariableName (->Key). | |
static std::map< std::string, bool * > | s_wasAccepted |
stores if hits were accepted (->value) for a selectionVariableName (->Key). | |
static std::map< std::string, bool * > | s_wasUsed |
stores if the filter was actually used this time (->value) for a selectionVariableName (->Key). | |
static TTree * | s_ttree = nullptr |
a ttree to store all the collected data. | |
static SpacePoint | s_outerHitOfTwo |
stores the outer hit of a two-hit-combination. | |
static SpacePoint | s_innerHitOfTwo |
stores the inner hit of a two-hit-combination. | |
static SpacePoint | s_outerHitOfThree |
stores the outer hit of a three-hit-combination. | |
static SpacePoint | s_centerHitOfThree |
stores the center hit of a three-hit-combination. | |
static SpacePoint | s_innerHitOfThree |
stores the inner hit of a three-hit-combination. | |
static int | s_mainMCParticleID = 0 |
dominating mcParticleID. | |
static double | s_mainPurity = -1. |
purity for the dominating particleID. | |
Static Protected Member Functions | |
template<class Var, class RangeType> | |
static void | generalNotify (typename Var::variableType fResult, const RangeType &range) |
unified part of the notifier function. | |
this observer searches for mcParticles attached to the hits given and stores the information found to be retrieved later.
Definition at line 30 of file ObserverCheckMCPurity.h.
|
inline |
|
inlinestatic |
fill the tree.
Definition at line 198 of file ObserverCheckMCPurity.h.
|
inlinestaticprotected |
unified part of the notifier function.
Stores filter-specific things.
Definition at line 215 of file ObserverCheckMCPurity.h.
|
inlinestatic |
version for 2-hit-combinations.
Definition at line 134 of file ObserverCheckMCPurity.h.
|
inlinestatic |
static method used by the observed object to initialize the observer.
will be called once per Filter containing a single SelectionVariable and its range.
Definition at line 113 of file ObserverCheckMCPurity.h.
|
inlinestatic |
notifier which finds the mcParticles attached to given pair of spacePoints and determines the purities for them.
Definition at line 90 of file ObserverCheckMCPurity.h.
|
inlinestatic |
notifier which finds the mcParticles attached to given triplet of spacePoints and determines the purities for them.
Definition at line 74 of file ObserverCheckMCPurity.h.
|
inlinestatic |
static method used by the observed object to initialize the observer (partial template specialization of the general version).
static method used by the observed object to reset the stored values of the observer.
Definition at line 160 of file ObserverCheckMCPurity.h.
|
inlinestatic |
static method used by the observed object to terminate the observer.
Definition at line 188 of file ObserverCheckMCPurity.h.
|
static |
stores the center hit of a three-hit-combination.
Definition at line 60 of file ObserverCheckMCPurity.h.
|
static |
stores the inner hit of a three-hit-combination.
Definition at line 63 of file ObserverCheckMCPurity.h.
|
static |
stores the inner hit of a two-hit-combination.
Definition at line 54 of file ObserverCheckMCPurity.h.
|
static |
dominating mcParticleID.
Definition at line 66 of file ObserverCheckMCPurity.h.
|
static |
purity for the dominating particleID.
Definition at line 69 of file ObserverCheckMCPurity.h.
|
static |
stores the outer hit of a three-hit-combination.
Definition at line 57 of file ObserverCheckMCPurity.h.
|
static |
stores the outer hit of a two-hit-combination.
Definition at line 51 of file ObserverCheckMCPurity.h.
|
static |
stores the results calculated (->value) for a selectionVariableName (->Key).
defining member s_results of the ObserverCheckMCPurity.
Definition at line 35 of file ObserverCheckMCPurity.h.
|
static |
a ttree to store all the collected data.
Definition at line 48 of file ObserverCheckMCPurity.h.
|
static |
stores if hits were accepted (->value) for a selectionVariableName (->Key).
defining member s_results of the ObserverCheckMCPurity.
Definition at line 40 of file ObserverCheckMCPurity.h.
|
static |
stores if the filter was actually used this time (->value) for a selectionVariableName (->Key).
defining member s_results of the ObserverCheckMCPurity.
Definition at line 45 of file ObserverCheckMCPurity.h.