GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
genie::TabulatedHadronTensorModelI::HadronTensorID Struct Reference

Struct used to provide a unique ID for each tensor object. More...

#include <TabulatedHadronTensorModelI.h>

Public Member Functions

 HadronTensorID (int pdg=0, HadronTensorType_t typ=kHT_Undefined)
 
bool operator< (const HadronTensorID &other) const
 

Public Attributes

int target_pdg
 
HadronTensorType_t type
 

Detailed Description

Struct used to provide a unique ID for each tensor object.

Definition at line 64 of file TabulatedHadronTensorModelI.h.

Constructor & Destructor Documentation

genie::TabulatedHadronTensorModelI::HadronTensorID::HadronTensorID ( int  pdg = 0,
HadronTensorType_t  typ = kHT_Undefined 
)
inline

Member Function Documentation

bool genie::TabulatedHadronTensorModelI::HadronTensorID::operator< ( const HadronTensorID other) const
inline

Definition at line 71 of file TabulatedHadronTensorModelI.h.

References target_pdg, and type.

71  {
72  return (target_pdg < other.target_pdg)
73  || (target_pdg == other.target_pdg && type < other.type);
74  }

Member Data Documentation

int genie::TabulatedHadronTensorModelI::HadronTensorID::target_pdg
HadronTensorType_t genie::TabulatedHadronTensorModelI::HadronTensorID::type

The documentation for this struct was generated from the following file: