 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
14 #include <genfit/TrackCand.h>
15 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
39 class TCConvertersTestModule :
public Module {
47 void event()
override;
131 std::array<bool, 4>
checkHits(
const std::vector<trackCandHit>& origHits,
const std::vector<trackCandHit>& convHits);
141 template<
int p1,
int p2,
int p3 = 0>
142 std::vector<trackCandHit>::const_iterator
checkEntries(
const std::vector<trackCandHit>& hits,
const trackCandHit& hit)
144 return std::find_if(hits.begin(), hits.end(),
146 return std::get<p1>(hit) == std::get<p1>(oHit) &&
147 std::get<p2>(hit) == std::get<p2>(oHit) &&
148 std::get<p3>(hit) == std::get<p3>(oHit);
unsigned int m_differButOKCtr
Counter for differing GFTCs, where the difference can be assigned to a refereeStatus.
void initialize() override
Initialize the Module.
int m_failedWrongOrder
Counter for failed conversions due to wrong ordering of TrackCandHits.
void event() override
event: event-wise jobs
Track candidate – seed values and indices.
int m_failedNotSameHits
Counter for failed conversions for which the genfit::TrackCandidates do not contain the same TrackCan...
bool analyzeMisMatch(const genfit::TrackCand *origTC, const genfit::TrackCand *convTC, const Belle2::SpacePointTrackCand *spTC)
analyze why the conversion failed, and check if it can be explained by the referee Status of the SPTC...
int m_convertedTCCtr
counter for genfit::TrackCands which where obtained by converting from a SpacePointTrackCand
std::vector< std::string > m_SpacePointArrayNames
Names of SpacePoint StoreArrays.
std::string m_SVDClusterName
Container name of SVDCluster.
std::vector< trackCandHit > getTrackCandHits(const genfit::TrackCand *trackCand)
get all TrackCandHits from a genfit::TrackCand (no such method in genfit)
std::tuple< int, int, int, double > trackCandHit
terminate: print some summary information
int m_failedWrongSortingParam
Counter for failed conversions due to one or more differing sorting parameters.
unsigned int m_lessHitsCtr
Counter for cases where the original GFTC has less hits than the converted.
int m_failedNoRelationConv
Counter for failed Relation to converted genfit::TrackCand.
std::vector< std::string > m_genfitTCNames
Names of genfit::TrackCand Store Arrays.
int m_failedNoSPTC
counter for conversions where no SpacePointTrackCand was created (i.e.
Abstract base class for different kinds of events.
void initializeCounters()
initialize all counter variables to zero, to avoid indeterministic behaviour
std::string m_SPTCName
Container name of SpacePointTrackCands.
int m_failedNoRelationOrig
Counter for failed Relation to original genfit::TrackCand.
std::vector< trackCandHit >::const_iterator checkEntries(const std::vector< trackCandHit > &hits, const trackCandHit &hit)
check if there is a match if only certain entries (p1, p2 and p3) of a trackCandHit are compared
std::string m_PXDClusterName
Container name of PXDCluster.
int m_failedOther
Counter for failed conversions for which none of the other stated coudl be assigned.
int m_SpacePointTCCtr
counter for presented SpacePointTrackCands
std::array< bool, 4 > checkHits(const std::vector< trackCandHit > &origHits, const std::vector< trackCandHit > &convHits)
check if the same trackCandHits are contained in both vectors
int m_failedNoGFTC
counter for conversions where no genfit::TrackCand was created from a SpacePointTrackCand (i....
int m_genfitTCCtr
counter for presented genfit::TrackCands
TCConvertersTestModule()
constructor
Storage for (VXD) SpacePoint-based track candidates.
void terminate() override
This method is called at the end of the event processing.
unsigned int m_moreHitsCtr
Counter for cases where the original GFTC has more hits than the converted.