ATLAS Offline Software
Typedefs | Enumerations | Functions
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

Definition at line 30 of file InDetSecVtxTruthMatchTool.h.

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,
53  TauDecay,
55  OtherDecay,
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  }
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:215
InDetSecVtxTruthMatchUtils::Pileup
@ Pileup
Definition: InDetSecVtxTruthMatchTool.h:48
InDetSecVtxTruthMatchUtils::ReconstructedSplit
@ ReconstructedSplit
Definition: InDetSecVtxTruthMatchTool.h:72
InDetSecVtxTruthMatchUtils::OtherSecondary
@ OtherSecondary
Definition: InDetSecVtxTruthMatchTool.h:57
InDetDD::Other
@ Other
Definition: DetectorDesign.h:42
InDetSecVtxTruthMatchUtils::HadronicInteraction
@ HadronicInteraction
Definition: InDetSecVtxTruthMatchTool.h:56
InDetSecVtxTruthMatchUtils::Signal
@ Signal
Definition: InDetSecVtxTruthMatchTool.h:62
InDetSecVtxTruthMatchUtils::Fake
@ Fake
Definition: InDetSecVtxTruthMatchTool.h:37
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
InDetSecVtxTruthMatchUtils::BHadronDecay
@ BHadronDecay
Definition: InDetSecVtxTruthMatchTool.h:58
InDetSecVtxTruthMatchUtils::Fragmentation
@ Fragmentation
Definition: InDetSecVtxTruthMatchTool.h:60
InDetSecVtxTruthMatchUtils::Reconstructable
@ Reconstructable
Definition: InDetSecVtxTruthMatchTool.h:68
InDetSecVtxTruthMatchUtils::LambdaDecay
@ LambdaDecay
Definition: InDetSecVtxTruthMatchTool.h:51
InDetSecVtxTruthMatchUtils::StrangeMesonDecay
@ StrangeMesonDecay
Definition: InDetSecVtxTruthMatchTool.h:50
InDetSecVtxTruthMatchUtils::OtherDecay
@ OtherDecay
Definition: InDetSecVtxTruthMatchTool.h:55
Split
#define Split(a, ahi, alo)
Definition: PolygonTriangulator.cxx:319
InDetSecVtxTruthMatchUtils::KshortDecay
@ KshortDecay
Definition: InDetSecVtxTruthMatchTool.h:49
InDetSecVtxTruthMatchUtils::Reconstructed
@ Reconstructed
Definition: InDetSecVtxTruthMatchTool.h:71
InDetSecVtxTruthMatchUtils::Seeded
@ Seeded
Definition: InDetSecVtxTruthMatchTool.h:70
InDetSecVtxTruthMatchUtils::OtherOrigin
@ OtherOrigin
Definition: InDetSecVtxTruthMatchTool.h:61
InDetSecVtxTruthMatchUtils::GammaConversion
@ GammaConversion
Definition: InDetSecVtxTruthMatchTool.h:54
InDetSecVtxTruthMatchUtils::Merged
@ Merged
Definition: InDetSecVtxTruthMatchTool.h:35
InDetSecVtxTruthMatchUtils::Matched
@ Matched
Definition: InDetSecVtxTruthMatchTool.h:34
InDetSecVtxTruthMatchUtils::StrangeBaryonDecay
@ StrangeBaryonDecay
Definition: InDetSecVtxTruthMatchTool.h:52
InDetSecVtxTruthMatchUtils::TauDecay
@ TauDecay
Definition: InDetSecVtxTruthMatchTool.h:53
InDetSecVtxTruthMatchUtils::FakeOrigin
@ FakeOrigin
Definition: InDetSecVtxTruthMatchTool.h:47
InDetSecVtxTruthMatchUtils::Accepted
@ Accepted
Definition: InDetSecVtxTruthMatchTool.h:69
InDetSecVtxTruthMatchUtils::DHadronDecay
@ DHadronDecay
Definition: InDetSecVtxTruthMatchTool.h:59