Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 allConversions = cms.EDProducer('ConversionProducer',
0004     AlgorithmName = cms.string('mixed'),
0005     #src = cms.VInputTag(cms.InputTag("generalTracks")),
0006     src = cms.InputTag("gsfGeneralInOutOutInConversionTrackMerger"),
0007     convertedPhotonCollection = cms.string(''), ## or empty
0008 
0009     bcEndcapCollection = cms.InputTag('particleFlowSuperClusterECAL:particleFlowBasicClusterECALEndcap'),
0010     bcBarrelCollection = cms.InputTag('particleFlowSuperClusterECAL:particleFlowBasicClusterECALBarrel'),
0011     scBarrelProducer = cms.InputTag('particleFlowSuperClusterECAL:particleFlowSuperClusterECALBarrel'),
0012     scEndcapProducer = cms.InputTag('particleFlowSuperClusterECAL:particleFlowSuperClusterECALEndcapWithPreshower'),
0013 
0014     primaryVertexProducer = cms.InputTag('offlinePrimaryVerticesWithBS'),
0015 
0016     deltaEta = cms.double(0.4), #track pair search range in eta (applied even in case of preselection bypass)
0017 
0018     HalfwayEta = cms.double(.1),# Track-bc matching search range on Eta
0019     maxNumOfTrackInPU =  cms.int32(999999),
0020     maxTrackRho =  cms.double(120.),
0021     maxTrackZ =  cms.double(300.),                                    
0022     minSCEt = cms.double(10.0),
0023     dEtacutForSCmatching = cms.double(0.03),
0024     dPhicutForSCmatching = cms.double(0.05),                                       
0025     dEtaTrackBC = cms.double(.2), # Track-Basic cluster matching, position diff on eta
0026     dPhiTrackBC = cms.double(1.), # Track-Basic cluster matching, position diff on phi
0027     EnergyBC = cms.double(0.3), # Track-Basic cluster matching, BC energy lower cut
0028     EnergyTotalBC = cms.double(.3), # Track-Basic cluster matching, two BC energy summation cut
0029     #tight cuts
0030     d0 = cms.double(0.), #d0*charge cut
0031     MaxChi2Left = cms.double(10.), #Track quality
0032     MaxChi2Right = cms.double(10.),
0033     MinHitsLeft = cms.int32(4),
0034     MinHitsRight = cms.int32(2),
0035     DeltaCotTheta = cms.double(0.1), #Track pair opening angle on R-Z
0036     DeltaPhi = cms.double(.2), #Track pair opening angle on X-Y (not a final selection cut)
0037     vtxChi2 = cms.double(0.0005),
0038     MinApproachLow = cms.double(-.25), #Track pair min distance at approaching point on X-Y      
0039     MinApproachHigh = cms.double(1.0), #Track pair min distance at approaching point on X-Y
0040     rCut = cms.double(2.0),#analytical track cross point
0041     dz = cms.double(5.0),#track pair inner position difference
0042 
0043 # kinematic vertex fit parameters
0044     maxDelta = cms.double(0.01),#delta of parameters
0045     maxReducedChiSq = cms.double(225.),#maximum chi^2 per degree of freedom before fit is terminated
0046     minChiSqImprovement = cms.double(50.),#threshold for "significant improvement" in the fit termination logic
0047     maxNbrOfIterations = cms.int32(40),#maximum number of convergence iterations
0048 
0049     UsePvtx = cms.bool(True),
0050     
0051     AllowD0 = cms.bool(True), #Allow d0*charge cut
0052     AllowDeltaPhi = cms.bool(False),
0053     AllowTrackBC = cms.bool(False), #Allow to match track-basic cluster
0054     AllowDeltaCot = cms.bool(True), #Allow pairing using delta cot theta cut
0055     AllowMinApproach = cms.bool(True), #Allow pairing using min approach cut
0056     AllowOppCharge = cms.bool(True), #use opposite charge tracks to pair
0057     AllowVertex = cms.bool(True),
0058     bypassPreselGsf = cms.bool(True), #bypass preselection for gsf + X pairs
0059     bypassPreselEcal = cms.bool(False), #bypass preselection for ecal-seeded + X pairs
0060     bypassPreselEcalEcal = cms.bool(True), #bypass preselection for ecal-seeded + ecal-seeded pairs    
0061     AllowSingleLeg = cms.bool(False), #Allow single track conversion
0062     AllowRightBC = cms.bool(False) #Require second leg matching basic cluster
0063 )
0064 
0065 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0066 phase2_hgcal.toModify( allConversions, bypassPreselGsf = False )
0067 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0068 fastSim.toModify(allConversions, src = 'gsfGeneralConversionTrackMerger')