ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::TrkOrigin Namespace Reference

Enumerations

enum  OriginType {
  Fake =0 , Pileup , KshortDecay , StrangeMesonDecay ,
  LambdaDecay , StrangeBaryonDecay , TauDecay , GammaConversion ,
  OtherDecay , HadronicInteraction , OtherSecondary , BHadronDecay ,
  DHadronDecay , Fragmentation , OtherOrigin
}

Functions

bool isFake (int origin)
 Helper functions.
bool isPileup (int origin)
 from pileup
bool isV0Decay (int origin)
 from V0
bool isKshortDecay (int origin)
 from Kshort decay
bool isLambdaDecay (int origin)
 from Lambda decay
bool isStrangeMesonDecay (int origin)
 from strange meson decay
bool isStrangeBaryonDecay (int origin)
 from strange baryon decay
bool isGammaConversion (int origin)
 from conversions
bool isHadronicInteraction (int origin)
 from hadronic interactions
bool isFromTau (int origin)
 from tau decay
bool isSecondary (int origin)
 from long living particle decays or gamma conversions or hadronic interactions and anything else with barcode > 200000
bool isFromB (int origin)
 from B decay chain including B-->D
bool isFromD (int origin)
 from D decay chain including B-->D
bool isFromBNotFromD (int origin)
 from B decay chain excluding B-->D
bool isFromDNotFromB (int origin)
 from D decay chain excluding B-->D
bool isFromDfromB (int origin)
 from B-->D decay chain
bool isFragmentation (int origin)
 not from B, D, or any secondary
bool isPrimary (int origin)
 not fake, not pileup, not secondaries

Enumeration Type Documentation

◆ OriginType

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

Definition at line 16 of file InDetTrackTruthOriginDefs.h.

16 {
17 // fake
18 Fake=0,
19 // pileup
20 Pileup,
21 // secondaries
31 // B/D decays
34 // fragmentation
36 // unknown?
38 };

Function Documentation

◆ isFake()

bool InDet::TrkOrigin::isFake ( int origin)
inline

Helper functions.

fake

Definition at line 43 of file InDetTrackTruthOriginDefs.h.

43 {
44 if (origin & (0x1 << Fake)) return true;
45 return false;
46 }

◆ isFragmentation()

bool InDet::TrkOrigin::isFragmentation ( int origin)
inline

not from B, D, or any secondary

Definition at line 143 of file InDetTrackTruthOriginDefs.h.

143 {
144 if (origin & (0x1 << Fragmentation)) return true;
145 return false;
146 }

◆ isFromB()

bool InDet::TrkOrigin::isFromB ( int origin)
inline

from B decay chain including B-->D

Definition at line 111 of file InDetTrackTruthOriginDefs.h.

111 {
112 if (origin & (0x1 << BHadronDecay)) return true;
113 return false;
114 }

◆ isFromBNotFromD()

bool InDet::TrkOrigin::isFromBNotFromD ( int origin)
inline

from B decay chain excluding B-->D

Definition at line 123 of file InDetTrackTruthOriginDefs.h.

123 {
124 if (isFromD(origin)) return false;
125 if (origin & (0x1 << BHadronDecay)) return true;
126 return false;
127 }
bool isFromD(int origin)
from D decay chain including B-->D

◆ isFromD()

bool InDet::TrkOrigin::isFromD ( int origin)
inline

from D decay chain including B-->D

Definition at line 117 of file InDetTrackTruthOriginDefs.h.

117 {
118 if (origin & (0x1 << DHadronDecay)) return true;
119 return false;
120 }

◆ isFromDfromB()

bool InDet::TrkOrigin::isFromDfromB ( int origin)
inline

from B-->D decay chain

Definition at line 137 of file InDetTrackTruthOriginDefs.h.

137 {
138 if (isFromB(origin) && isFromD(origin)) return true;
139 return false;
140 }
bool isFromB(int origin)
from B decay chain including B-->D

◆ isFromDNotFromB()

bool InDet::TrkOrigin::isFromDNotFromB ( int origin)
inline

from D decay chain excluding B-->D

