ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
xAOD::TruthEvent_v1::PdfInfo Struct Reference

Helper struct holding a full set of PDF info values. More...

#include <TruthEvent_v1.h>

Collaboration diagram for xAOD::TruthEvent_v1::PdfInfo:

Public Member Functions

 PdfInfo ()
 Constructor to set (invalid) defaults. More...
 
bool valid () const
 Check if all the variables in the object are valid. More...
 

Public Attributes

int pdgId1
 
int pdgId2
 
int pdfId1
 
int pdfId2
 
float x1
 
float x2
 
float Q
 
float xf1
 
float xf2
 

Detailed Description

Helper struct holding a full set of PDF info values.

Definition at line 100 of file TruthEvent_v1.h.

Constructor & Destructor Documentation

◆ PdfInfo()

xAOD::TruthEvent_v1::PdfInfo::PdfInfo ( )

Constructor to set (invalid) defaults.

Definition at line 99 of file TruthEvent_v1.cxx.

100  : pdgId1( 0 ), pdgId2( 0 ), pdfId1( -1 ), pdfId2( -1 ),
101  x1( NAN ), x2( NAN ), Q( NAN ), xf1( NAN ), xf2( NAN ) {
102 
103  }

Member Function Documentation

◆ valid()

bool xAOD::TruthEvent_v1::PdfInfo::valid ( ) const

Check if all the variables in the object are valid.

Definition at line 105 of file TruthEvent_v1.cxx.

105  {
106 
107  return ( ( pdgId1 != 0 ) && ( pdgId2 != 0 ) &&
108  ( pdfId1 >= 0 ) && ( pdfId2 >= 0 ) &&
109  ( ! std::isnan( x1 ) ) && ( ! std::isnan( x2 ) ) &&
110  ( ! std::isnan( Q ) ) &&
111  ( ! std::isnan( xf1 ) ) && ( ! std::isnan( xf2 ) ) );
112  }

Member Data Documentation

◆ pdfId1

int xAOD::TruthEvent_v1::PdfInfo::pdfId1

Definition at line 110 of file TruthEvent_v1.h.

◆ pdfId2

int xAOD::TruthEvent_v1::PdfInfo::pdfId2

Definition at line 111 of file TruthEvent_v1.h.

◆ pdgId1

int xAOD::TruthEvent_v1::PdfInfo::pdgId1

Definition at line 108 of file TruthEvent_v1.h.

◆ pdgId2

int xAOD::TruthEvent_v1::PdfInfo::pdgId2

Definition at line 109 of file TruthEvent_v1.h.

◆ Q

float xAOD::TruthEvent_v1::PdfInfo::Q

Definition at line 114 of file TruthEvent_v1.h.

◆ x1

float xAOD::TruthEvent_v1::PdfInfo::x1

Definition at line 112 of file TruthEvent_v1.h.

◆ x2

float xAOD::TruthEvent_v1::PdfInfo::x2

Definition at line 113 of file TruthEvent_v1.h.

◆ xf1

float xAOD::TruthEvent_v1::PdfInfo::xf1

Definition at line 115 of file TruthEvent_v1.h.

◆ xf2

float xAOD::TruthEvent_v1::PdfInfo::xf2

Definition at line 116 of file TruthEvent_v1.h.


The documentation for this struct was generated from the following files:
xAOD::TruthEvent_v1::PdfInfo::xf1
float xf1
Definition: TruthEvent_v1.h:115
xAOD::TruthEvent_v1::PdfInfo::pdfId1
int pdfId1
Definition: TruthEvent_v1.h:110
xAOD::TruthEvent_v1::PdfInfo::pdgId1
int pdgId1
Definition: TruthEvent_v1.h:108
xAOD::TruthEvent_v1::PdfInfo::x2
float x2
Definition: TruthEvent_v1.h:113
xAOD::TruthEvent_v1::PdfInfo::pdfId2
int pdfId2
Definition: TruthEvent_v1.h:111
xAOD::TruthEvent_v1::PdfInfo::pdgId2
int pdgId2
Definition: TruthEvent_v1.h:109
xAOD::TruthEvent_v1::PdfInfo::x1
float x1
Definition: TruthEvent_v1.h:112
xAOD::TruthEvent_v1::PdfInfo::Q
float Q
Definition: TruthEvent_v1.h:114
xAOD::TruthEvent_v1::PdfInfo::xf2
float xf2
Definition: TruthEvent_v1.h:116