ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::EgammaDetails Namespace Reference

Enumerations

enum  ConversionType

Functions

ConversionType conversionType (const bool hasTrk1, const bool hasTrk2, const std::uint8_t nSiHits1, const std::uint8_t nSiHits2)
 return the photon conversion type (see EgammaEnums)
bool isConvertedPhoton (const bool excludeTRT, const float eta, const std::size_t nVertices, const ConversionType conversionType)
 is the object a converted photon

Enumeration Type Documentation

◆ ConversionType

Definition at line 268 of file EgammaEnums.h.

269{
271 unconverted = 0,
272
274 singleSi = 1,
275
277 singleTRT = 2,
278
280 doubleSi = 3,
281
283 doubleTRT = 4,
284
286 doubleSiTRT = 5,
287
289 NumberOfVertexConversionTypes
290};

Function Documentation

◆ conversionType()

ConversionType xAOD::EgammaDetails::conversionType ( const bool hasTrk1,
const bool hasTrk2,
const std::uint8_t nSiHits1,
const std::uint8_t nSiHits2 )
inline

return the photon conversion type (see EgammaEnums)

Definition at line 40 of file EgammaDetails.h.

40 {
41
42 if (!hasTrk1) {return xAOD::EgammaParameters::unconverted;}
43
44 if (!hasTrk2)
46
47 if (nSiHits1 && nSiHits2){
49 }
50 if (nSiHits1 || nSiHits2){
52 }
53 else{
55 }
56 }
@ singleSi
one track only, with Si hits
@ doubleTRT
two tracks, none with Si hits (TRT only)
@ unconverted
unconverted photon
@ singleTRT
one track only, no Si hits (TRT only)
@ doubleSi
two tracks, both with Si hits
@ doubleSiTRT
two tracks, only one with Si hits

◆ isConvertedPhoton()

bool xAOD::EgammaDetails::isConvertedPhoton ( const bool excludeTRT,
const float eta,
const std::size_t nVertices,
const ConversionType conversionType )
inline

is the object a converted photon

Definition at line 59 of file EgammaDetails.h.

59 {
60 const bool hasVertices = nVertices > 0;
61 if (excludeTRT) {
62 // special case for Run3: consider unconv if TRT Conv in the barrel
64 const bool isTRTConv = (conversionType == singleTRT) || (conversionType == doubleTRT);
65 return hasVertices && (std::abs(eta) > 0.8 || !isTRTConv);
66 }
67 return hasVertices;
68 }
Scalar eta() const
pseudorapidity method
ConversionType conversionType(const bool hasTrk1, const bool hasTrk2, const std::uint8_t nSiHits1, const std::uint8_t nSiHits2)
return the photon conversion type (see EgammaEnums)