23.2.2010 Kamil Sedlak
Several things were added in this version: 1) varibale save_time() has been added to the root output tree 2) possibility to read in field maps, in which varibles x,y,z increase differently than previously expected (see the description of "variableIncreasingOrder" in the "3DEOpera" paragraph of the documentation). 3) Added "3DEOpera" format of the fieldmap 4) Added file G4EqEMFieldWithSpin.cc_for_Geant4.9.2p02_only that should be used only in the Geant version 4.9.2p02 (there was a bug in this file, which is not present for any other version of Geant4) 5) Examples 101.mac and 102.mac added, but its description has not been completed yet in the musrSim.pdf.
This commit is contained in:
@ -249,6 +249,7 @@ void musrRootOutput::BeginOfRunAction() {
|
||||
rootTree->Branch("save_detID",&save_detID,"save_detID[save_n]/I");
|
||||
rootTree->Branch("save_particleID",&save_particleID,"save_particleID[save_n]/I");
|
||||
rootTree->Branch("save_ke",&save_ke,"save_ke[save_n]/D");
|
||||
rootTree->Branch("save_time",&save_time,"save_time[save_n]/D");
|
||||
rootTree->Branch("save_x",&save_x,"save_x[save_n]/D");
|
||||
rootTree->Branch("save_y",&save_y,"save_y[save_n]/D");
|
||||
rootTree->Branch("save_z",&save_z,"save_z[save_n]/D");
|
||||
@ -390,7 +391,8 @@ G4int musrRootOutput::ConvertProcessToID(std::string processName) {
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void musrRootOutput::SetSaveDetectorInfo (G4int ID, G4int particleID, G4double ke,
|
||||
G4double x, G4double y, G4double z, G4double px, G4double py, G4double pz, G4double polx, G4double poly, G4double polz) {
|
||||
G4double x, G4double y, G4double z, G4double time,
|
||||
G4double px, G4double py, G4double pz, G4double polx, G4double poly, G4double polz) {
|
||||
if (save_n>=save_nMax) {
|
||||
char message[200];
|
||||
sprintf(message,"musrRootOutput.cc::SetSaveDetectorInfo(): more \"save\" hits then allowed: save_nMax=%i",save_nMax);
|
||||
@ -403,6 +405,7 @@ void musrRootOutput::SetSaveDetectorInfo (G4int ID, G4int particleID, G4double k
|
||||
save_x[save_n]=x/mm;
|
||||
save_y[save_n]=y/mm;
|
||||
save_z[save_n]=z/mm;
|
||||
save_time[save_n]=time/microsecond;
|
||||
save_px[save_n]=px/MeV;
|
||||
save_py[save_n]=py/MeV;
|
||||
save_pz[save_n]=pz/MeV;
|
||||
|
Reference in New Issue
Block a user