195 int polarizationState,
199 G4cout<<
"\nk-V fMap exceeds maximum resolution of "<<
MAXRES<<
200 " by "<<
MAXRES<<
". terminating."<<endl;
210 if(!
fMapFile.is_open())
return false;
212 for(
int theta = 0; theta<
fThetaRes; theta++){
213 for(
int phi = 0; phi<
fPhiRes; phi++){
218 G4cout<<
"\nXLogicalLattice::LoadMap() sucessful (Vg scalars)."<<endl;
232 int polarizationState,
236 G4cout<<
"\nk-V map exceeds maximum resolution of "<<
MAXRES<<
237 " by "<<
MAXRES<<
" terminating."<<endl;
247 if(!
fMapFile.is_open())
return false;
249 for(
int theta = 0; theta<
fThetaRes; theta++){
250 for(
int phi = 0; phi<
fPhiRes; phi++){
251 for(
int coord = 0; coord<3; coord++){
258 G4cout<<
"\nXLogicalLattice::Load_NMap() sucessful"<<endl;
274 double theta, phi, tRes, pRes;
283 if(phi<0) phi = phi + 2*
pi;
284 if(theta>pi) theta=theta-
pi;
286 if(
fMap[polarizationState][
int(theta/tRes)][
int(phi/pRes)]==0){
287 G4cout<<
"\nFound v=0 for polarization "<<polarizationState
288 <<
" theta "<<theta<<
" phi "<<phi<<
" translating to map coords "
289 <<
"theta "<< int(theta/tRes) <<
" phi " << int(phi/pRes)<<endl;
292 return fMap[polarizationState][int(theta/tRes)][int(phi/pRes)];
305 double theta, phi, tRes, pRes;
313 if(theta>
pi) theta=theta-
pi;
315 if(phi<0) phi = phi + 2*
pi;
317 G4int iTheta = int(theta/tRes+0.5);
318 G4int iPhi = int(phi/pRes+0.5);
322 fN_map[polarizationState][iTheta][iPhi][1],
323 fN_map[polarizationState][iTheta][iPhi][2]);
void SetDynamicalConstants(double, double, double, double)
bool Load_NMap(int, int, int, string)
CLHEP::Hep3Vector G4ThreeVector
std::vector< ExP01TrackerHit * > a
double fMap[3][MAXRES][MAXRES]
void SetScatteringConstant(G4double)
G4ThreeVector MapKtoVDir(int, G4ThreeVector)
double MapKtoV(int, G4ThreeVector)
G4GLOB_DLL std::ostream G4cout
G4double GetAnhDecConstant()
static constexpr double m
double fN_map[3][MAXRES][MAXRES][3]
Definition of the XLogicalLattice class.
bool LoadMap(int, int, int, string)
void SetAnhDecConstant(G4double)
static constexpr double pi
G4double GetScatteringConstant()