GENIEGenerator
Loading...
Searching...
No Matches
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

◆ HadronTensorID()

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

Member Function Documentation

◆ operator<()

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

Definition at line 71 of file TabulatedHadronTensorModelI.h.

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

References HadronTensorID(), target_pdg, and type.

Member Data Documentation

◆ target_pdg

◆ type


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