MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
marley::TabulatedXSec::OptimizationMapKey Struct Reference

Public Member Functions

 OptimizationMapKey (int pdg_a, MultipoleLabel ml)
 
bool operator< (const OptimizationMapKey &omk) const
 

Public Attributes

MultipoleLabel ml_
 
int pdg_a_
 

Detailed Description

Definition at line 125 of file TabulatedXSec.hh.

Constructor & Destructor Documentation

◆ OptimizationMapKey()

marley::TabulatedXSec::OptimizationMapKey::OptimizationMapKey ( int pdg_a,
MultipoleLabel ml )
inline

Definition at line 126 of file TabulatedXSec.hh.

127 : pdg_a_( pdg_a ), ml_( ml ) {}

Member Function Documentation

◆ operator<()

bool marley::TabulatedXSec::OptimizationMapKey::operator< ( const OptimizationMapKey & omk) const
inline

Define the order of OptimizationMapKey objects so that they be used as keys for a std::map

Definition at line 131 of file TabulatedXSec.hh.

131 {
132 if ( this->pdg_a_ != omk.pdg_a_ ) {
133 return ( this->pdg_a_ < omk.pdg_a_ );
134 }
135 return this->ml_ < omk.ml_;
136 }

Member Data Documentation

◆ ml_

MultipoleLabel marley::TabulatedXSec::OptimizationMapKey::ml_

Definition at line 139 of file TabulatedXSec.hh.

◆ pdg_a_

int marley::TabulatedXSec::OptimizationMapKey::pdg_a_

Definition at line 138 of file TabulatedXSec.hh.


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