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

Enumerations

enum  ExclusiveOrigin : int {
  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 199 of file InDetTrackTruthOriginDefs.h.

199 {
200 /*
201 The input origin is a bitwise flag.
202 Here we use the inclusive origin to build an exclusive origin label as an integer.
203 */
204
205 if ( InDet::TrkOrigin::isPileup(origin) ) {
207 }
208 else if ( InDet::TrkOrigin::isFake(origin) ) {
210 }
211 else if ( InDet::TrkOrigin::isFromBNotFromD(origin) ) {
213 }
214 else if ( InDet::TrkOrigin::isFromDfromB(origin) ) {
216 }
217 else if ( InDet::TrkOrigin::isFromDNotFromB(origin) ) {
219 }
220 else if ( InDet::TrkOrigin::isFromTau(origin) ) {
222 }
223 else if ( InDet::TrkOrigin::isSecondary(origin) ) {
225 }
226 else if ( InDet::TrkOrigin::isPrimary(origin) ) {
228 }
229
230 // in _extremely_ rare cases, handle tracks with unknown origin (OtherOrigin)
232 }
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