icemc
|
Reads in and stores input settings for the run. More...
#include <Settings.h>
Public Member Functions | |
Settings () | |
~Settings () | |
void | Initialize () |
void | printAllKeyValuePairStrings () |
void | getSetting (const char *key, int &value, bool nonag=false) |
void | getSetting (const char *key, float &value, bool nonag=false) |
void | getSetting (const char *key, double &value, bool nonag=false) |
void | getSetting (const char *key, std::string &value, bool nonag=false) |
void | getSetting (const char *key, vector< int > &valueArray, bool nonag=false) |
void | getSetting (const char *key, vector< float > &valueArray, bool nonag=false) |
void | getSetting (const char *key, vector< double > &valueArray, bool nonag=false) |
void | ReadInputs (const char *fileName, ofstream &foutput, int &NNU, double &RANDOMISEPOL) |
void | ApplyInputs (Anita *anita1, Secondaries *sec1, Signal *sig1, Balloon *bn1, Ray *ray1) |
ClassDef (Settings, 2) | |
Private Types | |
typedef std::map< TString, TString > | kvpMap |
Private Member Functions | |
Bool_t | newKvpPassesSanityChecks (const TString &key, const TString &value, const char *fileName, int lineNum) |
void | complainAboutNotFindingKey (const TString &key) |
void | parseValueArray (const char *valueString, vector< int > &values) |
void | parseValueArray (const char *valueString, vector< float > &values) |
void | parseValueArray (const char *valueString, vector< double > &values) |
void | parseSettingsFile (const char *fileName, ofstream &outputFile) |
Private Attributes | |
kvpMap | keyValuePairStrings |
vector< double > | efficiencyScanOffAxisAttenuations |
vector< double > | efficiencyScanPhiSectorDelay |
vector< double > | efficiencyScanRingDelay |
vector< int > | efficiencyScanRingsUsed |
vector< int > | efficiencyScanApplyRingDelay |
vector< int > | whichTUFFsON |
vector< double > | tempThresholds |
vector< double > | bandLowEdgesMHz |
vector< double > | bandHighEdgesMHz |
vector< int > | requiredBands |
vector< int > | allowedBands |
vector< double > | notchFilterLimitsMHz |
vector< int > | channelRequirePol |
vector< int > | channelAllowedPol |
Reads in and stores input settings for the run.
|
private |
Settings::Settings | ( | ) |
Default constructor
Settings::~Settings | ( | ) |
Default destructor
void Settings::ApplyInputs | ( | Anita * | anita1, |
Secondaries * | sec1, | ||
Signal * | sig1, | ||
Balloon * | bn1, | ||
Ray * | ray1 | ||
) |
Settings::ClassDef | ( | Settings | , |
2 | |||
) |
|
private |
void Settings::getSetting | ( | const char * | key, |
int & | value, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
float & | value, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
double & | value, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
std::string & | value, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
vector< int > & | valueArray, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
vector< float > & | valueArray, | ||
bool | nonag = false |
||
) |
void Settings::getSetting | ( | const char * | key, |
vector< double > & | valueArray, | ||
bool | nonag = false |
||
) |
void Settings::Initialize | ( | ) |
Set member variables to default values
|
private |
Perform some basic checks on the key value pair parsed on this line Prints an appropriate warning message if there was a problem Gets it own function as the warnings are a little verbose
key | is the key (Setting name) |
value | is the value (Setting value) |
fileName | is the name of the input.conf file |
lineNum | is the line being parsed. |
|
private |
Copies the contents of a yaml settings file into internal memory as strings Later on these strings get turned into ints, floats, doubles...
fileName | the name of the settings file to read |
|
private |
|
private |
|
private |
void Settings::printAllKeyValuePairStrings | ( | ) |
Print all entries in the config key/value pair string map.
For debugging and testing
void Settings::ReadInputs | ( | const char * | fileName, |
ofstream & | foutput, | ||
int & | NNU, | ||
double & | RANDOMISEPOL | ||
) |
int Settings::ADDCW |
int Settings::ALL_SKY_MAP |
|
private |
int Settings::ANITAVERSION |
int Settings::antennaclump |
int Settings::APPLYIMPULSERESPONSEDIGITIZER |
int Settings::APPLYIMPULSERESPONSETRIGGER |
int Settings::askaryanParameterization |
int Settings::ATMOSPHERE |
|
private |
int Settings::BANDING |
|
private |
int Settings::BN_ALTITUDE |
int Settings::BN_LATITUDE |
int Settings::BN_LONGITUDE |
int Settings::BORESIGHTS |
double Settings::BW |
double Settings::BW_SEAVEYS |
int Settings::CENTER |
whether or not to center one phi sector of the payload on the incoming signal (for making signal efficiency curves)
double Settings::CHANCEINHELL_FACTOR |
|
private |
|
private |
int Settings::CHMASKING |
double Settings::COHERENT_THRESHOLD |
int Settings::CONSTANTCRUST |
int Settings::CONSTANTICETHICKNESS |
int Settings::CONSTANTY |
double Settings::CUSTOM_DEC |
double Settings::CUSTOM_GAMMA |
std::string Settings::CUSTOM_NAME |
double Settings::CUSTOM_RA |
double Settings::CUTONWEIGHTPROBS |
double Settings::CUTONWEIGHTS |
int Settings::CYLINDRICALSYMMETRY |
bool Settings::DEBUG |
double Settings::DEC_CUT |
int Settings::DISCONES |
|
private |
|
private |
|
private |
|
private |
|
private |
int Settings::EPOLRX2ZERO |
int Settings::EVENTSMAP |
double Settings::EXPONENT |
int Settings::FILLRAYTREES |
int Settings::FIRN |
int Settings::FIXEDELEVATION |
int Settings::FLATSURFACE |
int Settings::FORSECKEL |
double Settings::FREQ_HIGH |
double Settings::FREQ_HIGH_SEAVEYS |
double Settings::FREQ_LOW |
lowest frequency
double Settings::FREQ_LOW_SEAVEYS |
int Settings::GAINS |
int Settings::HIST |
int Settings::HIST_MAX_ENTRIES |
double Settings::HORIZON_OFFSET |
int Settings::horizontal_banana_points |
int Settings::HPOLRX2ZERO |
int Settings::ICE_MODEL |
int Settings::IGNORE_CROSSPOL |
double Settings::INCLINE_NADIR |
double Settings::INCLINE_TOPTHREE |
double Settings::INCLUDE_NADIRONLY |
double Settings::jamieFactor |
int Settings::JUSTVPOL |
|
private |
int Settings::LCPRCP |
int Settings::LCPRX2ZERO |
int Settings::MAKEVERTICAL |
double Settings::MAXHORIZON |
int Settings::MAXRAY |
int Settings::medium |
int Settings::MINBIAS |
int Settings::MINRAY |
int Settings::MOOREBAY |
int Settings::NANTENNAS |
int Settings::NBANDS |
double Settings::NDISCONES_PASS |
int Settings::NFOLD |
int Settings::NLAYERS |
int Settings::NOFZ |
int Settings::NOISEFROMFLIGHTDIGITIZER |
int Settings::NOISEFROMFLIGHTTRIGGER |
|
private |
int Settings::ONLYFINAL |
int Settings::PAYLOAD_USE_SPECIFIC_TIME |
int Settings::PAYLOAD_USE_SPECIFIC_TIME_DELTA |
int Settings::PERCENTBW |
int Settings::PHIMASKING |
int Settings::POL_SIGN_HACK |
int Settings::PULSER |
int Settings::RANDOMIZE_BN_ORIENTATION |
int Settings::RCPRX2ZERO |
int Settings::REMOVEPOLARIZATION |
int Settings::REQUIRE_CENTRE |
|
private |
int Settings::ROUGHNESS |
double Settings::ROUGHSIZE |
int Settings::SAVE_TRUTH_NU_TREE |
int Settings::SCALEDOWNEPOLRX1 |
int Settings::SCALEDOWNEPOLRX2 |
int Settings::SCALEDOWNHPOLRX1 |
int Settings::SCALEDOWNHPOLRX2 |
int Settings::SCALEDOWNLCPRX1 |
double Settings::SCALEFACTOREPOLRX2 |
double Settings::SCREENEDGELENGTH |
double Settings::SCREENSTEPSIZE |
int Settings::SECONDARIES |
int Settings::SEED |
int Settings::SHOWERTYPE |
double Settings::SIGMA_FACTOR |
double Settings::SIGMA_THETA |
int Settings::SIGMAPARAM |
int Settings::SIGNAL_FLUCT |
int Settings::SKIPCUTS |
int Settings::SLAC |
double Settings::SLAC_DEPTH |
double Settings::SLAC_HORIZ_DEPTH |
double Settings::SLAC_HORIZDIST |
double Settings::SLACICELENGTH |
double Settings::SLACSLOPE |
int Settings::SLOPEY |
double Settings::SLOPEYSIZE |
std::string Settings::SOURCE |
double Settings::SOURCE_MAX_E |
double Settings::SOURCE_MIN_E |
int Settings::SOURCE_SKIP_WHEN_NONE |
int Settings::SOURCE_USE_EXPONENT |
int Settings::SPECIFIC_NU_POSITION |
double Settings::SPECIFIC_NU_POSITION_ALTITUDE |
double Settings::SPECIFIC_NU_POSITION_DISTANCE |
double Settings::SPECIFIC_NU_POSITION_LATITUDE |
double Settings::SPECIFIC_NU_POSITION_LONGITUDE |
int Settings::TAUDECAY |
int Settings::taumodes |
|
private |
double Settings::THERMALNOISE_FACTOR |
double Settings::THETA_TH_FACTOR |
int Settings::trigEffScanPhi |
int Settings::TRIGGEREFFSCAN |
int Settings::TRIGGEREFFSCAPULSE |
int Settings::TRIGGERSCHEME |
int Settings::trigRequirements[4] |
int Settings::TRIGTYPE |
int Settings::TUFFSTATUS |
double Settings::UNBIASED_CHORD_STEP_M |
double Settings::UNBIASED_PS_MAX_DISTANCE_KM |
int Settings::UNBIASED_SELECTION |
int Settings::USEDARTBOARD |
int Settings::USEDEADTIME |
int Settings::USEDIRECTIONWEIGHTS |
int Settings::useLPM |
int Settings::USEPOSITIONWEIGHTS |
int Settings::USETIMEDEPENDENTTHRESHOLDS |
int Settings::VARIABLE_ATTEN |
int Settings::vertical_banana_points |
int Settings::WEIGHTABSORPTION |
int Settings::WHICH |
std::string Settings::WHICH_END_TIME |
std::string Settings::WHICH_SOURCES |
std::string Settings::WHICH_START_TIME |
std::string Settings::WHICH_SUBTYPE |
int Settings::WHICHPATH |
int Settings::WHICHRAYS |
|
private |
int Settings::WRITE_FILE |
int Settings::WRITEPOSFILE |
int Settings::YPARAM |
int Settings::ZEROSIGNAL |