Skip to content
Snippets Groups Projects
Commit d78b992a authored by nnitika's avatar nnitika Committed by Marilena Bandieramonte
Browse files

added DeltaChord flag

parent d51e4bd8
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <fstream> #include <fstream>
#include "HistoMessenger.hh"
#include "HistoManager.hh"
#include "G4StepLimiterPhysics.hh"
static const std::string fullSimLightShareDir=FULLSIMLIGHTSHAREDIR; static const std::string fullSimLightShareDir=FULLSIMLIGHTSHAREDIR;
static std::string parMacroFileName = fullSimLightShareDir+"/macro.g4"; static std::string parMacroFileName = fullSimLightShareDir+"/macro.g4";
...@@ -167,6 +169,11 @@ int main(int argc, char** argv) { ...@@ -167,6 +169,11 @@ int main(int argc, char** argv) {
const FSLPhysListFactory *phyListFactory = FSLPhysListFactory::GetInstance(); const FSLPhysListFactory *phyListFactory = FSLPhysListFactory::GetInstance();
G4VModularPhysicsList *physList = phyListFactory->GetPhysList(parPhysListName); G4VModularPhysicsList *physList = phyListFactory->GetPhysList(parPhysListName);
G4bool activateRegions = phyListFactory->GetActivateRegionsFlag(); G4bool activateRegions = phyListFactory->GetActivateRegionsFlag();
physList->RegisterPhysics(new G4StepLimiterPhysics()); ///added
// register the final version of the physics list in the run manager // register the final version of the physics list in the run manager
runManager->SetUserInitialization(physList); runManager->SetUserInitialization(physList);
...@@ -175,6 +182,8 @@ int main(int argc, char** argv) { ...@@ -175,6 +182,8 @@ int main(int argc, char** argv) {
FSLDetectorConstruction* detector = new FSLDetectorConstruction; FSLDetectorConstruction* detector = new FSLDetectorConstruction;
///define here deltachord/////// ///define here deltachord///////
detector->SetDeltaChord(parDeltaChord); detector->SetDeltaChord(parDeltaChord);
G4cout << "Main cc Delta Chord Length: " << parDeltaChord << G4endl;
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
if (parRunOverlapCheck) detector->SetRunOverlapCheck(true); if (parRunOverlapCheck) detector->SetRunOverlapCheck(true);
if (activateRegions) detector->SetAddRegions(true); if (activateRegions) detector->SetAddRegions(true);
...@@ -354,7 +363,7 @@ void GetInputArguments(int argc, char** argv) { ...@@ -354,7 +363,7 @@ void GetInputArguments(int argc, char** argv) {
} }
while (true) { while (true) {
int c, optidx = 0; int c, optidx = 0;
c = getopt_long(argc, argv, "P:pm:f:g:c:oh", options, &optidx); c = getopt_long(argc, argv, "P:pm:f:g:c:ohd:", options, &optidx);
if (c == -1) if (c == -1)
break; break;
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment