87 if(X<=Xj)
return YN[0];
88 else if(X>=Xh)
return YN[N-1];
89 G4double Xp=0.;
G4int j=0;
while (X>Xj && j<N) {j++; Xp=Xj; Xj=XN[j];}
90 return YN[j]-(Xj-X)*(YN[j]-YN[j-1])/(Xj-Xp);
98 G4cout<<
"G4VQCrossSection::EquLinearFit: ***Called*** X="<<X<<
", N="<<N<<
", X0="<<X0
100 G4cout<<
"G4VQCrossSection::EquLinearFit: Y[0]="<<Y[0]<<
", Y[N-1]="<<Y[N-1]<<
G4endl;
105 G4cerr<<
"***G4VQCrossSection::EquLinearFit: DX="<<DX<<
", N="<<N<<
G4endl;
110 G4int j=
static_cast<int>(d);
117 G4cout<<
"G4VQCrossSection::EquLinearFit: CS="<<sigma<<
G4endl;
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
virtual G4double GetNPartons(G4double Q2)
virtual G4double GetSlope(G4int tZ, G4int tN, G4int pPDG)
virtual G4double GetExchangeT(G4int tZ, G4int tN, G4int pPDG)
G4double EquLinearFit(G4double X, G4int N, G4double X0, G4double DX, G4double *Y)
virtual G4double GetExchangeEnergy()
virtual G4double GetDirectPart(G4double Q2)
virtual G4double GetQEL_ExchangeQ2()
virtual G4double GetNQE_ExchangeQ2()
virtual G4double GetLastQELCS()
virtual G4double GetLastTOTCS()
virtual G4double GetVirtualFactor(G4double nu, G4double Q2)
virtual G4int GetExchangePDGCode()
virtual G4double GetExchangeQ2(G4double nu=0)
virtual G4double ThresholdEnergy(G4int Z, G4int N, G4int PDG=0)
G4double LinearFit(G4double X, G4int N, G4double *XN, G4double *YN)
virtual G4double GetHMaxT()
static G4double tolerance