CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
particleFlowCluster_cff.py
Go to the documentation of this file.
2 
3 import Geometry.HcalEventSetup.hcalTopologyIdeal_cfi
4 
11 
18 
21 
22 withTime = False
23 if withTime:
24  pfClusteringECAL = cms.Sequence(particleFlowRecHitECALWithTime*
25  particleFlowClusterECALWithTimeSequence)
26  particleFlowClusterECAL.inputECAL = cms.InputTag('particleFlowClusterECALWithTimeSelected')
27 else:
28  pfClusteringECAL = cms.Sequence(particleFlowRecHitECAL*
29  particleFlowClusterECALSequence)
30 
31 pfClusteringHCAL = cms.Sequence(particleFlowRecHitHCAL*particleFlowClusterHCAL)
32 pfClusteringHCALall = cms.Sequence(particleFlowClusterHCAL+particleFlowClusterHFHAD+particleFlowClusterHFEM)
33 pfClusteringHCAL = cms.Sequence(particleFlowRecHitHCAL*pfClusteringHCALall)
34 
35 pfClusteringHO = cms.Sequence(particleFlowRecHitHO*particleFlowClusterHO)
36 
37 #pfClusteringHCAL = cms.Sequence(particleFlowRecHitHCAL*particleFlowClusterHCAL*particleFlowClusterHFHAD*particleFlowClusterHFEM)
38 pfClusteringPS = cms.Sequence(particleFlowRecHitPS*particleFlowClusterPS)
39 
40 towerMakerPF = calotowermaker.clone()
41 
42 # Changed values
43 # Don't use calotowers for HO, instead we use RecHits directly, and perform the links with tracks and HCAL clusters.
44 towerMakerPF.UseHO = False
45 # Energy threshold for HB Cell inclusion
46 towerMakerPF.HBThreshold = 0.4
47 # Energy threshold for HE (S = 5 degree, D = 10 degree, in phi) Cell inclusion
48 towerMakerPF.HESThreshold = 0.4
49 towerMakerPF.HEDThreshold = 0.4
50 
51 # Default values
52 # Energy threshold for HO cell inclusion [GeV]
53 towerMakerPF.HOThreshold0 = 0.2
54 towerMakerPF.HOThresholdPlus1 = 0.8
55 towerMakerPF.HOThresholdMinus1 = 0.8
56 towerMakerPF.HOThresholdPlus2 = 0.8
57 towerMakerPF.HOThresholdMinus2 = 0.8
58 # Weighting factor for HO
59 towerMakerPF.HOWeight = 1.0
60 towerMakerPF.HOWeights = (1.0, 1.0, 1.0, 1.0, 1.0)
61 # Weighting factor for HF short-fiber readouts
62 towerMakerPF.HF2Weight = 1.0
63 towerMakerPF.HF2Weights = (1.0, 1.0, 1.0, 1.0, 1.0)
64 # Weighting factor for HF long-fiber readouts
65 towerMakerPF.HF1Weight = 1.0
66 towerMakerPF.HF1Weights = (1.0, 1.0, 1.0, 1.0, 1.0)
67 # Energy threshold for long-fiber HF readout inclusion [GeV]
68 towerMakerPF.HF1Threshold = 1.2
69 # Energy threshold for short-fiber HF readout inclusion [GeV]
70 towerMakerPF.HF2Threshold = 1.8
71 # Weighting factor for HB cells
72 towerMakerPF.HBWeight = 1.0
73 towerMakerPF.HBWeights = (1.0, 1.0, 1.0, 1.0, 1.0)
74 # Weighting factor for HE 5-degree cells
75 towerMakerPF.HESWeight = 1.0
76 towerMakerPF.HESWeights = (1.0, 1.0, 1.0, 1.0, 1.0)
77 # Weighting factor for HE 10-degree cells
78 towerMakerPF.HEDWeight = 1.0
79 towerMakerPF.HEDWeights = (1.0, 1.0, 1.0, 1.0, 1.0)
80 # Global energy threshold on Hcal [GeV]
81 towerMakerPF.HcalThreshold = -1000.0
82 # Global energy threshold on tower [GeV]
83 towerMakerPF.EcutTower = -1000.0
84 # parameters for handling of anomalous cells
85 # acceptable severity level
86 towerMakerPF.HcalAcceptSeverityLevel = 11
87 # use of recovered hits
88 towerMakerPF.UseHcalRecoveredHits = True
89 # flag to allow/disallow missing inputs
90 towerMakerPF.AllowMissingInputs = False
91 
92 particleFlowClusterWithoutHO = cms.Sequence(
93  #caloTowersRec*
94  towerMakerPF*
95  pfClusteringPS*
96  pfClusteringECAL*
97  pfClusteringHCAL
98 )
99 
100 particleFlowCluster = cms.Sequence(
101  #caloTowersRec*
102  towerMakerPF*
103  pfClusteringPS*
104  pfClusteringECAL*
105  pfClusteringHCAL*
106  pfClusteringHO
107 )
108 
109