CMS 3D CMS Logo

allConversions_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 allConversions = cms.EDProducer('ConversionProducer',
4  AlgorithmName = cms.string('mixed'),
5  #src = cms.VInputTag(cms.InputTag("generalTracks")),
6  src = cms.InputTag("gsfGeneralInOutOutInConversionTrackMerger"),
7  convertedPhotonCollection = cms.string(''),
8 
9  bcEndcapCollection = cms.InputTag('particleFlowSuperClusterECAL:particleFlowBasicClusterECALEndcap'),
10  bcBarrelCollection = cms.InputTag('particleFlowSuperClusterECAL:particleFlowBasicClusterECALBarrel'),
11  scBarrelProducer = cms.InputTag('particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel'),
12  scEndcapProducer = cms.InputTag('particleFlowSuperClusterECAL:particleFlowSuperClusterECALEndcapWithPreshower'),
13 
14  primaryVertexProducer = cms.InputTag('offlinePrimaryVerticesWithBS'),
15 
16  deltaEta = cms.double(0.4), #track pair search range in eta (applied even in case of preselection bypass)
17 
18  HalfwayEta = cms.double(.1),# Track-bc matching search range on Eta
19  maxNumOfTrackInPU = cms.int32(999999),
20  maxTrackRho = cms.double(120.),
21  maxTrackZ = cms.double(300.),
22  minSCEt = cms.double(10.0),
23  dEtacutForSCmatching = cms.double(0.03),
24  dPhicutForSCmatching = cms.double(0.05),
25  dEtaTrackBC = cms.double(.2), # Track-Basic cluster matching, position diff on eta
26  dPhiTrackBC = cms.double(1.), # Track-Basic cluster matching, position diff on phi
27  EnergyBC = cms.double(0.3), # Track-Basic cluster matching, BC energy lower cut
28  EnergyTotalBC = cms.double(.3), # Track-Basic cluster matching, two BC energy summation cut
29  #tight cuts
30  d0 = cms.double(0.), #d0*charge cut
31  MaxChi2Left = cms.double(10.), #Track quality
32  MaxChi2Right = cms.double(10.),
33  MinHitsLeft = cms.int32(4),
34  MinHitsRight = cms.int32(2),
35  DeltaCotTheta = cms.double(0.1), #Track pair opening angle on R-Z
36  DeltaPhi = cms.double(.2), #Track pair opening angle on X-Y (not a final selection cut)
37  vtxChi2 = cms.double(0.0005),
38  MinApproachLow = cms.double(-.25), #Track pair min distance at approaching point on X-Y
39  MinApproachHigh = cms.double(1.0), #Track pair min distance at approaching point on X-Y
40  rCut = cms.double(2.0),#analytical track cross point
41  dz = cms.double(5.0),#track pair inner position difference
42 
43 # kinematic vertex fit parameters
44  maxDelta = cms.double(0.01),#delta of parameters
45  maxReducedChiSq = cms.double(225.),#maximum chi^2 per degree of freedom before fit is terminated
46  minChiSqImprovement = cms.double(50.),#threshold for "significant improvement" in the fit termination logic
47  maxNbrOfIterations = cms.int32(40),#maximum number of convergence iterations
48 
49  UsePvtx = cms.bool(True),
50 
51  AllowD0 = cms.bool(True), #Allow d0*charge cut
52  AllowDeltaPhi = cms.bool(False),
53  AllowTrackBC = cms.bool(False), #Allow to match track-basic cluster
54  AllowDeltaCot = cms.bool(True), #Allow pairing using delta cot theta cut
55  AllowMinApproach = cms.bool(True), #Allow pairing using min approach cut
56  AllowOppCharge = cms.bool(True), #use opposite charge tracks to pair
57  AllowVertex = cms.bool(True),
58  bypassPreselGsf = cms.bool(True), #bypass preselection for gsf + X pairs
59  bypassPreselEcal = cms.bool(False), #bypass preselection for ecal-seeded + X pairs
60  bypassPreselEcalEcal = cms.bool(True), #bypass preselection for ecal-seeded + ecal-seeded pairs
61  AllowSingleLeg = cms.bool(False), #Allow single track conversion
62  AllowRightBC = cms.bool(False) #Require second leg matching basic cluster
63 )
64 
65 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
66 phase2_hgcal.toModify( allConversions, bypassPreselGsf = False )
67 from Configuration.Eras.Modifier_fastSim_cff import fastSim
68 fastSim.toModify(allConversions, src = 'gsfGeneralConversionTrackMerger')
69 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
70 egamma_lowPt_exclusive.toModify(allConversions, minSCEt = 1.0)