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

◆ Key()

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) {}

References iscc, nu_pdg, and nucl_pdg.

Referenced by operator<(), and operator<<.

Member Function Documentation

◆ operator<()

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

Definition at line 16 of file Key.h.

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

References iscc, Key(), nu_pdg, and nucl_pdg.

◆ operator<<

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 }

References iscc, Key(), nu_pdg, and nucl_pdg.

Member Data Documentation

◆ iscc

bool genie::evtlib::Key::iscc

Definition at line 30 of file Key.h.

Referenced by Key(), operator<(), and operator<<.

◆ nu_pdg

int genie::evtlib::Key::nu_pdg

Definition at line 29 of file Key.h.

Referenced by Key(), operator<(), and operator<<.

◆ nucl_pdg

int genie::evtlib::Key::nucl_pdg

Definition at line 28 of file Key.h.

Referenced by Key(), operator<(), and operator<<.


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