test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingParticleSelectionsForEfficiency_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 generalTpSelectorBlock = cms.PSet(
4  lip = cms.double(30.0),
5  chargedOnly = cms.bool(True),
6  pdgId = cms.vint32(),
7  signalOnly = cms.bool(True),
8  intimeOnly = cms.bool(False),
9  stableOnly = cms.bool(False),
10  minRapidity = cms.double(-2.5),
11  minHit = cms.int32(0),
12  ptMin = cms.double(0.9),
13  maxRapidity = cms.double(2.5),
14  tip = cms.double(3.5)
15 )
16 
17 from Configuration.StandardSequences.Eras import eras
18 if eras.fastSim.isChosen():
19  generalTpSelectorBlock.stableOnly = True
20 
21 TpSelectorForEfficiencyVsEtaBlock = generalTpSelectorBlock.clone()
22 TpSelectorForEfficiencyVsPhiBlock = generalTpSelectorBlock.clone()
23 TpSelectorForEfficiencyVsPtBlock = generalTpSelectorBlock.clone(ptMin = 0.050 )
24 TpSelectorForEfficiencyVsVTXRBlock = generalTpSelectorBlock.clone(tip = 60.0)
25 TpSelectorForEfficiencyVsVTXZBlock = generalTpSelectorBlock.clone()
26 
27 def _modifyForPhase1(pset):
28  pset.minRapidity = -3
29  pset.maxRapidity = 3
30 eras.phase1Pixel.toModify(generalTpSelectorBlock, _modifyForPhase1)
31 eras.phase1Pixel.toModify(TpSelectorForEfficiencyVsEtaBlock, _modifyForPhase1)