CollinsSpillerFragm.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::CollinsSpillerFragm
5 
6 \brief The Collins-Spiller fragmentation function. \n
7  Is a concrete implementation of the FragmentationFunctionI interface.
8 
9 \ref P.D.B.Collins and T.P.Spiller, J.Phys.G11, 1289 (1984)
10 
11 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
12  University of Liverpool & STFC Rutherford Appleton Lab
13 
14 \created June 15, 2004
15 
16 \cpright Copyright (c) 2003-2019, The GENIE Collaboration
17  For the full text of the license visit http://copyright.genie-mc.org
18  or see $GENIE/LICENSE
19 */
20 //____________________________________________________________________________
21 
22 #ifndef _COLLINS_SPILLER_FRAGM_H_
23 #define _COLLINS_SPILLER_FRAGM_H_
24 
25 #include <TF1.h>
26 
28 
29 namespace genie {
30 
32 
33 public:
37 
38  //! implements 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 // _COLLINS_SPILLER_FRAGM_H_
double Value(double z) const
implements the FragmentationFunctionI interface
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
Definition: config.py:1
void Configure(const Registry &config)
z
Definition: test.py:28
Pure abstract base class. Defines the FragmentationFunctionI interface to be implemented by any algor...
The Collins-Spiller fragmentation function. Is a concrete implementation of the FragmentationFuncti...
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:66