 |
Belle II Software
release-05-01-25
|
13 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
14 #include <tracking/spacePointCreation/MCVXDPurityInfo.h>
15 #include <tracking/trackFindingVXD/analyzingTools/TCType.h>
30 class AnalizerTCInfo {
65 newTC.assignedID = iD;
66 newTC.tcType = isReference ? TCType::Reference : TCType::Unclassified;
75 if (aTC.assignedTC == NULL) {
84 unsigned int ndfThreshold)
86 std::pair<int, float> testPurity = testTC.assignedID.getPurity();
87 std::pair<int, float> refPurity = referenceTC.assignedID.getPurity();
89 if (testPurity.first != refPurity.first) {
return TCType::Unclassified; }
91 if (testPurity.second < purityThreshold) {
return TCType::Ghost; }
93 if (testTC.assignedID.getNDFTotal() < ndfThreshold) {
return TCType::SmallStump; }
95 if (testPurity.second < 1.f) {
return TCType::Contaminated; }
97 if (testTC.assignedID.getNClustersTotal() < referenceTC.assignedID.getNClustersTotal()) {
return TCType::Clean; }
99 return TCType::Perfect;
118 otherTC->assignedTC =
this;
139 otherTC->assignedTC =
this;
140 otherTC->tcType = TCType::Clone;
static void markUnused(std::vector< AnalizerTCInfo > &tcs, TCType::Type newType)
find unpaired tcs and mark them with given type
static AnalizerTCInfo createTC(bool isReference, MCVXDPurityInfo &iD, SpacePointTrackCand &aTC)
static function for correctly creating TrackCandidates
simple class storing infos relevant for a TC for analizing it.
The MC VXD Purity info container class.
AnalizerTCInfo()
constructor, makes sure that pointers are on NULL until set
const TVector3 getMomSeed() const
get momentum seed as TVector3
Type
allows classifying TCs
AnalizerTCInfo * assignedTC
for reference TC: best test TC found, for test TC, compatible reference TC found
TVector3 momSeed
carries the momentum vector at the position of the seed hit (typically the innermost hit)
MCVXDPurityInfo assignedID
stores the iD of the particle and knows the purity for it
TCType::Type getType() const
a type-identifier function
TVector3 posSeed
carries the global coordinates of the position of the seed hit (typically the innermost hit)
TCType::Type tcType
classifies attached TC
Abstract base class for different kinds of events.
static TCType::Type classifyTC(AnalizerTCInfo &referenceTC, AnalizerTCInfo &testTC, double purityThreshold, unsigned int ndfThreshold)
for given pair of TCs their compatibility will be checked and the testTC classified,...
void assignTCs(AnalizerTCInfo *otherTC)
function for assigning TCs to each other
const SpacePointTrackCand * tC
a link to the TC itself
const TVector3 getPosSeed() const
get position seed as TVector3
void pairUp(AnalizerTCInfo *otherTC)
links otherTC to this one
void discardTC()
function for discarding the old TC.
Small class for classifying types of reconstructed track candidates.
Storage for (VXD) SpacePoint-based track candidates.