CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/SUSYBSMAnalysis/Skimming/python/EXOHSCP_cff.py

Go to the documentation of this file.
00001 TRACK_PT = 20.0  
00002 import FWCore.ParameterSet.Config as cms
00003 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
00004 
00005 
00006 generalTracksSkim = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
00007     src = 'generalTracks',
00008 #       src = 'TrackRefitter',
00009     filter = False,
00010     applyBasicCuts = True,
00011     ptMin = TRACK_PT,
00012     nHitMin = 5,
00013     chi2nMax = 10.,
00014 )
00015 
00016 trackerSeq = cms.Sequence( generalTracksSkim)
00017 
00018 from RecoVertex.BeamSpotProducer.BeamSpot_cff import *
00019 from RecoTracker.TrackProducer.TrackRefitters_cff import *
00020 TrackRefitterSkim = TrackRefitter.clone()
00021 TrackRefitterSkim.src = "generalTracksSkim"
00022 
00023 
00024 dedxSkimNPHarm2 = cms.EDProducer("DeDxEstimatorProducer",
00025     tracks                     = cms.InputTag("TrackRefitterSkim"),
00026     trajectoryTrackAssociation = cms.InputTag("TrackRefitterSkim"),
00027 
00028     estimator      = cms.string('generic'),
00029     exponent       = cms.double(-2.0),
00030 
00031     UseStrip       = cms.bool(True),
00032     UsePixel       = cms.bool(False),
00033     MeVperADCStrip = cms.double(3.61e-06*265),
00034     MeVperADCPixel = cms.double(3.61e-06),
00035 
00036     MisCalib_Mean      = cms.untracked.double(1.0),
00037     MisCalib_Sigma     = cms.untracked.double(0.00),
00038 
00039     UseCalibration  = cms.bool(False),
00040     calibrationPath = cms.string(""),
00041     ShapeTest       = cms.bool(True),
00042 )
00043 
00044 
00045 DedxFilter = cms.EDFilter("HSCPFilter",
00046      inputMuonCollection = cms.InputTag("muons"),
00047          inputTrackCollection = cms.InputTag("TrackRefitterSkim"),
00048          inputDedxCollection =  cms.InputTag("dedxSkimNPHarm2"),
00049      SAMuPtMin = cms.double(60),
00050          trkPtMin = cms.double(TRACK_PT),
00051          dedxMin =cms.double(3.0),
00052      dedxMaxLeft =cms.double(2.8),
00053      ndedxHits = cms.int32(5),
00054      etaMin= cms.double(-2.4),
00055      etaMax= cms.double(2.4),
00056      chi2nMax = cms.double(10),
00057      dxyMax = cms.double(0.5),
00058      dzMax = cms.double(5),
00059      filter = cms.bool(True)
00060 
00061 )
00062 
00063 dedxSeq = cms.Sequence(offlineBeamSpot + TrackRefitterSkim + dedxSkimNPHarm2+DedxFilter)
00064 
00065 
00066 from TrackingTools.TrackAssociator.DetIdAssociatorESProducer_cff import *
00067 from TrackingTools.TrackAssociator.default_cfi import *
00068 
00069 muonEcalDetIds = cms.EDProducer("InterestingEcalDetIdProducer",
00070                                                                 inputCollection = cms.InputTag("muons")
00071                                                                 )
00072 highPtTrackEcalDetIds = cms.EDProducer("HighPtTrackEcalDetIdProducer",
00073                                                                            #TrackAssociatorParameterBlock
00074                                                                            TrackAssociatorParameters=TrackAssociatorParameterBlock.TrackAssociatorParameters,
00075                                                                            inputCollection = cms.InputTag("generalTracksSkim"),
00076                                                                            TrackPt=cms.double(TRACK_PT)
00077                                                                            )
00078 
00079 
00080 
00081 detIdProduceSeq = cms.Sequence(muonEcalDetIds+highPtTrackEcalDetIds)
00082 
00083 reducedHSCPEcalRecHitsEB = cms.EDProducer("ReducedRecHitCollectionProducer",
00084      recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
00085      interestingDetIdCollections = cms.VInputTag(
00086                  #high p_t tracker track ids
00087                  cms.InputTag("highPtTrackEcalDetIds"),
00088              #muons
00089              cms.InputTag("muonEcalDetIds")
00090              ),
00091      reducedHitsCollection = cms.string('')
00092 )
00093 reducedHSCPEcalRecHitsEE = cms.EDProducer("ReducedRecHitCollectionProducer",
00094      recHitsLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
00095      interestingDetIdCollections = cms.VInputTag(
00096                  #high p_t tracker track ids
00097                  cms.InputTag("highPtTrackEcalDetIds"),
00098              #muons
00099              cms.InputTag("muonEcalDetIds")
00100              ),
00101      reducedHitsCollection = cms.string('')
00102 )
00103 
00104 
00105 ecalSeq = cms.Sequence(detIdProduceSeq+reducedHSCPEcalRecHitsEB+reducedHSCPEcalRecHitsEE)
00106 
00107 
00108 reducedHSCPhbhereco = cms.EDProducer("ReduceHcalRecHitCollectionProducer",
00109                                                                          recHitsLabel = cms.InputTag("hbhereco",""),
00110                                                                          TrackAssociatorParameters=TrackAssociatorParameterBlock.TrackAssociatorParameters,
00111                                                                          inputCollection = cms.InputTag("generalTracksSkim"),
00112                                                                          TrackPt=cms.double(TRACK_PT),                                     
00113                                                                          reducedHitsCollection = cms.string('')
00114 )
00115 
00116 hcalSeq = cms.Sequence(reducedHSCPhbhereco)
00117 
00118 muonsSkim = cms.EDProducer("UpdatedMuonInnerTrackRef",
00119     MuonTag        = cms.untracked.InputTag("muons"),
00120     OldTrackTag    = cms.untracked.InputTag("generalTracks"),
00121     NewTrackTag    = cms.untracked.InputTag("generalTracksSkim"),
00122     maxInvPtDiff   = cms.untracked.double(0.005),
00123     minDR          = cms.untracked.double(0.01),
00124 )
00125 muonSeq = cms.Sequence(muonsSkim)
00126 
00127 
00128 
00129 TrackAssociatorParametersForHSCPIsol = TrackAssociatorParameterBlock.TrackAssociatorParameters.clone()
00130 TrackAssociatorParametersForHSCPIsol.useHO = cms.bool(False)
00131 TrackAssociatorParametersForHSCPIsol.CSCSegmentCollectionLabel     = cms.InputTag("cscSegments")
00132 TrackAssociatorParametersForHSCPIsol.DTRecSegment4DCollectionLabel = cms.InputTag("dt4DSegments")
00133 TrackAssociatorParametersForHSCPIsol.EERecHitCollectionLabel       = cms.InputTag("ecalRecHit","EcalRecHitsEE")
00134 TrackAssociatorParametersForHSCPIsol.EBRecHitCollectionLabel       = cms.InputTag("ecalRecHit","EcalRecHitsEB")
00135 TrackAssociatorParametersForHSCPIsol.HBHERecHitCollectionLabel     = cms.InputTag("hbhereco")
00136 
00137 
00138 HSCPIsolation01 = cms.EDProducer("ProduceIsolationMap",
00139       inputCollection  = cms.InputTag("generalTracksSkim"),
00140       IsolationConeDR  = cms.double(0.1),
00141       TkIsolationPtCut = cms.double(10),
00142       TKLabel          = cms.InputTag("generalTracks"),
00143       TrackAssociatorParameters=TrackAssociatorParametersForHSCPIsol,
00144 )
00145 
00146 HSCPIsolation03 = HSCPIsolation01.clone()
00147 HSCPIsolation03.IsolationConeDR  = cms.double(0.3)
00148 
00149 HSCPIsolation05 = HSCPIsolation01.clone()
00150 HSCPIsolation05.IsolationConeDR  = cms.double(0.5)
00151 
00152 exoticaRecoIsoPhotonSeq = cms.EDFilter("MonoPhotonSkimmer",
00153   phoTag = cms.InputTag("photons::RECO"),
00154   selectEE = cms.bool(True),
00155   ecalisoOffsetEB = cms.double(4.2),
00156   ecalisoSlopeEB = cms.double(0.006),
00157   hcalisoOffsetEB = cms.double(2.2),
00158   hcalisoSlopeEB = cms.double(0.0025),
00159   hadoveremEB = cms.double(0.05),
00160   minPhoEtEB = cms.double(20.),
00161   trackIsoOffsetEB = cms.double(2.),
00162   trackIsoSlopeEB =  cms.double(0.001),
00163   etaWidthEB  = cms.double(0.013),
00164                                   
00165   ecalisoOffsetEE = cms.double(4.2),
00166   ecalisoSlopeEE = cms.double(0.006),
00167   hcalisoOffsetEE = cms.double(2.2),
00168   hcalisoSlopeEE = cms.double(0.0025),
00169   hadoveremEE = cms.double(0.05),
00170   minPhoEtEE = cms.double(20.),
00171   trackIsoOffsetEE = cms.double(2.),
00172   trackIsoSlopeEE =  cms.double(0.001),
00173   etaWidthEE  = cms.double(0.03),
00174                                   
00175 
00176  
00177 )
00178 
00179 
00180 exoticaHSCPSeq = cms.Sequence(trackerSeq+dedxSeq+ecalSeq+hcalSeq+muonSeq+HSCPIsolation01+HSCPIsolation03+HSCPIsolation05)
00181 exoticaHSCPIsoPhotonSeq = cms.Sequence(exoticaRecoIsoPhotonSeq + trackerSeq+ecalSeq+hcalSeq+muonSeq+HSCPIsolation01+HSCPIsolation03+HSCPIsolation05)
00182 
00183 EXOHSCPSkim_EventContent=cms.PSet(
00184     outputCommands = cms.untracked.vstring(
00185       "drop *",
00186       "keep GenEventInfoProduct_generator_*_*",
00187       "keep L1GlobalTriggerReadoutRecord_*_*_*",
00188       "keep recoVertexs_offlinePrimaryVertices_*_*",
00189       "keep recoMuons_muonsSkim_*_*",
00190       "keep SiStripClusteredmNewDetSetVector_generalTracksSkim_*_*",
00191       "keep SiPixelClusteredmNewDetSetVector_generalTracksSkim_*_*",
00192       "keep recoTracks_generalTracksSkim_*_*",
00193       "keep recoTrackExtras_generalTracksSkim_*_*",
00194       "keep TrackingRecHitsOwned_generalTracksSkim_*_*",
00195       'keep *_dt1DRecHits_*_*',
00196       'keep *_dt4DSegments_*_*',
00197       'keep *_csc2DRecHits_*_*',
00198       'keep *_cscSegments_*_*',
00199       'keep *_rpcRecHits_*_*',
00200       'keep recoTracks_standAloneMuons_*_*',
00201       'keep recoTrackExtras_standAloneMuons_*_*',
00202       'keep TrackingRecHitsOwned_standAloneMuons_*_*',
00203       'keep recoTracks_globalMuons_*_*',
00204       'keep recoTrackExtras_globalMuons_*_*',
00205       'keep TrackingRecHitsOwned_globalMuons_*_*',
00206       'keep EcalRecHitsSorted_reducedHSCPEcalRecHitsEB_*_*',
00207       'keep EcalRecHitsSorted_reducedHSCPEcalRecHitsEE_*_*',
00208       'keep HBHERecHitsSorted_reducedHSCPhbhereco__*',
00209       'keep edmTriggerResults_TriggerResults__*',
00210       'keep *_hltTriggerSummaryAOD_*_*',
00211       'keep *_HSCPIsolation01__*',
00212       'keep *_HSCPIsolation03__*',
00213       'keep *_HSCPIsolation05__*',
00214       'keep recoPFJets_ak5PFJets__*', 
00215       'keep recoPFMETs_pfMet__*',
00216       'keep recoBeamSpot_offlineBeamSpot__*',
00217       )
00218     )
00219 
00220 
00221 
00222