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  # Calibration digi noise variables (used for finding laser noise events)
63  calibdigiHBHEthreshold = cms.double(15), # minimum threshold in fC of any HBHE calib digi to be counted in summary
64  calibdigiHBHEtimeslices=cms.vint32(3,4,5,6), # time slices to use when determining charge of HBHE calib digis
65  calibdigiHFthreshold = cms.double(-999), # minimum threshold in fC of any HF calib digi to be counted in summary
66  calibdigiHFtimeslices=cms.vint32(0,1,2,3,4,5,6,7,8,9), # time slices to use when determining charge of HF calib digis
67 
68 
69  # RBX-wide TS4TS5 variable
70  TS4TS5EnergyThreshold = cms.double(50),
71  TS4TS5UpperThreshold = cms.vdouble(70, 90, 100, 400, 4000),
72  TS4TS5UpperCut = cms.vdouble(1, 0.8, 0.75, 0.72, 0.72),
73  TS4TS5LowerThreshold = cms.vdouble(100, 120, 150, 200, 300, 400, 500),
74  TS4TS5LowerCut = cms.vdouble(-1, -0.7, -0.4, -0.2, -0.08, 0, 0.1)
75  )
76 
77 
78 hcalnoise = cms.EDProducer(
79  'HcalNoiseInfoProducer',
80 
81  # general noise parameters
82  HcalNoiseParameterSet,
83 
84  # what to fill
85  fillDigis = cms.bool(True),
86  fillRecHits = cms.bool(True),
87  fillCaloTowers = cms.bool(True),
88  fillTracks = cms.bool(True),
89 
90  # maximum number of RBXs to fill
91  # if you want to record all RBXs above some energy threshold,
92  # change maxProblemRBXs to 999 and pMinE (above) to the threshold you want
93  maxProblemRBXs = cms.int32(20),
94 
95  # parameters for calculating summary variables
96  maxCaloTowerIEta = cms.int32(20),
97  maxTrackEta = cms.double(2.0),
98  minTrackPt = cms.double(1.0),
99 
100  # collection names
101  digiCollName = cms.string('hcalDigis'),
102  recHitCollName = cms.string('hbhereco'),
103  caloTowerCollName = cms.string('towerMaker'),
104  trackCollName = cms.string('generalTracks'),
105 
106  # severity level
107  HcalAcceptSeverityLevel = cms.uint32(9),
108 
109  # which hcal calo flags to mask (HBHEIsolatedNoise=11, HBHEFlatNoise=12, HBHESpikeNoise=13, HBHETriangleNoise=14, HBHETS4TS5Noise=15)
110  HcalRecHitFlagsToBeExcluded = cms.vint32(11, 12, 13, 14, 15),
111 )