GVldContext.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::GVldContext
5 
6 \brief Validity Context for an Event Generator
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created November 20, 2004
12 
13 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _GENERATOR_VALIDITY_CONTEXT_H_
20 #define _GENERATOR_VALIDITY_CONTEXT_H_
21 
22 #include <string>
23 #include <iostream>
24 
27 
28 using std::string;
29 using std::ostream;
30 
31 namespace genie {
32 
33 class GVldContext;
34 class Interaction;
35 
36 ostream & operator<< (ostream & stream, const GVldContext & vldc);
37 
38 class GVldContext {
39 
40 public :
41  GVldContext();
42  ~GVldContext();
43 
44  void Decode (string encoded_values);
45 
46  double Emin (void) const { return fEmin; }
47  double Emax (void) const { return fEmax; }
48 
49  void Print (ostream & stream) const;
50 
51  friend ostream & operator<< (ostream & stream, const GVldContext & vldc);
52 
53 private:
54 
55  void Init(void);
56 
57  void DecodeENERGY (string encoded_values);
58 
59  double fEmin; // min probe energy in validity range
60  double fEmax; // max probe energy in validity range
61 };
62 
63 } // genie namespace
64 
65 #endif // _GENERATOR_VALIDITY_CONTEXT_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
void Print(ostream &stream) const
friend ostream & operator<<(ostream &stream, const GVldContext &vldc)
Definition: GVldContext.cxx:31
void DecodeENERGY(string encoded_values)
Definition: GVldContext.cxx:92
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
double Emax(void) const
Definition: GVldContext.h:47
double Emin(void) const
Definition: GVldContext.h:46
Validity Context for an Event Generator.
Definition: GVldContext.h:38
void Decode(string encoded_values)
Definition: GVldContext.cxx:48
enum BeamMode string