 |
Belle II Software
release-05-02-19
|
18 #include <framework/datastore/StoreArray.h>
21 #include <tracking/dataobjects/ObserverInfo.h>
23 #include <tracking/spacePointCreation/SpacePoint.h>
37 class ObserverCheckFilters {
60 template <
class Var,
class Range,
typename ... types >
114 template <
typename ... types >
121 template <
typename ... types >
122 static void collect(
const types& ...)
130 template<
class Var,
class RangeType>
131 static void notify(
const Var&,
132 typename Var::variableType fResult,
133 const RangeType& range,
134 const typename Var::argumentType&,
135 const typename Var::argumentType&,
136 const typename Var::argumentType&)
141 generalNotify<Var, RangeType>(fResult, range);
146 template<
class Var,
class RangeType>
147 static void notify(
const Var&,
148 typename Var::variableType fResult,
149 const RangeType& range,
150 const typename Var::argumentType&,
151 const typename Var::argumentType&)
156 generalNotify<Var, RangeType>(fResult, range);
169 template<
class Var,
class RangeType>
170 static void generalNotify(
typename Var::variableType fResult,
171 const RangeType& range)
174 FilterInfo info(Var().name() ,
double(fResult), range.contains(fResult),
true);
void setVxdID(Belle2::VxdID::baseType anId)
setter for the VxdID:
static ObserverInfo s_observerInfo
container that stores the results calculated for a selectionVariableName, has to be static due to the...
static StoreArray< ObserverInfo > s_storeArray
hold a storearray to have access to the datastore
void setIsAssigned(bool ia)
setter for is assigned
void addFilterInfo(FilterInfo info)
add a new filter info:
static void collect(const types &...)
fill the storearray
void setHits(std::vector< SpacePointInfo > &newHits)
sets the hits the filter has been evaluated with
std::pair< bool, bool > getIfClustersAssigned() const
Returns, if u(v)-coordinate is based on cluster information.
helper class to store the information for a Filter
void setClustersAssignedU(bool b)
setter for is u cluster assigned
void setClustersAssignedV(bool b)
setter for is v cluster assigned
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
const B2Vector3< double > & getPosition() const
return the position vector in global coordinates
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...
Abstract base class for different kinds of events.
float getQualityEstimation() const
Getter for the quality of this SpacePoint.
Represents a range of arithmetic types.
bool getAssignmentState() const
Getter for status of assignment to a track.
void setPositionError(TVector3 v)
setter for the uncertainty on the position
void setQualityIndicator(double qi)
setter for the quality indicator
double getNormalizedLocalV() const
Return normalized local coordinates of the cluster in v (0 <= posV <= 1).
static void prepare(const SpacePoint &outerHit, const SpacePoint &innerHit)
static method used by the observed object to reset the stored values of the observer.
void setNormalizedLocalU(double val)
setter for the normalized u coordinate
static void generalNotify(typename Var::variableType fResult, const RangeType &range)
unified part of the notifier function.
void setSensorType(int type)
setter for sensor type:
void clear()
resets all member variables
static SpacePointInfo convertSpacePoint(const SpacePoint &aSpacePoint)
convert a SpacePiont into a version that can be stored in the datastore
Accessor to arrays stored in the data store.
void setNormalizedLocalV(double val)
setter for the normalized v coordinate
static bool initialize(const StoreArray< ObserverInfo > &aStoreArray)
get a copy of a storearray
helper class to store the SpacePoint information as coding convention prohibits to use the SpacePoint...
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
void setPosition(TVector3 v)
setter for the position.
Belle2::VXD::SensorInfoBase::SensorType getType() const
Return SensorType (PXD, SVD, ...) on which the SpacePoint lives.
ObserverCheckFilters()
empty constructor:
const B2Vector3< double > & getPositionError() const
return the hitErrors in sigma of the global position
VxdID getVxdID() const
Return the VxdID of the sensor on which the the cluster of the SpacePoint lives.
double getNormalizedLocalU() const
Return normalized local coordinates of the cluster in u (0 <= posU <= 1).