12#include <framework/datastore/StoreArray.h>
15#include <tracking/dataobjects/ObserverInfo.h>
17#include <tracking/spacePointCreation/SpacePoint.h>
54 template <
class Var,
class Range,
typename ... types >
108 template <
typename ... types >
115 template <
typename ... types >
124 template<
class Var,
class RangeType>
126 typename Var::variableType fResult,
127 const RangeType& range,
128 const typename Var::argumentType&,
129 const typename Var::argumentType&,
130 const typename Var::argumentType&)
135 generalNotify<Var, RangeType>(fResult, range);
140 template<
class Var,
class RangeType>
142 typename Var::variableType fResult,
143 const RangeType& range,
144 const typename Var::argumentType&,
145 const typename Var::argumentType&)
150 generalNotify<Var, RangeType>(fResult, range);
163 template<
class Var,
class RangeType>
165 const RangeType& range)
168 FilterInfo info(Var().name(),
double(fResult), range.contains(fResult),
true);
helper class to store the information for a Filter
this observer searches logs the response for each of SelectionVariables used in the filters If the po...
ObserverCheckFilters()
empty constructor:
static void terminate(const types &...)
static method used by the observed object to terminate the 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.
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 puritie...
static void generalNotify(typename Var::variableType fResult, const RangeType &range)
unified part of the notifier function.
static bool initialize(Var, Range, const types &...)
this function is needed by the Filters.h but has no task for this observer
static StoreArray< ObserverInfo > s_storeArray
hold a storearray to have access to the datastore
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 puri...
static ObserverInfo s_observerInfo
container that stores the results calculated for a selectionVariableName, has to be static due to the...
static void collect(const types &...)
fill the storearray
static bool initialize(const StoreArray< ObserverInfo > &aStoreArray)
get a copy of a storearray
Helper class that stores the information an Observer stores: i.e.
void setHits(const std::vector< SpacePointInfo > &newHits)
sets the hits the filter has been evaluated with
void clear()
resets all member variables
void addFilterInfo(FilterInfo info)
add a new filter info:
Represents a range of arithmetic types.
helper class to store the SpacePoint information as coding convention prohibits to use the SpacePoint...
void setNormalizedLocalU(double val)
setter for the normalized u coordinate
void setSensorType(int type)
setter for sensor type:
void setPosition(ROOT::Math::XYZVector v)
setter for the position.
void setQualityIndicator(double qi)
setter for the quality indicator
void setVxdID(Belle2::VxdID::baseType anId)
setter for the VxdID:
void setPositionError(ROOT::Math::XYZVector v)
setter for the uncertainty on the position
void setNormalizedLocalV(double val)
setter for the normalized v coordinate
void setClustersAssignedV(bool b)
setter for is v cluster assigned
void setIsAssigned(bool ia)
setter for is assigned
void setClustersAssignedU(bool b)
setter for is u cluster assigned
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
float getQualityEstimation() const
Getter for the quality of this SpacePoint.
double getNormalizedLocalV() const
Return normalized local coordinates of the cluster in v (0 <= posV <= 1).
std::pair< bool, bool > getIfClustersAssigned() const
Returns, if u(v)-coordinate is based on cluster information.
VxdID getVxdID() const
Return the VxdID of the sensor on which the the cluster of the SpacePoint lives.
const B2Vector3D & getPositionError() const
return the hitErrors in sigma of the global position
bool getAssignmentState() const
Getter for status of assignment to a track.
Belle2::VXD::SensorInfoBase::SensorType getType() const
Return SensorType (PXD, SVD, ...) on which the SpacePoint lives.
const B2Vector3D & getPosition() const
return the position vector in global coordinates
double getNormalizedLocalU() const
Return normalized local coordinates of the cluster in u (0 <= posU <= 1).
Accessor to arrays stored in the data store.
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.