forked from wavewave/evchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce SingleProc/MultiProc/ProcDir, phase1, phase2, phase3
- Loading branch information
Showing
4 changed files
with
133 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
----------------------------------------------------------------------------- | ||
-- | | ||
-- Module : HEP.Automation.EventChain.Type.MultiProcess | ||
-- Copyright : (c) 2013 Ian-Woo Kim | ||
-- | ||
-- License : BSD3 | ||
-- Maintainer : Ian-Woo Kim <[email protected]> | ||
-- Stability : experimental | ||
-- Portability : GHC | ||
-- | ||
-- Types for MultiProcess Spec | ||
-- | ||
----------------------------------------------------------------------------- | ||
|
||
module HEP.Automation.EventChain.Type.MultiProcess | ||
( NumOfEv (..) | ||
, SetNum (..) | ||
, SingleProc(..) | ||
, ProcDir(..) | ||
, MultiProc (..) | ||
) where | ||
|
||
import qualified Data.Map as M | ||
-- | ||
import HEP.Automation.MadGraph.SetupType | ||
-- | ||
import HEP.Automation.EventChain.Type.Spec | ||
import HEP.Automation.EventChain.Type.Process | ||
|
||
newtype NumOfEv = NumOfEv { unNumOfEv :: Int } | ||
|
||
newtype SetNum = SetNum { unSetNum :: Int } | ||
|
||
data SingleProc = SingleProc { spName :: String | ||
, spCross :: DCross | ||
, spProcSpecMap :: ProcSpecMap | ||
, spRunSetup :: NumOfEv -> SetNum -> RunSetup | ||
} | ||
|
||
data ProcDir = ProcDir { pdWorkDirPrefix :: String | ||
, pdRemoteDirBase :: FilePath | ||
, pdRemoteDirPrefix :: String | ||
} | ||
data MultiProc = MultiProc { mpName :: String | ||
, mpProcDir :: ProcDir | ||
, mpMultiProcessMap :: M.Map String SingleProc | ||
} | ||
|
||
{- | ||
mkSingleProc :: String -> DCross -> ProcSpecMap -> (NumOfEv -> SetNum -> RunSetup) -> SingleProc | ||
mkSingleProc n c m r = MultiProcPart n c (mkCrossIDIdx (mkDICross c)) m r | ||
-} |