CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hcalnoiseinfoproducer_cfi.py
Go to the documentation of this file.
2 
3 HcalNoiseParameterSet = cms.PSet(
4  # define hit energy thesholds
5  minRecHitE = cms.double(1.5),
6  minLowHitE = cms.double(10.0),
7  minHighHitE = cms.double(25.0),
8 
9  # define energy threshold for "problematic" cuts
10  pMinERatio = cms.double(25.0),
11  pMinEZeros = cms.double(5.0),
12  pMinEEMF = cms.double(10.0),
13 
14  # define energy threshold for loose/tight/high level cuts
15  minERatio = cms.double(50.0),
16  minEZeros = cms.double(10.0),
17  minEEMF = cms.double(50.0),
18 
19  # define problematic RBX
20  pMinE = cms.double(40.0),
21  pMinRatio = cms.double(0.75),
22  pMaxRatio = cms.double(0.85),
23  pMinHPDHits = cms.int32(10),
24  pMinRBXHits = cms.int32(20),
25  pMinHPDNoOtherHits = cms.int32(7),
26  pMinZeros = cms.int32(4),
27  pMinLowEHitTime = cms.double(-6.0),
28  pMaxLowEHitTime = cms.double(6.0),
29  pMinHighEHitTime = cms.double(-4.0),
30  pMaxHighEHitTime = cms.double(5.0),
31  pMaxHPDEMF = cms.double(0.02),
32  pMaxRBXEMF = cms.double(0.02),
33 
34  # define loose noise cuts
35  lMinRatio = cms.double(-999.),
36  lMaxRatio = cms.double(999.),
37  lMinHPDHits = cms.int32(17),
38  lMinRBXHits = cms.int32(999),
39  lMinHPDNoOtherHits = cms.int32(10),
40  lMinZeros = cms.int32(10),
41  lMinLowEHitTime = cms.double(-9999.0),
42  lMaxLowEHitTime = cms.double(9999.0),
43  lMinHighEHitTime = cms.double(-9999.0),
44  lMaxHighEHitTime = cms.double(9999.0),
45 
46  # define tight noise cuts
47  tMinRatio = cms.double(-999.),
48  tMaxRatio = cms.double(999.),
49  tMinHPDHits = cms.int32(16),
50  tMinRBXHits = cms.int32(50),
51  tMinHPDNoOtherHits = cms.int32(9),
52  tMinZeros = cms.int32(8),
53  tMinLowEHitTime = cms.double(-9999.0),
54  tMaxLowEHitTime = cms.double(9999.0),
55  tMinHighEHitTime = cms.double(-7.0),
56  tMaxHighEHitTime = cms.double(6.0),
57 
58  # define high level noise cuts
59  hlMaxHPDEMF = cms.double(-9999.0),
60  hlMaxRBXEMF = cms.double(0.01),
61 
62  # RBX-wide TS4TS5 variable
63  TS4TS5EnergyThreshold = cms.double(50),
64  TS4TS5UpperThreshold = cms.vdouble(70, 90, 100, 400, 4000),
65  TS4TS5UpperCut = cms.vdouble(1, 0.8, 0.75, 0.72, 0.72),
66  TS4TS5LowerThreshold = cms.vdouble(100, 120, 150, 200, 300, 400, 500),
67  TS4TS5LowerCut = cms.vdouble(-1, -0.7, -0.4, -0.2, -0.08, 0, 0.1)
68  )
69 
70 
71 hcalnoise = cms.EDProducer(
72  'HcalNoiseInfoProducer',
73 
74  # general noise parameters
75  HcalNoiseParameterSet,
76 
77  # what to fill
78  fillDigis = cms.bool(True),
79  fillRecHits = cms.bool(True),
80  fillCaloTowers = cms.bool(True),
81  fillTracks = cms.bool(True),
82 
83  # maximum number of RBXs to fill
84  # if you want to record all RBXs above some energy threshold,
85  # change maxProblemRBXs to 999 and pMinE (above) to the threshold you want
86  maxProblemRBXs = cms.int32(20),
87 
88  # parameters for calculating summary variables
89  maxCaloTowerIEta = cms.int32(20),
90  maxTrackEta = cms.double(2.0),
91  minTrackPt = cms.double(1.0),
92 
93  # collection names
94  digiCollName = cms.string('hcalDigis'),
95  recHitCollName = cms.string('hbhereco'),
96  caloTowerCollName = cms.string('towerMaker'),
97  trackCollName = cms.string('generalTracks'),
98 
99  # severity level
100  HcalAcceptSeverityLevel = cms.uint32(9),
101 
102  # which hcal calo flags to mask (HBHEIsolatedNoise=11, HBHEFlatNoise=12, HBHESpikeNoise=13, HBHETriangleNoise=14, HBHETS4TS5Noise=15)
103  HcalRecHitFlagsToBeExcluded = cms.vint32(11, 12, 13, 14, 15),
104 )