Definition at line 130 of file InDetTrackTruthOriginDefs.h.

130 {
131 if (isFromB(origin)) return false;
132 if (origin & (0x1 << DHadronDecay)) return true;
133 return false;
134 }

◆ isFromTau()

bool InDet::TrkOrigin::isFromTau ( int origin)
inline

from tau decay

Definition at line 98 of file InDetTrackTruthOriginDefs.h.

98 {
99 if (origin & (0x1 << TauDecay)) return true;
100 return false;
101 }

◆ isGammaConversion()

bool InDet::TrkOrigin::isGammaConversion ( int origin)
inline

from conversions

Definition at line 86 of file InDetTrackTruthOriginDefs.h.

86 {
87 if (origin & (0x1 << GammaConversion)) return true;
88 return false;
89 }

◆ isHadronicInteraction()

bool InDet::TrkOrigin::isHadronicInteraction ( int origin)
inline

from hadronic interactions

Definition at line 92 of file InDetTrackTruthOriginDefs.h.

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

◆ isKshortDecay()

bool InDet::TrkOrigin::isKshortDecay ( int origin)
inline

from Kshort decay

Definition at line 62 of file InDetTrackTruthOriginDefs.h.

62 {
63 if (origin & (0x1 << KshortDecay)) return true;
64 return false;
65 }

◆ isLambdaDecay()

bool InDet::TrkOrigin::isLambdaDecay ( int origin)
inline

from Lambda decay

Definition at line 68 of file InDetTrackTruthOriginDefs.h.

68 {
69 if (origin & (0x1 << LambdaDecay)) return true;
70 return false;
71 }

◆ isPileup()

bool InDet::TrkOrigin::isPileup ( int origin)
inline

from pileup

Definition at line 49 of file InDetTrackTruthOriginDefs.h.

49 {
50 if (origin & (0x1 << Pileup)) return true;
51 return false;
52 }

◆ isPrimary()

bool InDet::TrkOrigin::isPrimary ( int origin)
inline

not fake, not pileup, not secondaries

Definition at line 149 of file InDetTrackTruthOriginDefs.h.

149 {
150 if (isFake(origin)) return false;
151 if (isPileup(origin)) return false;
152 if (isSecondary(origin)) return false;
153 if (origin & (0x1 << OtherOrigin)) return false;
154 return true;
155 }
bool isPileup(int origin)
from pileup
bool isSecondary(int origin)
from long living particle decays or gamma conversions or hadronic interactions and anything else with...
bool isFake(int origin)
Helper functions.

◆ isSecondary()

bool InDet::TrkOrigin::isSecondary ( int origin)
inline

from long living particle decays or gamma conversions or hadronic interactions and anything else with barcode > 200000

Definition at line 104 of file InDetTrackTruthOriginDefs.h.

104 {
105 static constexpr auto bit=[](int bitpos){return 0x1<<bitpos;};
106 static constexpr int isSecondaryMask=bit(StrangeMesonDecay)|bit(StrangeBaryonDecay)|bit(GammaConversion)|bit(HadronicInteraction)|bit(OtherDecay)|bit(OtherSecondary);
107 return (origin & isSecondaryMask);
108 }

◆ isStrangeBaryonDecay()

bool InDet::TrkOrigin::isStrangeBaryonDecay ( int origin)
inline

from strange baryon decay

Definition at line 80 of file InDetTrackTruthOriginDefs.h.

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

◆ isStrangeMesonDecay()

bool InDet::TrkOrigin::isStrangeMesonDecay ( int origin)
inline

from strange meson decay

Definition at line 74 of file InDetTrackTruthOriginDefs.h.

74 {
75 if (origin & (0x1 << StrangeMesonDecay)) return true;
76 return false;
77 }

◆ isV0Decay()

bool InDet::TrkOrigin::isV0Decay ( int origin)
inline

from V0

Definition at line 55 of file InDetTrackTruthOriginDefs.h.

55 {
56 if (origin & (0x1 << KshortDecay)) return true;
57 if (origin & (0x1 << LambdaDecay)) return true;
58 return false;
59 }