Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Traccc/extras/ccl_partitioning/src/Data.hs is written in an unsupported language. File is not indexed.

0001 {-# LANGUAGE DeriveGeneric #-}
0002 
0003 module Data (Cell(..), Partition(..)) where
0004 
0005 import GHC.Generics
0006 import Data.Csv (FromRecord, ToRecord)
0007 
0008 data Cell = Cell
0009   { moduleId :: Integer
0010   , measurementId :: Integer
0011   , channel0 :: Integer
0012   , channel1 :: Integer
0013   , timestamp :: Float
0014   , value :: Float
0015   } deriving (Show, Eq, Generic)
0016 
0017 data Partition = Partition
0018   { start :: Integer
0019   , psize :: Integer
0020   } deriving (Show, Eq)
0021 
0022 instance FromRecord Cell
0023 instance ToRecord Cell