CMS 3D CMS Logo

HBHEPhase1Reconstructor_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import RecoLocalCalo.HcalRecProducers.HBHEMethod3Parameters_cfi as method3
3 import RecoLocalCalo.HcalRecProducers.HBHEMethod2Parameters_cfi as method2
4 import RecoLocalCalo.HcalRecProducers.HBHEPulseShapeFlagSetter_cfi as pulseShapeFlag
5 import RecoLocalCalo.HcalRecProducers.HBHEStatusBitSetter_cfi as hbheStatusFlag
6 
7 hbheprereco = cms.EDProducer(
8  "HBHEPhase1Reconstructor",
9 
10  # Label for the input HBHEDigiCollection, and flag indicating
11  # whether we should process this collection
12  digiLabelQIE8 = cms.InputTag("hcalDigis"),
13  processQIE8 = cms.bool(True),
14 
15  # Label for the input QIE11DigiCollection, and flag indicating
16  # whether we should process this collection
17  digiLabelQIE11 = cms.InputTag("hcalDigis"),
18  processQIE11 = cms.bool(True),
19 
20  # Get the "sample of interest" index from DB?
21  # If not, it is taken from the dataframe.
22  tsFromDB = cms.bool(False),
23 
24  # Use the HcalRecoParam structure from DB inside
25  # the reconstruction algorithm?
26  recoParamsFromDB = cms.bool(True),
27 
28  # Drop zero-suppressed channels?
29  dropZSmarkedPassed = cms.bool(True),
30 
31  # Flag indicating whether we should produce HBHERecHitCollection
32  makeRecHits = cms.bool(True),
33 
34  # Flag indicating whether we should produce HBHEChannelInfoCollection
35  saveInfos = cms.bool(False),
36 
37  # Flag indicating whether we should include HBHEChannelInfo objects
38  # into HBHEChannelInfoCollection despite the fact that the channels
39  # are either tagged bad in DB of zero-suppressed. Note that the rechit
40  # collection will not include such channels even if this flag is set.
41  saveDroppedInfos = cms.bool(False),
42 
43  # Configure the reconstruction algorithm
44  algorithm = cms.PSet(
45  # Parameters for "Method 3" (non-keyword arguments have to go first)
46  method3.m3Parameters,
47  method2.m2Parameters,
48 
49  Class = cms.string("SimpleHBHEPhase1Algo"),
50 
51  # Time shift (in ns) to add to TDC timing (for QIE11)
52  tdcTimeShift = cms.double(0.0),
53 
54  # Parameters for "Method 0"
55  firstSampleShift = cms.int32(0),
56  samplesToAdd = cms.int32(2),
57  correctForPhaseContainment = cms.bool(True),
58  correctionPhaseNS = cms.double(6.0),
59 
60  # Use "Method 2"?
61  useM2 = cms.bool(True),
62 
63  # Use "Method 3"?
64  useM3 = cms.bool(True)
65  ),
66 
67  # Reconstruction algorithm configuration data to fetch from DB, if any
68  algoConfigClass = cms.string(""),
69 
70  # Turn rechit status bit setters on/off
71  setNegativeFlagsQIE8 = cms.bool(True),
72  setNegativeFlagsQIE11 = cms.bool(False),
73  setNoiseFlagsQIE8 = cms.bool(True),
74  setNoiseFlagsQIE11 = cms.bool(False),
75  setPulseShapeFlagsQIE8 = cms.bool(True),
76  setPulseShapeFlagsQIE11 = cms.bool(False),
77  setLegacyFlagsQIE8 = cms.bool(True),
78  setLegacyFlagsQIE11 = cms.bool(False),
79 
80  # Parameter sets configuring rechit status bit setters
81  flagParametersQIE8 = cms.PSet(
82  hbheStatusFlag.qie8Config
83  ),
84  flagParametersQIE11 = cms.PSet(),
85 
86  pulseShapeParametersQIE8 = cms.PSet(
87  pulseShapeFlag.qie8Parameters
88  ),
89  pulseShapeParametersQIE11 = cms.PSet()
90 )
91 
92 # Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
93 hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)