20 #ifndef _TABULATED_HADRON_TENSOR_MODEL_H_ 21 #define _TABULATED_HADRON_TENSOR_MODEL_H_ 82 mutable std::map< HadronTensorID, HadronTensorI* >
fTensors;
101 #endif // _TABULATED_HADRON_TENSOR_MODEL_H_
std::string GetTensorFileBasename(const HadronTensorID &ht_id) const
std::string FindTensorTableFile(const std::string &basename, bool &ok) const
THE MAIN GENIE PROJECT NAMESPACE
HadronTensorID(int pdg=0, HadronTensorType_t typ=kHT_Undefined)
virtual void Configure(const Registry &config)
enum genie::HadronTensorType HadronTensorType_t
bool operator<(const HadronTensorID &other) const
virtual const HadronTensorI * GetTensor(int tensor_pdg, HadronTensorType_t type) const
Abstract interface for an object that computes the elements a hadron tensor . Also computes the contr...
std::vector< std::string > fDataPaths
Paths to check when searching for hadron tensor data files.
Struct used to provide a unique ID for each tensor object.
void LoadConfig()
Saves some basic XML config parameters to data members.
Creates hadron tensor objects for cross section calculations using precomputed data tables...
A registry. Provides the container for algorithm configuration parameters.
Creates hadron tensor objects for use in cross section calculations.
const HadronTensorI * BuildTensor(const HadronTensorID &ht_id) const
Create a HadronTensorI object given a particular HadronTensorID.
virtual ~TabulatedHadronTensorModelI()
TabulatedHadronTensorModelI()
virtual HadronTensorI * ParseTensorFile(const std::string &full_file_name) const =0
std::map< HadronTensorID, HadronTensorI * > fTensors