import FWCore.ParameterSet.Config as cms

# Module to create simulated ME0 Pre Reco digis.
simMuonME0PseudoReDigis = cms.EDProducer("ME0ReDigiProducer",
    inputCollection    =cms.string('simMuonME0PseudoDigis'),
    useCusGeoFor1PartGeo =cms.bool(True),   #Use custom strips and partitions for digitization for single partition geometry
    usePads             =cms.bool(False),   #sets strip granularity to x2 coarser
    numberOfStrips     =cms.uint32(384), # If use custom: number of strips per partition                                             
    numberOfPartitions =cms.uint32(8),   # If use custom:  number of partitions per chamber                                           
    neutronAcceptance  =cms.double(2.0),   # fraction of neutron events to keep in event (>= 1 means no filtering)      
    timeResolution     =cms.double(5),   # smear time by gaussian with this sigma (in ns)....negative for no smearing 
    minBXReadout       =cms.int32(-1),  # Minimum BX to readout                                                      
    maxBXReadout       =cms.int32(1), # Maximum BX to readout
    layerReadout       =cms.vint32(1,1,1,1,1,1), # Don't readout layer if entry is 0 (Layer number 1 (near IP) in the numbering scheme is idx 0)                                                                                                       
    mergeDigis         =cms.bool(True),   # Keep only one digi at the same chamber, strip, partition, and BX           
)

import FWCore.ParameterSet.Config as cms

# Module to create simulated ME0 Pre Reco digis.
simMuonME0PseudoReDigis = cms.EDProducer("ME0ReDigiProducer",
    inputCollection    =cms.string('simMuonME0PseudoDigis'),
    useCusGeoFor1PartGeo =cms.bool(True),   #Use custom strips and partitions for digitization for single partition geometry
    usePads             =cms.bool(False),   #sets strip granularity to x2 coarser
    numberOfStrips     =cms.uint32(384), # If use custom: number of strips per partition                                             
    numberOfPartitions =cms.uint32(8),   # If use custom:  number of partitions per chamber                                           
    neutronAcceptance  =cms.double(2.0),   # fraction of neutron events to keep in event (>= 1 means no filtering)      
    timeResolution     =cms.double(5),   # smear time by gaussian with this sigma (in ns)....negative for no smearing 
    minBXReadout       =cms.int32(-1),  # Minimum BX to readout                                                      
    maxBXReadout       =cms.int32(1), # Maximum BX to readout
    layerReadout       =cms.vint32(1,1,1,1,1,1), # Don't readout layer if entry is 0 (Layer number 1 (near IP) in the numbering scheme is idx 0)                                                                                                       
    mergeDigis         =cms.bool(True),   # Keep only one digi at the same chamber, strip, partition, and BX           
)

# Module to create simulated ME0 Pre Reco digis. #Use custom strips and partitions for digitization for single partition geometry #sets strip granularity to x2 coarser # If use custom: number of strips per partition # If use custom:  number of partitions per chamber # fraction of neutron events to keep in event (>= 1 means no filtering) # smear time by gaussian with this sigma (in ns)....negative for no smearing # Minimum BX to readout # Maximum BX to readout # Don't readout layer if entry is 0 (Layer number 1 (near IP) in the numbering scheme is idx 0) # Keep only one digi at the same chamber, strip, partition, and BX