Changeset 354
- Timestamp:
- Jun 1, 2007, 8:37:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MEMPHYS/HEAD/applications/MEMPHYS_session.cxx
r249 r354 22 22 #include <Lib/Out.h> 23 23 #include <Lib/Cast.h> 24 #include <Lib/Arguments.h> 24 25 25 26 // G4Lab : … … 94 95 accessorManager->removeAccessor(hcName); 95 96 accessorManager->addAccessor 96 (new MEMPHYS::HitsCollectionAccessor(fSession,hcName)); 97 (new MEMPHYS::HitsCollectionAccessor 98 (fSession,g4Manager->runManager(),hcName)); 97 99 } 98 100 } … … 106 108 accessorManager->addAccessor 107 109 (new MEMPHYS::DigitsCollectionAccessor<MEMPHYS::WCDigi> 108 (fSession, "WCDigitizedCollection"));110 (fSession,g4Manager->runManager(),"WCDigitizedCollection")); 109 111 } 110 112 return true; 111 113 } 112 114 public: 113 AppManager(Slash::Core::ISession& aSession,AIDA::IAnalysisFactory* aAIDA,bool aBatch) 115 AppManager(Slash::Core::ISession& aSession, 116 AIDA::IAnalysisFactory* aAIDA,bool aBatch) 114 117 :Analysis(aAIDA,"",aBatch) 115 118 ,fSession(aSession) … … 132 135 //Lib::Debug::checkByClass(true); 133 136 137 Lib::Arguments args(aArgc,aArgv); 138 134 139 G4RunManager* runManager = new G4RunManager; 135 140 … … 143 148 runManager->SetGeometryToBeOptimized(false); 144 149 150 std::string gui; 151 if(args.isAnArgument("-SDL")||args.isAnArgument("-sdl")) { 152 gui = "$MEMPHYSROOT/scripts/OnX/SDL.onx"; 153 } else { 154 gui = "$MEMPHYSROOT/scripts/OnX/MEMPHYS_session.onx"; 155 } 156 145 157 // Need to pass the G4RunManager at UIOnX creation 146 std::string gui = "$MEMPHYSROOT/scripts/OnX/MEMPHYS_session.onx";147 158 G4Lab::UIOnX* session = new G4Lab::UIOnX(*runManager,gui,aArgc,aArgv); 148 159 if(!session->isValid()) {
Note: See TracChangeset
for help on using the changeset viewer.