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

#include <Key.h>

Public Member Functions

 Key (int _nucl_pdg, int _nu_pdg, bool _iscc)
 
bool operator< (const Key &k) const
 

Public Attributes

int nucl_pdg
 
int nu_pdg
 
bool iscc
 

Friends

std::ostream & operator<< (std::ostream &os, const Key &k)
 

Detailed Description

Definition at line 11 of file Key.h.

Constructor & Destructor Documentation

genie::evtlib::Key::Key ( int  _nucl_pdg,
int  _nu_pdg,
bool  _iscc 
)
inline

Definition at line 13 of file Key.h.

14  : nucl_pdg(_nucl_pdg), nu_pdg(_nu_pdg), iscc(_iscc) {}
int nucl_pdg
Definition: Key.h:28

Member Function Documentation

bool genie::evtlib::Key::operator< ( const Key k) const
inline

Definition at line 16 of file Key.h.

References iscc, nu_pdg, and nucl_pdg.

17  {
18  return (std::make_tuple( nucl_pdg, nu_pdg, iscc) <
19  std::make_tuple(k.nucl_pdg, k.nu_pdg, k.iscc));
20  }
int nucl_pdg
Definition: Key.h:28

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Key k 
)
friend

Definition at line 22 of file Key.h.

23  {
24  os << k.nu_pdg << " on " << k.nucl_pdg << " " << " via " << (k.iscc ? "CC" : "NC");
25  return os;
26  }

Member Data Documentation

bool genie::evtlib::Key::iscc

Definition at line 30 of file Key.h.

Referenced by operator<().

int genie::evtlib::Key::nu_pdg

Definition at line 29 of file Key.h.

Referenced by operator<().

int genie::evtlib::Key::nucl_pdg

Definition at line 28 of file Key.h.

Referenced by operator<().


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