192 int polarizationState,
196 G4cout<<
"\nk-V fMap exceeds maximum resolution of "<<
MAXRES<<
197 " by "<<
MAXRES<<
". terminating."<<endl;
207 if(!
fMapFile.is_open())
return false;
209 for(
int theta = 0; theta<
fThetaRes; theta++){
210 for(
int phi = 0; phi<
fPhiRes; phi++){
215 G4cout<<
"\nXLogicalLattice::LoadMap() sucessful (Vg scalars)."<<endl;
229 int polarizationState,
233 G4cout<<
"\nk-V map exceeds maximum resolution of "<<
MAXRES<<
234 " by "<<
MAXRES<<
" terminating."<<endl;
244 if(!
fMapFile.is_open())
return false;
246 for(
int theta = 0; theta<
fThetaRes; theta++){
247 for(
int phi = 0; phi<
fPhiRes; phi++){
248 for(
int coord = 0; coord<3; coord++){
255 G4cout<<
"\nXLogicalLattice::Load_NMap() sucessful"<<endl;
271 double theta, phi, tRes, pRes;
280 if(phi<0) phi = phi + 2*
pi;
281 if(theta>pi) theta=theta-
pi;
283 if(
fMap[polarizationState][
int(theta/tRes)][
int(phi/pRes)]==0){
284 G4cout<<
"\nFound v=0 for polarization "<<polarizationState
285 <<
" theta "<<theta<<
" phi "<<phi<<
" translating to map coords "
286 <<
"theta "<< int(theta/tRes) <<
" phi " << int(phi/pRes)<<endl;
289 return fMap[polarizationState][int(theta/tRes)][int(phi/pRes)];
302 double theta, phi, tRes, pRes;
310 if(theta>
pi) theta=theta-
pi;
312 if(phi<0) phi = phi + 2*
pi;
314 G4int iTheta = int(theta/tRes+0.5);
315 G4int iPhi = int(phi/pRes+0.5);
319 fN_map[polarizationState][iTheta][iPhi][1],
320 fN_map[polarizationState][iTheta][iPhi][2]);
void SetDynamicalConstants(double, double, double, double)
bool Load_NMap(int, int, int, string)
CLHEP::Hep3Vector G4ThreeVector
double fMap[3][MAXRES][MAXRES]
void SetScatteringConstant(G4double)
G4ThreeVector MapKtoVDir(int, G4ThreeVector)
double MapKtoV(int, G4ThreeVector)
G4GLOB_DLL std::ostream G4cout
G4double GetAnhDecConstant()
double fN_map[3][MAXRES][MAXRES][3]
bool LoadMap(int, int, int, string)
void SetAnhDecConstant(G4double)
G4double GetScatteringConstant()