XSecScaleMap.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::XSecScaleMap
5 
6 \brief This class is responsible to compute a scaling factor for the XSec
7 
8 \author Code contributed by J.Tena Vidal and M.Roda
9 
10 \created June, 2020
11 
12 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
13  For the full text of the license visit http://copyright.genie-mc.org
14 */
15 //____________________________________________________________________________
16 
17 #ifndef _XSEC_SCALE_MAP_H_
18 #define _XSEC_SCALE_MAP_H_
19 
21 #include <map>
22 
23 namespace genie {
24 
25  class XSecScaleMap: public XSecScaleI {
26 
27  public:
28  XSecScaleMap();
29  XSecScaleMap(string config);
30  virtual ~XSecScaleMap();
31 
32  // This function returns the scaling value for a given interaction:
33  virtual double GetScaling( const Interaction & ) const override ;
34 
35  protected:
36 
37  // Load algorithm configuration
38  virtual void LoadConfig (void) override ;
39 
40  private:
42  std::map<int,const XSecScaleI *> fXSecScaleMap ;
43 
44  };
45 
46 } // genie namespace
47 #endif // _XSEC_SCALE_MAP_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
This class is responsible to compute a scaling factor for the XSec.
Definition: XSecScaleI.h:25
virtual void LoadConfig(void) override
std::map< int, const XSecScaleI * > fXSecScaleMap
Definition: XSecScaleMap.h:42
Summary information for an interaction.
Definition: Interaction.h:56
static Config * config
Definition: config.cpp:1054
virtual double GetScaling(const Interaction &) const override
This class is responsible to compute a scaling factor for the XSec.
Definition: XSecScaleMap.h:25
const XSecScaleI * fXSecScaleDefault
Definition: XSecScaleMap.h:41