Skip to content
Snippets Groups Projects
Commit 070403bb authored by Zach Marshall's avatar Zach Marshall Committed by Graeme Stewart
Browse files

Calming down the looper killer (G4UserActions-00-00-96-02)

parent 7a0e1c01
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef CheckActivation_H
#define CheckActivation_H
#include "FadsActions/ActionsBase.h"
#include "FadsActions/UserAction.h"
#include <string>
class CheckActivation: public FADS::ActionsBase , public FADS::UserAction {
public:
CheckActivation(std::string s): FADS::ActionsBase(s) , FADS::UserAction(s) {}
void BeginOfEventAction(const G4Event*);
};
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "G4UserActions/CheckActivation.h"
#include "G4TransportationManager.hh"
#include "G4Navigator.hh"
static CheckActivation ts1("CheckActivation");
void CheckActivation::BeginOfEventAction(const G4Event* /*anEvent*/)
{
G4TransportationManager *tm = G4TransportationManager::GetTransportationManager();
tm->GetNavigatorForTracking()->CheckMode(true);
}
......@@ -127,7 +127,7 @@ void LooperKiller::ParseProperties() {
theProperties["PrintSteps"]="100";
}
if (theProperties.find("VerboseLevel")==theProperties.end()) {
theProperties["VerboseLevel"]="4";
theProperties["VerboseLevel"]="1";
}
if (theProperties.find("AbortEvent")==theProperties.end()) {
theProperties["AbortEvent"]="1";
......
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