CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ecalDigis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 simEcalDigis = cms.EDProducer("EcalSelectiveReadoutProducer",
4  # Label of input EB and EE digi collections
5  digiProducer = cms.string('simEcalUnsuppressedDigis'),
6 
7  # Instance name of input EB digi collections
8  EBdigiCollection = cms.string(''),
9 
10  # Instance name of input EB digi collections
11  EEdigiCollection = cms.string(''),
12 
13  # Instance name of output EB SR flags collection
14  EBSrFlagCollection = cms.string('ebSrFlags'),
15 
16  # Instance name of output EE SR flags collection
17  EESrFlagCollection = cms.string('eeSrFlags'),
18 
19  # Instance name of output EB digis collection
20  EBSRPdigiCollection = cms.string('ebDigis'),
21 
22  # Instance name of output EE digis collection
23  EESRPdigiCollection = cms.string('eeDigis'),
24 
25  # Switch for reading SRP settings from condition database
26  configFromCondDB = cms.bool(True),
27 
28  # Switch to turn off SRP altogether using special DB payload
29  UseFullReadout = cms.bool(False),
30 
31  # ES label?
32  # NZSLabel = cms.ESInputTag(' '),
33 
34  # Label name of input ECAL trigger primitive collection
35  trigPrimProducer = cms.string('simEcalTriggerPrimitiveDigis'),
36 
37  # Instance name of ECAL trigger primitive collection
38  trigPrimCollection = cms.string(''),
39 
40  #switch to run w/o trigger primitive. For debug use only
41 
42  trigPrimBypass = cms.bool(False),
43 
44  # Mode selection for "Trig bypass" mode
45  # 0: TT thresholds applied on sum of crystal Et's
46  # 1: TT thresholds applies on compressed Et from Trigger primitive
47  # @ee trigPrimByPass_ switch
48  trigPrimBypassMode = cms.int32(0),
49 
50  #for debug mode only:
51  trigPrimBypassLTH = cms.double(1.0),
52 
53  #for debug mode only:
54  trigPrimBypassHTH = cms.double(1.0),
55 
56  #for debug mode only
57  trigPrimBypassWithPeakFinder = cms.bool(True),
58 
59  #number of events whose TT and SR flags must be dumped (for debug purpose):
60  dumpFlags = cms.untracked.int32(0),
61 
62  #logical flag to write out SrFlags
63  writeSrFlags = cms.untracked.bool(True),
64 
65  #switch to apply selective readout decision on the digis and produce
66  #the "suppressed" digis
67  produceDigis = cms.untracked.bool(True),
68 
69  #Trigger Tower Flag to use when a flag is not found from the input
70  #Trigger Primitive collection. Must be one of the following values:
71  # 0: low interest, 1: mid interest, 3: high interest
72  # 4: forced low interest, 5: forced mid interest, 7: forced high interest
73  defaultTtf = cms.int32(4)
74 )
75 
76 # Turn off SR in Ecal for premixing stage1
77 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
78 premix_stage1.toModify(simEcalDigis, UseFullReadout = True)
79 
80 _simEcalDigisPh2 = simEcalDigis.clone(
81  trigPrimBypass = True,
82 )