5.6.2012 Kamil Sedlak

Added two files:   FindROOT.cmake  and   CMakeLists.txt ,
which are needed for the compilation of musrSim by using cmake
This commit is contained in:
2012-06-05 09:46:53 +00:00
parent 6220698f22
commit b96a699841
4 changed files with 367 additions and 1 deletions

View File

@@ -436,7 +436,7 @@ void musrRootOutput::BeginOfRunAction() {
htest4 = new TH1F("htest4","Radioactive electron kinetic energy",250,0.,2.5);
htest5 = new TH1F("htest5","The debugging histogram 5",50,-4.,4.);
htest6 = new TH1F("htest6","The debugging histogram 6",50,0.,3.142);
htest7 = new TH1F("htest7","The debugging histogram 7",50,-4.,4.);
htest7 = new TH1F("htest7","The debugging histogram 7",100000,0.,100.);
htest8 = new TH1F("htest8","The debugging histogram 8",50,0.,3.142);
G4cout << "musrRootOutput::BeginOfRunAction() The Root tree and branches were defined."<<G4endl;
@@ -455,6 +455,8 @@ void musrRootOutput::EndOfRunAction() {
htest5->Write();
htest6->Write();
htest7->Write();
// Needed for iterative musrSim runs (e.g. when searching for a quadrupole triplet focus using a python script)
// std::cout<<"DEBUG: FOCUS TEST: sigma="<<(htest7->GetMean())/(htest7->GetEntries())<<std::endl;
htest8->Write();
// Variables exported from Geant simulation to the Root output
// static const Int_t nGeantParamD=10;

View File

@@ -241,6 +241,13 @@ void musrSteppingAction::UserSteppingAction(const G4Step* aStep) {
G4double poly_save=preStepPoint->GetPolarization().y();
G4double polz_save=preStepPoint->GetPolarization().z();
myRootOutput->SetSaveDetectorInfo(tmpVolumeID,particle_id_save,ke_save,x_save,y_save,z_save,time_save,px_save,py_save,pz_save,polx_save,poly_save,polz_save);
//
// myRootOutput->htest7->Fill(sqrt(x_save*x_save+y_save*y_save));
//
// cks: Useful for iterative musrSim runs finding the beam focus (all driven by a python script)
// if (sqrt(x_save*x_save+y_save*y_save)<100.)
// musrErrorMessage::GetInstance()->musrError(INFO,"musrSteppingAction KAMILTEST: Beam focused",true);
}
}
}