CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
isoTrackCalib.py
Go to the documentation of this file.
2 
3 process = cms.Process("hcalCalib")
4 
5 process.load("Configuration.StandardSequences.GeometryHCAL_cff")
6 
7 # no CMS input files
8 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(0) )
9 process.source = cms.Source("EmptySource")
10 
11 
12 process.hcalCalib = cms.EDAnalyzer("HcalCalibrator",
13 
14 
15 
16 #-------- File containing the list of the input root files
17  inputFileList = cms.untracked.string("test/inputFiles_IsoTrkCalib.list"),
18 
19 #-------- calibration type: ISO_TRACK or DI_JET
20  calibType = cms.untracked.string("ISO_TRACK"),
21 
22 #-------- calibration method: L3, MATRIX_INV_OF_ETA_AVE, L3_AND_MTRX_INV
23  calibMethod = cms.untracked.string("L3_AND_MTRX_INV"),
24 
25 # --------min target energy: ref jet (had) energy, or isotrack momentum
26  minTargetE = cms.untracked.double(40.0),
27 
28 # ------- max target energy: ref jet (had) energy, or isotrack momentum
29  maxTargetE = cms.untracked.double(60.0),
30 
31 # ------- min energy in the cell
32  minCellE = cms.untracked.double(0.0),
33 
34 # ------- minimum e/p to accept an IsoTrack for calibration (not used for DiJEts)
35  minEOverP = cms.untracked.double(0.2),
36 
37 # ------- maximum e/p to accept an IsoTrack for calibration (not used for DiJEts)
38  maxEOverP = cms.untracked.double(999.0),
39 
40 # ------- MIP cut: maximum EM energy associated with the track (not used for DiJEts)
41  maxTrkEmE = cms.untracked.double(1.0),
42 
43 #--------Maximum Et allowed for third jet in the event (affects only DiJets)
44  maxEtThirdJet = cms.untracked.double(5.0),
45 
46 # ------- Minimum deltaPhi for the dijets in degrees: 0-180 (affects only DiJets)
47  minDPhiDiJets = cms.untracked.double(150.0),
48 
49 # ------- logical flag to sum depths in HCAL
50  sumDepths = cms.untracked.bool(True),
51 
52 # ------- logical flag to sum depths 1,2 in HB for towers 15,16.
53 # --------If sumDepths="true" this flag has no effect
54  sumSmallDepths = cms.untracked.bool(True),
55 
56 # ------- logical flag to combine phi in HCAL
57  combinePhi = cms.untracked.bool(True),
58 
59 # ------- cluster size in HB for isotracks: 3 or 5 (means 3x3, 5x5)
60  hbClusterSize = cms.untracked.int32(3),
61 
62 # ------- cluster size in HE for isotracks: 3 or 5 (means 3x3, 5x5)
63  heClusterSize = cms.untracked.int32(3),
64 
65 # -------- flag to use cone clustering -> overrides the above cluster sizes
66 # -------- and uses cone size as specified below
67  useConeClustering = cms.untracked.bool(True),
68 
69 # -------- size of the cone (when useConeClustering=True)
70  maxConeDist = cms.untracked.double(26.2),
71 
72 # ------- max ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion
73 # ------- For all methods: controls the range of correction factors are saved in the output file
74  calibAbsIEtaMax = cms.untracked.int32(24),
75 
76 # ------- max ABS(iEta) used in the calibration: for matrix inversion sets the range for performing inversion
77 # ------- For all methods: controls the range of correction factors are saved in the output file
78  calibAbsIEtaMin = cms.untracked.int32(1),
79 
80 # ------- max EmFraction of probe jet allowed (does not affect isotracks)
81  maxProbeJetEmFrac = cms.untracked.double(0.1),
82 
83 # ------- max EmFraction of tag jet allowed (does not affect isotracks)
84  maxTagJetEmFrac = cms.untracked.double(1.0),
85 
86 # ------- max abs(eta) of tag jet allowed (does not affect isotracks)
87  maxTagJetAbsEta = cms.untracked.double(1.0),
88 
89 # ------- min Et of tag jet allowed (does not affect isotracks)
90  minTagJetEt = cms.untracked.double(30.0),
91 
92 # ------- min abs(eta) of probe jet allowed (does not affect isotracks)
93  minProbeJetAbsEta = cms.untracked.double(1.4),
94 
95 # ------- file containing the phi symmetry corrections (to apply on the fly in isoTrack calibration)
96 # ------- USER PROVIDED!
97  phiSymCorFileName = cms.untracked.string("phiSymCor.txt"),
98 
99 # ------- Flag to read phi symmetry corrections and apply on the fly
100 # ------- Set to false if already applied in Analyzer
101  applyPhiSymCorFlag = cms.untracked.bool(False),
102 
103 # ------- output file with correction factors
104  outputCorCoefFileName = cms.untracked.string("calibConst_IsoTrk.txt"),
105 
106 # ------- output file with some hisograms
107  histoFileName = cms.untracked.string("histoFile.root")
108 
109 )
110 
111 
112 process.p = cms.Path(process.hcalCalib)