GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created November 20, 2004
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _GENERATOR_VALIDITY_CONTEXT_H_
19 #define _GENERATOR_VALIDITY_CONTEXT_H_
20 
21 #include <string>
22 #include <iostream>
23 
26 
27 using std::string;
28 using std::ostream;
29 
30 namespace genie {
31 
32 class GVldContext;
33 class Interaction;
34 
35 ostream & operator<< (ostream & stream, const GVldContext & vldc);
36 
37 class GVldContext {
38 
39 public :
40  GVldContext();
41  ~GVldContext();
42 
43  void Decode (string encoded_values);
44 
45  double Emin (void) const { return fEmin; }
46  double Emax (void) const { return fEmax; }
47 
48  void Print (ostream & stream) const;
49 
50  friend ostream & operator<< (ostream & stream, const GVldContext & vldc);
51 
52 private:
53 
54  void Init(void);
55 
56  void DecodeENERGY (string encoded_values);
57 
58  double fEmin; // min probe energy in validity range
59  double fEmax; // max probe energy in validity range
60 };
61 
62 } // genie namespace
63 
64 #endif // _GENERATOR_VALIDITY_CONTEXT_H_
void Print(ostream &stream) const
friend ostream & operator<<(ostream &stream, const GVldContext &vldc)
Definition: GVldContext.cxx:25
void DecodeENERGY(string encoded_values)
Definition: GVldContext.cxx:86
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
double Emax(void) const
Definition: GVldContext.h:46
double Emin(void) const
Definition: GVldContext.h:45
Validity Context for an Event Generator.
Definition: GVldContext.h:37
void Decode(string encoded_values)
Definition: GVldContext.cxx:42