ATLAS Offline Software
Loading...
Searching...
No Matches
InDetSecVtxTruthMatchUtils Namespace Reference

Typedefs

typedef std::tuple< ElementLink< xAOD::TruthVertexContainer >, float, float > VertexTruthMatchInfo

Enumerations

enum  VertexMatchType {
  Matched =0 , Merged , Split , Fake ,
  Other
}
enum  VertexMatchOriginType {
  FakeOrigin = 0 , Pileup , KshortDecay , StrangeMesonDecay ,
  LambdaDecay , StrangeBaryonDecay , TauDecay , GammaConversion ,
  OtherDecay , HadronicInteraction , OtherSecondary , BHadronDecay ,
  DHadronDecay , Fragmentation , OtherOrigin , Signal
}
enum  TruthVertexMatchType {
  Reconstructable =0 , Accepted , Seeded , Reconstructed ,
  ReconstructedSplit
}

Functions

bool isMatched (int matchInfo)
bool isMerged (int matchInfo)
bool isSplit (int matchInfo)
bool isFake (int matchInfo)
bool isOther (int matchInfo)
bool isReconstructable (int matchInfo)
bool isAccepted (int matchInfo)
bool isSeeded (int matchInfo)
bool isReconstructed (int matchInfo)
bool isReconstructedSplit (int matchInfo)
bool isOriginType (int matchInfo, VertexMatchOriginType type)

Typedef Documentation

◆ VertexTruthMatchInfo

Enumeration Type Documentation

◆ TruthVertexMatchType

Enumerator
Reconstructable 
Accepted 
Seeded 
Reconstructed 
ReconstructedSplit 

Definition at line 67 of file InDetSecVtxTruthMatchTool.h.

67 {
68 Reconstructable=0, // fiducial cuts, >= 2 charged daughters
69 Accepted, // >= 2 reco tracks
70 Seeded, // tracks pass cuts
71 Reconstructed, // matched to reco vtx
72 ReconstructedSplit // matched to multiple vtx
73 };

◆ VertexMatchOriginType

Enumerator
FakeOrigin 
Pileup 
KshortDecay 
StrangeMesonDecay 
LambdaDecay 
StrangeBaryonDecay 
TauDecay 
GammaConversion 
OtherDecay 
HadronicInteraction 
OtherSecondary 
BHadronDecay 
DHadronDecay 
Fragmentation 
OtherOrigin 
Signal 

Definition at line 45 of file InDetSecVtxTruthMatchTool.h.

45 {
46 // Must match InDet::TrkOrigin::OriginType values!
47 FakeOrigin = 0,
48 Pileup,
62 Signal
63};

◆ VertexMatchType

Enumerator
Matched 
Merged 
Split 
Fake 
Other 

Definition at line 33 of file InDetSecVtxTruthMatchTool.h.

33 {
34 Matched=0, // > threshold (default 50%) from one truth interaction
35 Merged, // not matched
36 Split, // highest weight truth interaction contributes to >1 vtx (vtx with highest fraction of sumpT2 remains matched/merged)
37 Fake, // highest contribution is fake (if pile-up MC info not present those tracks end up as "fakes")
38 Other
39 };

Function Documentation

◆ isAccepted()

bool InDetSecVtxTruthMatchUtils::isAccepted ( int matchInfo)
inline

Definition at line 100 of file InDetSecVtxTruthMatchTool.h.

100 {
101 if (matchInfo & (0x1 << Accepted)) return true;
102 return false;
103 }

◆ isFake()

bool InDetSecVtxTruthMatchUtils::isFake ( int matchInfo)
inline

Definition at line 87 of file InDetSecVtxTruthMatchTool.h.

87 {
88 if (matchInfo & (0x1 << Fake)) return true;
89 return false;
90 }

◆ isMatched()

bool InDetSecVtxTruthMatchUtils::isMatched ( int matchInfo)
inline

Definition at line 75 of file InDetSecVtxTruthMatchTool.h.

75 {
76 if (matchInfo & (0x1 << Matched)) return true;
77 return false;
78 }

◆ isMerged()

bool InDetSecVtxTruthMatchUtils::isMerged ( int matchInfo)
inline

Definition at line 79 of file InDetSecVtxTruthMatchTool.h.

79 {
80 if (matchInfo & (0x1 << Merged)) return true;
81 return false;
82 }

◆ isOriginType()

bool InDetSecVtxTruthMatchUtils::isOriginType ( int matchInfo,
VertexMatchOriginType type )
inline

Definition at line 117 of file InDetSecVtxTruthMatchTool.h.

117 {
118 if (type < 0 || type > Signal) { // Signal is the last valid value
119 return false;
120 }
121 return matchInfo & (0x1 << type);
122 }

◆ isOther()

bool InDetSecVtxTruthMatchUtils::isOther ( int matchInfo)
inline

Definition at line 91 of file InDetSecVtxTruthMatchTool.h.

91 {
92 if (matchInfo & (0x1 << Other)) return true;
93 return false;
94 }

◆ isReconstructable()

bool InDetSecVtxTruthMatchUtils::isReconstructable ( int matchInfo)
inline

Definition at line 96 of file InDetSecVtxTruthMatchTool.h.

96 {
97 if (matchInfo & (0x1 << Reconstructable)) return true;
98 return false;
99 }

◆ isReconstructed()

bool InDetSecVtxTruthMatchUtils::isReconstructed ( int matchInfo)
inline

Definition at line 108 of file InDetSecVtxTruthMatchTool.h.

108 {
109 if (matchInfo & (0x1 << Reconstructed)) return true;
110 return false;
111 }

◆ isReconstructedSplit()

bool InDetSecVtxTruthMatchUtils::isReconstructedSplit ( int matchInfo)
inline

Definition at line 112 of file InDetSecVtxTruthMatchTool.h.

112 {
113 if (matchInfo & (0x1 << ReconstructedSplit)) return true;
114 return false;
115 }

◆ isSeeded()

bool InDetSecVtxTruthMatchUtils::isSeeded ( int matchInfo)
inline

Definition at line 104 of file InDetSecVtxTruthMatchTool.h.

104 {
105 if (matchInfo & (0x1 << Seeded)) return true;
106 return false;
107 }

◆ isSplit()

bool InDetSecVtxTruthMatchUtils::isSplit ( int matchInfo)
inline

Definition at line 83 of file InDetSecVtxTruthMatchTool.h.

83 {
84 if (matchInfo & (0x1 << Split)) return true;
85 return false;
86 }