Structure function using photon PDFs of nucleons.
- Author
- Alfonso Garcia <aagarciasoto \at km3net.de> IFIC & Harvard University
- Created:\n Dec 8, 2021
- License:\n Copyright (c) 2003-2025, The GENIE Collaboration
- For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE
Definition at line 36 of file PhotonStrucFunc.h.
| PhotonStrucFunc::PhotonStrucFunc |
( |
| ) |
|
|
private |
Definition at line 22 of file PhotonStrucFunc.cxx.
23{
24
25 string basedir = "";
26 if ( gSystem->Getenv("PHOTON_SF_DATA_PATH")==NULL ) basedir = string(gSystem->Getenv("GENIE")) + "/data/evgen/photon-sf";
27 else basedir = string(gSystem->Getenv("PHOTON_SF_DATA_PATH"));
28 LOG(
"PhotonStrucFunc",
pWARN) <<
"Base diretory: " << basedir;
29
32
33 for (int k=0; k<2; k++) {
34 for(int j=0; j<6; j++) {
35 string SFname = basedir + "/PhotonSF_hitnuc"+std::to_string(nucs[k])+"_hitlep"+std::to_string(pdgs[j])+".dat";
36 if ( gSystem->AccessPathName( SFname.c_str(), kReadPermission ) ) {
37 LOG(
"PhotonStrucFunc",
pFATAL) <<
"File doesnt exist or you dont have read permission.";
38 LOG(
"PhotonStrucFunc",
pFATAL) <<
"Remember!!!";
39 LOG(
"PhotonStrucFunc",
pFATAL) <<
"Path to base directory is defined with the enviroment variable PHOTON_SF_DATA_PATH.";
40 LOG(
"PhotonStrucFunc",
pFATAL) <<
"If not defined, default location is $GENIE/data/evgen/photon-sf";
41 LOG(
"PhotonStrucFunc",
pFATAL) <<
"Photon SF tables must be computed with gmkglressf.";
42 assert(0);
43 }
44 fSFTables[nucs[k]].Table[pdgs[j]] =
new genie::Spline();
45 fSFTables[nucs[k]].Table[pdgs[j]]->LoadFromAsciiFile(SFname);
46 }
47 }
48
50
51}
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
static PhotonStrucFunc * fgInstance
map< int, PhotonStrucFuncTable > fSFTables
References fgInstance, fSFTables, genie::kPdgAntiNuE, genie::kPdgAntiNuMu, genie::kPdgAntiNuTau, genie::kPdgNeutron, genie::kPdgNuE, genie::kPdgNuMu, genie::kPdgNuTau, genie::kPdgProton, LOG, pFATAL, and pWARN.
Referenced by Instance(), and PhotonStrucFunc().