GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QvalueShifter.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::QvalueShfiter
5 
6 \brief This class is responsible to compute a relative shift to a Qvalue
7 
8 \author Code contributed by J.Tena Vidal and M.Roda
9 
10 \created June, 2020
11 
12 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
13  For the full text of the license visit http://copyright.genie-mc.org
14 */
15 //____________________________________________________________________________
16 
17 #ifndef _QVALUE_SHIFTER_H_
18 #define _QVALUE_SHIFTER_H_
19 
23 #include <map>
24 
25 using std::map;
26 
27 namespace genie {
28 
29  class QvalueShifter: public Algorithm {
30 
31  public:
32  QvalueShifter();
33  QvalueShifter(string config);
34  virtual ~QvalueShifter();
35 
36  virtual double Shift( const Target & target ) const ;
37  virtual double Shift( const Interaction & interaction ) const ;
38 
39  void Configure (const Registry & config);
40  void Configure (string config);
41 
42  protected:
43 
44  // Load algorithm configuration
45  void LoadConfig (void);
46 
47  private:
48  double fRelShiftDefault ;
49  std::map<int,double> fRelShift ; // map from pdf_target to the Qvalue relative shift
50 
51  };
52 
53 } // genie namespace
54 #endif // _QVALUE_SHIFTER_H_
Algorithm abstract base class.
Definition: Algorithm.h:54
Summary information for an interaction.
Definition: Interaction.h:56
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition: Target.h:40
virtual double Shift(const Target &target) const
std::map< int, double > fRelShift
Definition: QvalueShifter.h:49
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:65
void Configure(const Registry &config)