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 68 of file InDetSecVtxTruthMatchTool.h.

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

◆ VertexMatchOriginType

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

Definition at line 46 of file InDetSecVtxTruthMatchTool.h.

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

◆ VertexMatchType

Enumerator
Matched 
Merged 
Split 
Fake 
Other 

Definition at line 34 of file InDetSecVtxTruthMatchTool.h.

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

Function Documentation

◆ isAccepted()

bool InDetSecVtxTruthMatchUtils::isAccepted ( int matchInfo)
inline

Definition at line 101 of file InDetSecVtxTruthMatchTool.h.

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

◆ isFake()

bool InDetSecVtxTruthMatchUtils::isFake ( int matchInfo)
inline

Definition at line 88 of file InDetSecVtxTruthMatchTool.h.

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

◆ isMatched()

bool InDetSecVtxTruthMatchUtils::isMatched ( int matchInfo)
inline

Definition at line 76 of file InDetSecVtxTruthMatchTool.h.

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

◆ isMerged()

bool InDetSecVtxTruthMatchUtils::isMerged ( int matchInfo)
inline

Definition at line 80 of file InDetSecVtxTruthMatchTool.h.

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

◆ isOriginType()

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

Definition at line 118 of file InDetSecVtxTruthMatchTool.h.

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

◆ isOther()

bool InDetSecVtxTruthMatchUtils::isOther ( int matchInfo)
inline

Definition at line 92 of file InDetSecVtxTruthMatchTool.h.

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

◆ isReconstructable()

bool InDetSecVtxTruthMatchUtils::isReconstructable ( int matchInfo)
inline

Definition at line 97 of file InDetSecVtxTruthMatchTool.h.

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

◆ isReconstructed()

bool InDetSecVtxTruthMatchUtils::isReconstructed ( int matchInfo)
inline

Definition at line 109 of file InDetSecVtxTruthMatchTool.h.

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

◆ isReconstructedSplit()

bool InDetSecVtxTruthMatchUtils::isReconstructedSplit ( int matchInfo)
inline

Definition at line 113 of file InDetSecVtxTruthMatchTool.h.

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

◆ isSeeded()

bool InDetSecVtxTruthMatchUtils::isSeeded ( int matchInfo)
inline

Definition at line 105 of file InDetSecVtxTruthMatchTool.h.

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

◆ isSplit()

bool InDetSecVtxTruthMatchUtils::isSplit ( int matchInfo)
inline

Definition at line 84 of file InDetSecVtxTruthMatchTool.h.

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