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()
template<typename ... types>
static void collect |
( |
const types & | ... | ) |
|
|
inlinestatic |
fill the storearray
Definition at line 116 of file ObserverCheckFilters.h.
117 {
118
119 s_storeArray.appendNew(s_observerInfo);
120 }
◆ 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()
template<class Var, class RangeType>
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);
169 s_observerInfo.addFilterInfo(info);
170 }
◆ initialize() [1/2]
get a copy of a storearray
Definition at line 47 of file ObserverCheckFilters.h.
48 {
49 ObserverCheckFilters::s_storeArray = aStoreArray;
50 return true;
51 }
◆ initialize() [2/2]
template<class Var, class
Range, typename ... types>
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]
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 & | ) |
|
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]
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 & | ) |
|
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
85 s_observerInfo.clear();
86 std::vector<SpacePointInfo> hitsinfo = { ObserverCheckFilters::convertSpacePoint(outerHit),
87 ObserverCheckFilters::convertSpacePoint(innerHit)
88 };
89 s_observerInfo.setHits(hitsinfo);
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104 }
◆ terminate()
template<typename ... types>
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: