| 
    Jpp
    18.0.0
    
   the software that should make you happy 
   | 
 
Auxiliary class for parsing multiparticle fluxes. More...
#include <JEvtWeightToolkit.hh>
  
 Public Types | |
| typedef std::map< std::string,  JPropertiesElement >  | JMap_t | 
| typedef JPointer< JClass_t > | pointer_type | 
| typedef JStorage< JClass_t,  JMemory_t >  | storage_type | 
| typedef JMemory_t< JClass_t > | memory_type | 
Public Member Functions | |
| JFluxMapParser () | |
| Constructor.  More... | |
| JFluxMultiParticle | getMultiParticleFlux () const | 
| Get multiparticle flux function.  More... | |
| operator JFluxMultiParticle () const | |
| Conversion operator.  More... | |
| template<class T > | |
| void | put (const std::string &key, T &object) | 
| Put object at given key.  More... | |
| JProperties & | join (const JProperties &properties) | 
| Join properties objects.  More... | |
| JEquationParameters & | join (const JEquationParameters &value) | 
| Join equation parameters.  More... | |
| bool | read (const JEquation &equation) | 
| Read equation.  More... | |
| bool | read (const std::string &buffer) | 
| Read from input string.  More... | |
| std::istream & | read (std::istream &in) | 
| Read from input stream.  More... | |
| std::istream & | read (std::istream &in, const std::string &format) | 
| Read from input stream according given format.  More... | |
| template<class T > | |
| std::istream & | read (std::istream &in, T __begin, T __end) | 
| Read from input stream according given format.  More... | |
| std::ostream & | write (std::ostream &out) const | 
| Write the current parameter values.  More... | |
| std::ostream & | write (std::ostream &out, const std::string &format) | 
| Write to output stream according given format.  More... | |
| template<class T > | |
| std::ostream & | write (std::ostream &out, T __begin, T __end) | 
| Write to output stream according given format.  More... | |
| std::string | sed (const std::string &format, const std::string &prefix="", const std::string &postfix="") | 
| Stream editing of input format.  More... | |
| template<class T > | |
| const T & | getValue (const std::string &key) const | 
| Get value.  More... | |
| template<class T > | |
| T & | getValue (const std::string &key) | 
| Get value.  More... | |
| template<class T > | |
| void | setValue (const std::string &key, const T &value) | 
| Set value.  More... | |
| std::string | getString (const std::string &key) const | 
| Get string value.  More... | |
| std::ostream & | print (std::ostream &out) const | 
| Print the current parameter values.  More... | |
| const JEquationParameters & | getEquationParameters () const | 
| Get equation parameters.  More... | |
| void | setEquationParameters (const JEquationParameters &buffer) | 
| Set equation parameters.  More... | |
| const char | getDefaultSeparator () const | 
| Get default separator character.  More... | |
| const std::string & | getSeparator () const | 
| Get separator characters.  More... | |
| void | setSeparator (const std::string &sep) | 
| Set separator character(s).  More... | |
| const char | getDefaultEndOfLine () const | 
| Get default end of line character.  More... | |
| const char | getPreferredEndOfLine (const unsigned int index) const | 
| Get preferred end of line character.  More... | |
| const std::string & | getEndOfLine () const | 
| Get end of line characters.  More... | |
| void | setEndOfLine (const std::string &eol) | 
| Set end of line characters.  More... | |
| const char | getDefaultDivision () const | 
| Get default division character.  More... | |
| const std::string & | getDivision () const | 
| Get division characters.  More... | |
| void | setDivision (const std::string &div) | 
| Set division characters.  More... | |
| const char | getDefaultSkipLine () const | 
| Get default skip line character.  More... | |
| const std::string & | getSkipLine () const | 
| Get skip line characters.  More... | |
| void | setSkipLine (const std::string &skip) | 
| Set skip line characters.  More... | |
| void | setBrackets (const char left, const char right) | 
| Set brackets.  More... | |
| char | getLeftBracket () const | 
| Get left bracket.  More... | |
| char | getRightBracket () const | 
| Get right bracket.  More... | |
| const char | getDefaultWhiteSpace () const | 
| Get default white space character.  More... | |
| const std::string & | getWhiteSpace () const | 
| Get white space characters.  More... | |
| void | setWhiteSpace (const std::string &ws) | 
| Set white space characters.  More... | |
| bool | isSeparator (const char c) const | 
| Test for separator character.  More... | |
| bool | isEndOfLine (const char c) const | 
| Test for end of line character.  More... | |
| bool | isDivision (const char c) const | 
| Test for division character.  More... | |
| bool | isSkipLine (const char c) const | 
| Test for skip line character.  More... | |
| bool | isLeftBracket (const char c) const | 
| Test for left bracket character.  More... | |
| bool | isRightBracket (const char c) const | 
| Test for right bracket character.  More... | |
| bool | isWhiteSpace (const char c) const | 
| Test for white space character.  More... | |
| virtual void | configure (const JOscProb &oscProb) | 
| Configure oscillation probability function.  More... | |
| virtual double | getOscProb (const JOscChannel &oscChannel, const double energy, const double costh) const | 
| Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith angle.  More... | |
| const JSharedPointer & | getSharedPointer () const | 
| Get shared pointer.  More... | |
| JSharedPointer & | getSharedPointer () | 
| Get shared pointer.  More... | |
| void | setSharedPointer (const JSharedPointer &object) | 
| Set shared pointer.  More... | |
| virtual void | reset () override | 
| Reset pointer.  More... | |
| template<class T > | |
| void | reset (const JPointer< T > &pointer) | 
| Reset pointer.  More... | |
| void | reset (JClass_t *p) | 
| Reset pointer.  More... | |
| template<class T > | |
| void | set (const JPointer< T > &pointer) | 
| Set pointer.  More... | |
| void | initialise () | 
| Initialise counter.  More... | |
| void | attach (const JSharedCounter &object) | 
| Attach this counter to given shared counter object.  More... | |
| bool | detach () | 
| Detach.  More... | |
| const int | getCount () | 
| Get count.  More... | |
| void | recreate () | 
| Recreate object in memory.  More... | |
| void | create () | 
| Create object in memory.  More... | |
| void | create (const unsigned int size) | 
| Create array of objects in memory.  More... | |
| virtual JClass_t * | get () const override | 
| Get pointer.  More... | |
| JClass_t *const & | getReference () const | 
| Get rereference to internal pointer.  More... | |
| JClass_t *& | getReference () | 
| Get rereference to internal pointer.  More... | |
| virtual bool | equals (const JAbstractPointer &object) const | 
| Equals.  More... | |
| bool | is_valid () const | 
| Check validity of pointer.  More... | |
| JClass_t * | operator-> () const | 
| Smart pointer operator.  More... | |
| operator JClass_t * () const | |
| Type conversion operator.  More... | |
Static Public Member Functions | |
| static std::string | getKey (const std::string &buffer, const std::string &sep) | 
| Utility method to strip off all leading characters from a string until specified character(s).  More... | |
Public Attributes | |
| std::map< int, JFlatFlux > | flatFluxes | 
| Uniform flux functions.  More... | |
| std::map< int, JPowerLawFlux > | powerLawFluxes | 
| Power-law flux functions.  More... | |
| JNeutrinoTypeCollection | atmosphericFluxes | 
| Atmospheric neutrino flux functions.  More... | |
Static Public Attributes | |
| static int | debug | 
Protected Member Functions | |
| void | set (const JSharedPointer &object) | 
| Set pointer.  More... | |
| virtual void | set (JClass_t *p) override | 
| Set pointer.  More... | |
| void | release () | 
| Release memory.  More... | |
Protected Attributes | |
| std::string | sep | 
| std::string | eol | 
| std::string | div | 
| std::string | skip | 
| char | left | 
| char | right | 
| std::string | ws | 
| int * | counter | 
| JClass_t * | __p | 
| pointer to object  More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, JFluxMapParser &fluxMapParser) | 
| Stream input.  More... | |
| std::ostream & | operator<< (std::ostream &out, const JFluxMapParser &fluxMapParser) | 
| Stream output.  More... | |
Auxiliary class for parsing multiparticle fluxes.
Definition at line 148 of file JEvtWeightToolkit.hh.
      
  | 
  inherited | 
Definition at line 503 of file JProperties.hh.
      
  | 
  inherited | 
Definition at line 34 of file JSharedPointer.hh.
      
  | 
  inherited | 
Definition at line 35 of file JSharedPointer.hh.
      
  | 
  inherited | 
Definition at line 33 of file JStorage.hh.
      
  | 
  inline | 
Constructor.
Definition at line 155 of file JEvtWeightToolkit.hh.
      
  | 
  inline | 
Get multiparticle flux function.
Definition at line 168 of file JEvtWeightToolkit.hh.
      
  | 
  inline | 
Conversion operator.
Definition at line 205 of file JEvtWeightToolkit.hh.
      
  | 
  inlinestaticinherited | 
Utility method to strip off all leading characters from a string until specified character(s).
| buffer | input string | 
| sep | last character(s) to strip | 
Definition at line 515 of file JProperties.hh.
      
  | 
  inlineinherited | 
Put object at given key.
| key | key | 
| object | object | 
Definition at line 650 of file JProperties.hh.
      
  | 
  inlineinherited | 
Join properties objects.
| properties | properties | 
Definition at line 661 of file JProperties.hh.
      
  | 
  inlineinherited | 
Join equation parameters.
| value | equation parameters | 
Definition at line 325 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Read equation.
| equation | equation | 
Definition at line 677 of file JProperties.hh.
      
  | 
  inlineinherited | 
Read from input string.
| buffer | input string | 
Definition at line 738 of file JProperties.hh.
      
  | 
  inlineinherited | 
Read from input stream.
The input format is:
[<key><sub>]<key><sep><value><eol> [<key><sub>]<key><sep><value><eol>
In this, white spaces are ignored. The reading of key and value pairs is controlled by the JLANG::JEquationFacet class.
| in | input stream | 
Definition at line 760 of file JProperties.hh.
      
  | 
  inlineinherited | 
Read from input stream according given format.
For each key in the format specification, a corresponding value will be read from the input stream.
| in | input stream | 
| format | format | 
Definition at line 782 of file JProperties.hh.
      
  | 
  inlineinherited | 
Read from input stream according given format.
For each key in the format specification, a corresponding value will be read from the input stream.
| in | input stream | 
| __begin | begin of format | 
| __end | end of format | 
Definition at line 810 of file JProperties.hh.
      
  | 
  inlineinherited | 
Write the current parameter values.
The output format is
[<key><sub>]<key><sep><value><eol> [<key><sub>]<key><sep><value><eol>
in this, white spaces are omitted.
| out | output stream | 
Definition at line 845 of file JProperties.hh.
      
  | 
  inlineinherited | 
Write to output stream according given format.
For each key in the format specification, a corresponding value will be written to the output stream.
| out | output stream | 
| format | format | 
Definition at line 878 of file JProperties.hh.
      
  | 
  inlineinherited | 
Write to output stream according given format.
For each key in the format specification, a corresponding value will be written to the output stream.
| out | output stream | 
| __begin | begin of format | 
| __end | end of format | 
Definition at line 906 of file JProperties.hh.
      
  | 
  inlineinherited | 
Stream editing of input format.
For each key in the format specification, a corresponding value will be written to the output stream.
| format | format | 
| prefix | prefix key word | 
| postfix | postfix key word | 
Definition at line 941 of file JProperties.hh.
      
  | 
  inlineinherited | 
Get value.
| key | key | 
Definition at line 974 of file JProperties.hh.
      
  | 
  inlineinherited | 
Get value.
| key | key | 
Definition at line 992 of file JProperties.hh.
      
  | 
  inlineinherited | 
Set value.
| key | key | 
| value | value | 
Definition at line 1010 of file JProperties.hh.
      
  | 
  inlineinherited | 
Get string value.
| key | key | 
Definition at line 1027 of file JProperties.hh.
      
  | 
  inlineinherited | 
Print the current parameter values.
| out | output stream | 
Definition at line 1044 of file JProperties.hh.
      
  | 
  inlineinherited | 
Get equation parameters.
Definition at line 71 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set equation parameters.
| buffer | equation parameters | 
Definition at line 82 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get default separator character.
Definition at line 93 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get separator characters.
Definition at line 107 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set separator character(s).
| sep | separator between parameter and its value | 
Definition at line 118 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get default end of line character.
Definition at line 129 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get preferred end of line character.
| index | index | 
Definition at line 144 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get end of line characters.
Definition at line 160 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set end of line characters.
| eol | end of line character | 
Definition at line 171 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get default division character.
Definition at line 182 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get division characters.
Definition at line 196 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set division characters.
| div | division characters | 
Definition at line 207 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get default skip line character.
Definition at line 218 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get skip line characters.
Definition at line 232 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set skip line characters.
| skip | skip line characters | 
Definition at line 243 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set brackets.
| left | left bracket | 
| right | right bracket | 
Definition at line 255 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get default white space character.
Definition at line 289 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Get white space characters.
Definition at line 303 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Set white space characters.
| ws | white space characters | 
Definition at line 314 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for separator character.
| c | character | 
Definition at line 369 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for end of line character.
| c | character | 
Definition at line 381 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for division character.
| c | character | 
Definition at line 390 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for skip line character.
| c | character | 
Definition at line 402 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for left bracket character.
| c | character | 
Definition at line 414 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for right bracket character.
| c | character | 
Definition at line 426 of file JEquationParameters.hh.
      
  | 
  inlineinherited | 
Test for white space character.
| c | character | 
Definition at line 438 of file JEquationParameters.hh.
      
  | 
  inlinevirtualinherited | 
Configure oscillation probability function.
| oscProb | oscillation probability function | 
Definition at line 52 of file JOscProbHelper.hh.
      
  | 
  inlinevirtualinherited | 
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith angle.
| oscChannel | oscillation channel | 
| energy | neutrino energy [GeV] | 
| costh | cosine zenith angle | 
Definition at line 67 of file JOscProbHelper.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Set shared pointer.
| object | shared pointer | 
Definition at line 117 of file JSharedPointer.hh.
      
  | 
  inlineoverridevirtualinherited | 
Reset pointer.
The reference counter is decremented by one and the object pointed to previously is deleted when its reference counter is zero.
Reimplemented from JLANG::JStorage< JClass_t, JMemory_t >.
Definition at line 171 of file JSharedPointer.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineprotectedinherited | 
Set pointer.
The reference counter of the shared object pointed to is incremented by one.
| object | shared pointer | 
Definition at line 188 of file JSharedPointer.hh.
      
  | 
  inlineoverrideprotectedvirtualinherited | 
Set pointer.
The reference counter of the shared object pointed to is initialised to one.
| p | pointer to derived class object | 
Reimplemented from JLANG::JPointer< JClass_t >.
Definition at line 202 of file JSharedPointer.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Initialise counter.
Definition at line 33 of file JSharedCounter.hh.
      
  | 
  inlineinherited | 
Attach this counter to given shared counter object.
| object | shared counter | 
Definition at line 46 of file JSharedCounter.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Recreate object in memory.
A new object is created if no memory is allocated yet, else the previously created object is maintained.
Definition at line 57 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create object in memory.
The memory allocated by a previously created object will be released.
Definition at line 69 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create array of objects in memory.
The memory allocated by previously created objects will be released.
| size | number of elements | 
Definition at line 81 of file JStorage.hh.
      
  | 
  inlineprotectedinherited | 
Release memory.
Definition at line 91 of file JStorage.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get pointer.
Implements JLANG::JAbstractPointer< JClass_t >.
Reimplemented in JLANG::JMultiPointer< JTypeList< JHead_t, JTail_t > >, JLANG::JMultiPointer< JClass_t >, JLANG::JMultiPointer< JTail_t >, JLANG::JMultiPointer< JHead_t >, JLANG::JMultiPointer< T >, and JLANG::JMultiPointer< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 64 of file JPointer.hh.
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 119 of file JPointer.hh.
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 130 of file JPointer.hh.
      
  | 
  inlinevirtualinherited | 
Equals.
The equality is evaluated by comparison of the internal pointers.
| object | abstract pointer | 
Definition at line 50 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Check validity of pointer.
Definition at line 83 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Smart pointer operator.
Definition at line 112 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Type conversion operator.
Definition at line 126 of file JAbstractPointer.hh.
      
  | 
  friend | 
Stream input.
| in | input stream | 
| fluxMapParser | flux map parser | 
Definition at line 218 of file JEvtWeightToolkit.hh.
      
  | 
  friend | 
Stream output.
| out | output stream | 
| fluxMapParser | flux map parser | 
Definition at line 242 of file JEvtWeightToolkit.hh.
Uniform flux functions.
Definition at line 248 of file JEvtWeightToolkit.hh.
| std::map<int, JPowerLawFlux> JAANET::JFluxMapParser::powerLawFluxes | 
Power-law flux functions.
Definition at line 249 of file JEvtWeightToolkit.hh.
| JNeutrinoTypeCollection JAANET::JFluxMapParser::atmosphericFluxes | 
Atmospheric neutrino flux functions.
Definition at line 251 of file JEvtWeightToolkit.hh.
      
  | 
  protectedinherited | 
Definition at line 444 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 445 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 446 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 447 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 448 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 449 of file JEquationParameters.hh.
      
  | 
  protectedinherited | 
Definition at line 450 of file JEquationParameters.hh.
      
  | 
  staticinherited | 
debug level (default is off).
Definition at line 45 of file JMessage.hh.
      
  | 
  protectedinherited | 
Definition at line 94 of file JSharedCounter.hh.
      
  | 
  protectedinherited | 
pointer to object
Definition at line 136 of file JPointer.hh.
 1.8.5