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

Enumerations

enum  ExclusiveOrigin {
  Pileup = 0 , Fake = 1 , Primary = 2 , FromB = 3 ,
  FromBC = 4 , FromC = 5 , FromTau = 6 , OtherSecondary = 7
}

Functions

int getExclusiveOrigin (int origin)

Enumeration Type Documentation

◆ ExclusiveOrigin

Function Documentation

◆ getExclusiveOrigin()

int InDet::ExclusiveOrigin::getExclusiveOrigin ( int origin)
inline

Definition at line 171 of file InDetTrackTruthOriginDefs.h.

171 {
172 /*
173 The input origin is a bitwise flag.
174 Here we use the inclusive origin to build an exclusive origin label as an integer.
175 */
176
177 if ( InDet::TrkOrigin::isPileup(origin) ) {
179 }
180 else if ( InDet::TrkOrigin::isFake(origin) ) {
182 }
183 else if ( InDet::TrkOrigin::isFromBNotFromD(origin) ) {
185 }
186 else if ( InDet::TrkOrigin::isFromDfromB(origin) ) {
188 }
189 else if ( InDet::TrkOrigin::isFromDNotFromB(origin) ) {
191 }
192 else if ( InDet::TrkOrigin::isFromTau(origin) ) {
194 }
195 else if ( InDet::TrkOrigin::isSecondary(origin) ) {
197 }
198 else if ( InDet::TrkOrigin::isPrimary(origin) ) {
200 }
201
202 // in _extremely_ rare cases, handle tracks with unknown origin (OtherOrigin)
204 }
bool isPileup(int origin)
from pileup
bool isFromBNotFromD(int origin)
from B decay chain excluding B-->D
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...
bool isPrimary(int origin)
not fake, not pileup, not secondaries
bool isFromDNotFromB(int origin)
from D decay chain excluding B-->D
bool isFake(int origin)
Helper functions.
bool isFromDfromB(int origin)
from B-->D decay chain