PetersonFragm.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::PetersonFragm
5 
6 \brief The Peterson fragmentation function.
7  Is a concrete implementation of the FragmentationFunctionI interface.
8 
9 \ref C.Peterson et al., Phys.Rev.D23, 56 (1981)
10 
11 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
12  University of Liverpool & STFC Rutherford Appleton Laboratory
13 
14 \created June 15, 2004
15 
16 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
17  For the full text of the license visit http://copyright.genie-mc.org
18 */
19 //____________________________________________________________________________
20 
21 #ifndef _PETERSON_FRAGM_H_
22 #define _PETERSON_FRAGM_H_
23 
24 #include <TF1.h>
25 
28 
29 namespace genie {
30 
32 
33 public:
34  PetersonFragm();
35  PetersonFragm(string config);
37 
38  //! implement the FragmentationFunctionI interface
39  double Value (double z) const;
40  double GenerateZ (void) const;
41 
42  //! methods overloading the Algorithm() interface implementation
43  //! to build the fragmentation function from configuration data
44  void Configure(const Registry & config);
45  void Configure(string config);
46 
47 private:
48  void BuildFunction (void);
49  TF1 * fFunc;
50 };
51 
52 } // genie namespace
53 
54 #endif // _PETERSON_FRAGM_H_
void Configure(const Registry &config)
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
The Peterson fragmentation function. Is a concrete implementation of the FragmentationFunctionI inter...
Definition: PetersonFragm.h:31
static Config * config
Definition: config.cpp:1054
double Value(double z) const
implement the FragmentationFunctionI interface
Pure abstract base class. Defines the FragmentationFunctionI interface to be implemented by any algor...
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:65
double GenerateZ(void) const