#include <GIDI_settings.hh>
|
void | initialize (std::string const &label, int size, int length, double const *values) |
|
Definition at line 35 of file GIDI_settings.hh.
◆ GIDI_settings_group() [1/4]
GIDI_settings_group::GIDI_settings_group |
( |
std::string const & |
label = "empty" , |
|
|
int |
size = 0 |
|
) |
| |
Definition at line 14 of file GIDI_settings_group.cc.
void initialize(std::string const &label, int size, int length, double const *values)
◆ GIDI_settings_group() [2/4]
GIDI_settings_group::GIDI_settings_group |
( |
std::string const & |
label, |
|
|
int |
length, |
|
|
double const * |
values |
|
) |
| |
Definition at line 21 of file GIDI_settings_group.cc.
23 initialize( label, length, length, boundaries );
void initialize(std::string const &label, int size, int length, double const *values)
◆ GIDI_settings_group() [3/4]
GIDI_settings_group::GIDI_settings_group |
( |
std::string const & |
label, |
|
|
std::vector< double > const & |
boundaries |
|
) |
| |
Definition at line 28 of file GIDI_settings_group.cc.
30 int size1 = (int) boundaries.size( );
32 initialize( label, size1, size1, &(boundaries[0]) );
void initialize(std::string const &label, int size, int length, double const *values)
◆ GIDI_settings_group() [4/4]
Definition at line 37 of file GIDI_settings_group.cc.
39 initialize( group.mLabel, group.size( ), group.size( ), &(group.mBoundaries[0]) );
void initialize(std::string const &label, int size, int length, double const *values)
◆ ~GIDI_settings_group()
GIDI_settings_group::~GIDI_settings_group |
( |
| ) |
|
◆ getGroupIndexFromEnergy()
int GIDI_settings_group::getGroupIndexFromEnergy |
( |
double |
energy, |
|
|
bool |
encloseOutOfRange |
|
) |
| const |
Definition at line 63 of file GIDI_settings_group.cc.
65 int iMin = 0, iMid, iMax = (int)
mBoundaries.size( ), iMaxM1 = iMax - 1;
67 if( iMax == 0 )
return( -3 );
69 if( encloseOutOfRange )
return( 0 );
73 if( encloseOutOfRange )
return( iMax - 2 );
77 iMid = ( iMin + iMax ) >> 1;
78 if( iMid == iMin )
break;
85 if( iMin == iMaxM1 ) iMin--;
std::vector< double > mBoundaries
◆ getLabel()
std::string GIDI_settings_group::getLabel |
( |
| ) |
const |
|
inline |
◆ getNumberOfGroups()
int GIDI_settings_group::getNumberOfGroups |
( |
void |
| ) |
const |
|
inline |
◆ initialize()
void GIDI_settings_group::initialize |
( |
std::string const & |
label, |
|
|
int |
size, |
|
|
int |
length, |
|
|
double const * |
values |
|
) |
| |
|
private |
Definition at line 44 of file GIDI_settings_group.cc.
49 if( size1 < length ) size1 = length;
50 if( size1 < 0 ) size1 = 0;
52 for( i1 = 0; i1 < length; ++i1 )
mBoundaries[i1] = boundaries[i1];
std::vector< double > mBoundaries
◆ isLabel()
bool GIDI_settings_group::isLabel |
( |
std::string & |
label | ) |
const |
|
inline |
◆ operator[]()
double GIDI_settings_group::operator[] |
( |
int const |
index | ) |
const |
|
inline |
◆ pointer()
double const* GIDI_settings_group::pointer |
( |
void |
| ) |
const |
|
inline |
◆ print()
void GIDI_settings_group::print |
( |
bool |
outline = false , |
|
|
int |
valuesPerLine = 10 |
|
) |
| const |
Definition at line 91 of file GIDI_settings_group.cc.
96 std::cout <<
"GROUP: label = '" <<
mLabel <<
"': length = " << nbs << std::endl;
98 for(
int ib = 0; ib < nbs; ib++ ) {
101 if( ( ( ib + 1 ) % valuesPerLine ) == 0 ) std::cout << std::endl;
103 if( nbs % valuesPerLine ) std::cout << std::endl;
std::vector< double > mBoundaries
◆ setFromCDoubleArray()
void GIDI_settings_group::setFromCDoubleArray |
( |
int |
length, |
|
|
double * |
values |
|
) |
| |
◆ size()
int GIDI_settings_group::size |
( |
void |
| ) |
const |
|
inline |
◆ mBoundaries
std::vector<double> GIDI_settings_group::mBoundaries |
|
private |
◆ mLabel
std::string GIDI_settings_group::mLabel |
|
private |
The documentation for this class was generated from the following files: