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 9 of file Key.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file Key.h.

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

Member Function Documentation

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

Definition at line 14 of file Key.h.

15  {
16  return (std::make_tuple( nucl_pdg, nu_pdg, iscc) <
17  std::make_tuple(k.nucl_pdg, k.nu_pdg, k.iscc));
18  }
int nucl_pdg
Definition: Key.h:26

Friends And Related Function Documentation

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

Definition at line 20 of file Key.h.

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

Member Data Documentation

bool genie::evtlib::Key::iscc

Definition at line 28 of file Key.h.

int genie::evtlib::Key::nu_pdg

Definition at line 27 of file Key.h.

int genie::evtlib::Key::nucl_pdg

Definition at line 26 of file Key.h.


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