this observer searches logs the response for each of SelectionVariables used in the filters If the pointer to the StoreArray is set the results will be put into the datastore
More...
#include <ObserverCheckFilters.h>
|
static bool | initialize (const StoreArray< ObserverInfo > &aStoreArray) |
| get a copy of a storearray
|
|
template<class Var , class Range , typename ... types> |
static bool | initialize (Var, Range, const types &...) |
| this function is needed by the Filters.h but has no task for this observer
|
|
static SpacePointInfo | convertSpacePoint (const SpacePoint &aSpacePoint) |
| convert a SpacePiont into a version that can be stored in the datastore
|
|
static void | prepare (const SpacePoint &outerHit, const SpacePoint &innerHit) |
| static method used by the observed object to reset the stored values of the observer.
|
|
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 storearray
|
|
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 RangeType > |
static void | generalNotify (typename Var::variableType fResult, const RangeType &range) |
| unified part of the notifier function.
|
|
this observer searches logs the response for each of SelectionVariables used in the filters If the pointer to the StoreArray is set the results will be put into the datastore
Definition at line 31 of file ObserverCheckFilters.h.
◆ ObserverCheckFilters()
◆ collect()
static void collect |
( |
const types & |
... | ) |
|
|
inlinestatic |
fill the storearray
Definition at line 116 of file ObserverCheckFilters.h.
117 {
118
120 }
static StoreArray< ObserverInfo > s_storeArray
hold a storearray to have access to the datastore
static ObserverInfo s_observerInfo
container that stores the results calculated for a selectionVariableName, has to be static due to the...
◆ convertSpacePoint()
convert a SpacePiont into a version that can be stored in the datastore
Definition at line 62 of file ObserverCheckFilters.h.
63 {
64 SpacePointInfo spInfo;
65 spInfo.setPosition(aSpacePoint.getPosition());
66 spInfo.setPositionError(aSpacePoint.getPositionError());
67 spInfo.setNormalizedLocalU(aSpacePoint.getNormalizedLocalU());
68 spInfo.setNormalizedLocalV(aSpacePoint.getNormalizedLocalV());
69 spInfo.setClustersAssignedU(aSpacePoint.getIfClustersAssigned().first);
70 spInfo.setClustersAssignedV(aSpacePoint.getIfClustersAssigned().second);
71 spInfo.setVxdID(aSpacePoint.getVxdID());
72 spInfo.setSensorType((int)aSpacePoint.getType());
73 spInfo.setQualityIndicator(aSpacePoint.getQualityEstimation());
74 spInfo.setIsAssigned(aSpacePoint.getAssignmentState());
75 return spInfo;
76 }
◆ generalNotify()
static void generalNotify |
( |
typename Var::variableType |
fResult, |
|
|
const RangeType & |
range |
|
) |
| |
|
inlinestaticprotected |
unified part of the notifier function.
Stores filter-specific things.
Definition at line 164 of file ObserverCheckFilters.h.
166 {
167
168 FilterInfo info(Var().name(), double(fResult), range.contains(fResult), true);
170 }
void addFilterInfo(FilterInfo info)
add a new filter info:
◆ initialize() [1/2]
◆ initialize() [2/2]
static bool initialize |
( |
Var |
, |
|
|
Range |
, |
|
|
const types & |
... |
|
) |
| |
|
inlinestatic |
this function is needed by the Filters.h but has no task for this observer
Definition at line 55 of file ObserverCheckFilters.h.
56 {
57 return true;
58 }
◆ notify() [1/2]
static void notify |
( |
const Var & |
, |
|
|
typename Var::variableType |
fResult, |
|
|
const RangeType & |
range, |
|
|
const typename Var::argumentType & |
, |
|
|
const typename Var::argumentType & |
|
|
) |
| |
|
inlinestatic |
notifier which finds the mcParticles attached to given pair of spacePoints and determines the purities for them.
Definition at line 141 of file ObserverCheckFilters.h.
146 {
147
148
149
150 generalNotify<Var, RangeType>(fResult, range);
151 }
◆ notify() [2/2]
static void notify |
( |
const Var & |
, |
|
|
typename Var::variableType |
fResult, |
|
|
const RangeType & |
range, |
|
|
const typename Var::argumentType & |
, |
|
|
const typename Var::argumentType & |
, |
|
|
const typename Var::argumentType & |
|
|
) |
| |
|
inlinestatic |
notifier which finds the mcParticles attached to given triplet of spacePoints and determines the purities for them.
Definition at line 125 of file ObserverCheckFilters.h.
131 {
132
133
134
135 generalNotify<Var, RangeType>(fResult, range);
136 }
◆ prepare()
static method used by the observed object to reset the stored values of the observer.
Definition at line 81 of file ObserverCheckFilters.h.
83 {
84
88 };
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104 }
static SpacePointInfo convertSpacePoint(const SpacePoint &aSpacePoint)
convert a SpacePiont into a version that can be stored in the datastore
void setHits(const std::vector< SpacePointInfo > &newHits)
sets the hits the filter has been evaluated with
void clear()
resets all member variables
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
◆ terminate()
static void terminate |
( |
const types & |
... | ) |
|
|
inlinestatic |
◆ s_observerInfo
container that stores the results calculated for a selectionVariableName, has to be static due to the way the observers is called
Definition at line 36 of file ObserverCheckFilters.h.
◆ s_storeArray
The documentation for this class was generated from the following files: