Skip to content

Commit

Permalink
take MGRunSetup for combineX
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Feb 28, 2013
1 parent 6def004 commit f0ebc91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/HEP/Automation/EventChain/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ evchainGen mdl path (basename,procname) pset pmap cross mgrs = do
Right builder -> do
let builder' = ((C8.unpack bstr)++) . builder
(dir,file,wsetup) <-
combineX mdl path (basename,procname) pset (mgrs_numevent mgrs)
combineX mdl path (basename,procname) pset mgrs
b <- doesDirectoryExist dir
when (not b) (createDirectory dir)
(LC8.writeFile (dir</>file) . GZ.compress . LC8.pack . builder') []
Expand Down
16 changes: 8 additions & 8 deletions lib/HEP/Automation/EventChain/Process/Generator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ getWorkSetupCombined :: model
-- -> (FilePath,FilePath,FilePath)
-> ScriptSetup
-> ModelParam model
-> String -- ^ process name
-> String -- ^ directory name
-> Int
-> (String,String) -- ^ (directory name, process name)
-> MGRunSetup
-- -> Int
-> WorkSetup model
getWorkSetupCombined mdl ssetup pset str wname n =
getWorkSetupCombined mdl ssetup pset (wname,str) mgrs =
WS ssetup
(processSetupCombined mdl str wname)
(runSetupPart pset n)
(mGRunSetup2RunSetup pset mgrs) -- (runSetupPart pset n)
(WebDAVRemoteDir "")

{- WS <$> getScriptSetup dir_sb dir_mg5 dir_mc
Expand Down Expand Up @@ -278,13 +278,13 @@ combineX :: (Model model) =>
-> ScriptSetup
-> (String,String) -- ^ (base madgraph dir name, resultant process name)
-> ModelParam model -- ^ model parameters
-> Int
-> MGRunSetup
-> IO (FilePath,FilePath,WorkSetup model)
combineX mdl ssetup (basename,procname) pset n = do
combineX mdl ssetup (basename,procname) pset mgrs = do
let nwname = basename
print nwname
let wsetup = getWorkSetupCombined
mdl ssetup pset procname basename n
mdl ssetup pset (basename,procname) mgrs
r <- flip runReaderT wsetup . runErrorT $ do
WS _ psetup rsetup _ <- ask
let taskname = makeRunName psetup rsetup
Expand Down

0 comments on commit f0ebc91

Please sign in to comment.