XSecAlgorithmI.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::XSecAlgorithmI
5 
6 \brief Cross Section Calculation Interface.
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11 \created May 03, 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 _XSEC_ALGORITHM_I_H_
20 #define _XSEC_ALGORITHM_I_H_
21 
25 
26 namespace genie {
27 
28 class XSecAlgorithmI : public Algorithm {
29 
30 public:
31  virtual ~XSecAlgorithmI();
32 
33  //! Compute the cross section for the input interaction
34  virtual double XSec (const Interaction* i, KinePhaseSpace_t k=kPSfE) const = 0;
35 
36  //! Integrate the model over the kinematic phase space available to the
37  //! input interaction (kinematical cuts can be included)
38  virtual double Integral (const Interaction* i) const = 0;
39 
40  //! Can this cross section algorithm handle the input process?
41  virtual bool ValidProcess (const Interaction* i) const = 0;
42 
43  //! Is the input kinematical point a physically allowed one?
44  virtual bool ValidKinematics (const Interaction* i) const;
45 
46 protected:
48  XSecAlgorithmI(string name);
49  XSecAlgorithmI(string name, string config);
50 };
51 
52 } // genie namespace
53 #endif // _XSEC_ALGORITHM_I_H_
Cross Section Calculation Interface.
const XML_Char * name
Definition: expat.h:151
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
virtual double XSec(const Interaction *i, KinePhaseSpace_t k=kPSfE) const =0
Compute the cross section for the input interaction.
Algorithm abstract base class.
Definition: Algorithm.h:54
Definition: config.py:1
enum genie::EKinePhaseSpace KinePhaseSpace_t
Summary information for an interaction.
Definition: Interaction.h:56
virtual bool ValidKinematics(const Interaction *i) const
Is the input kinematical point a physically allowed one?
virtual double Integral(const Interaction *i) const =0
virtual bool ValidProcess(const Interaction *i) const =0
Can this cross section algorithm handle the input process?