195 int polarizationState,
199 G4cout<<
"\nk-V fMap exceeds maximum resolution of "<<
MAXRES<<
200 " by "<<
MAXRES<<
". terminating."<<endl;
209 fMapFile.open(m.data());
210 if(!fMapFile.is_open())
return false;
212 for(
int theta = 0; theta<fThetaRes; theta++){
213 for(
int phi = 0; phi<fPhiRes; phi++){
214 fMapFile>>fMap[polarizationState][theta][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;
246 fMapFile.open(m.data());
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++){
252 fMapFile>>fN_map[polarizationState][theta][phi][coord];
258 G4cout<<
"\nXLogicalLattice::Load_NMap() sucessful"<<endl;
274 double theta, phi, tRes, pRes;
276 tRes=
pi/(fVresTheta);
277 pRes=2*
pi/(fVresPhi);
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;
307 tRes=
pi/(fDresTheta-1);
308 pRes=2*
pi/(fDresPhi-1);
313 if(theta>
pi) theta=theta-
pi;
315 if(phi<0) phi = phi + 2*
pi;
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)
std::vector< ExP01TrackerHit * > a
void SetScatteringConstant(G4double)
G4ThreeVector MapKtoVDir(int, G4ThreeVector)
double MapKtoV(int, G4ThreeVector)
G4GLOB_DLL std::ostream G4cout
G4double GetAnhDecConstant()
static constexpr double m
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
Definition of the XLogicalLattice class.
bool LoadMap(int, int, int, string)
void SetAnhDecConstant(G4double)
static constexpr double pi
G4double GetScatteringConstant()