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

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
26  TauDecay,
28  OtherDecay,
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  }

◆ 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  }

◆ 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  }

◆ 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  }
InDet::TrkOrigin::StrangeMesonDecay
@ StrangeMesonDecay
Definition: InDetTrackTruthOriginDefs.h:23
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
InDet::TrkOrigin::isFromD
bool isFromD(int origin)
from D decay chain including B-->D
Definition: InDetTrackTruthOriginDefs.h:117
InDet::TrkOrigin::TauDecay
@ TauDecay
Definition: InDetTrackTruthOriginDefs.h:26
InDet::TrkOrigin::KshortDecay
@ KshortDecay
Definition: InDetTrackTruthOriginDefs.h:22
InDet::TrkOrigin::DHadronDecay
@ DHadronDecay
Definition: InDetTrackTruthOriginDefs.h:33
InDet::TrkOrigin::OtherOrigin
@ OtherOrigin
Definition: InDetTrackTruthOriginDefs.h:37
InDet::ExclusiveOrigin::OtherSecondary
@ OtherSecondary
Definition: InDetTrackTruthOriginDefs.h:168
InDet::ExclusiveOrigin::Pileup
@ Pileup
Definition: InDetTrackTruthOriginDefs.h:161
InDet::TrkOrigin::BHadronDecay
@ BHadronDecay
Definition: InDetTrackTruthOriginDefs.h:32
InDet::TrkOrigin::StrangeBaryonDecay
@ StrangeBaryonDecay
Definition: InDetTrackTruthOriginDefs.h:25
InDet::TrkOrigin::isFromB
bool isFromB(int origin)
from B decay chain including B-->D
Definition: InDetTrackTruthOriginDefs.h:111
InDet::TrkOrigin::GammaConversion
@ GammaConversion
Definition: InDetTrackTruthOriginDefs.h:27
InDet::TrkOrigin::LambdaDecay
@ LambdaDecay
Definition: InDetTrackTruthOriginDefs.h:24
InDet::TrkOrigin::OtherDecay
@ OtherDecay
Definition: InDetTrackTruthOriginDefs.h:28
InDet::TrkOrigin::isFake
bool isFake(int origin)
Helper functions.
Definition: InDetTrackTruthOriginDefs.h:43
InDet::TrkOrigin::isSecondary
bool isSecondary(int origin)
from long living particle decays or gamma conversions or hadronic interactions and anything else with...
Definition: InDetTrackTruthOriginDefs.h:104
InDet::TrkOrigin::Fragmentation
@ Fragmentation
Definition: InDetTrackTruthOriginDefs.h:35
InDet::TrkOrigin::isPileup
bool isPileup(int origin)
from pileup
Definition: InDetTrackTruthOriginDefs.h:49
InDet::ExclusiveOrigin::Fake
@ Fake
Definition: InDetTrackTruthOriginDefs.h:162
InDet::TrkOrigin::HadronicInteraction
@ HadronicInteraction
Definition: InDetTrackTruthOriginDefs.h:29