CMS 3D CMS Logo

VertexNTupler_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from L1Trigger.VertexFinder.VertexProducer_cff import VertexProducer
3 
4 L1TVertexNTupler = cms.EDAnalyzer('VertexNTupler',
5  inputDataInputTag = cms.InputTag("InputDataProducer","InputData"),
6  genParticleInputTag = cms.InputTag("genParticles",""),
7  l1TracksInputTags = cms.VInputTag( VertexProducer.l1TracksInputTag ),
8  l1TracksTruthMapInputTags = cms.VInputTag( cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks") ),
9  l1TracksTPInputTags = cms.InputTag("TPStubValueMapProducer:allMatchedTPs"),
10  l1TracksTPValueMapInputTags = cms.InputTag("TPStubValueMapProducer:TPs"),
11  l1TracksBranchNames = cms.vstring('hybrid'),
12  l1VertexInputTags = cms.VInputTag( cms.InputTag("VertexProducer", VertexProducer.l1VertexCollectionName.value()) ),
13  l1VertexTrackInputs = cms.vstring('hybrid'),
14  l1VertexBranchNames = cms.vstring('fastHisto'),
15  emulationVertexInputTags = cms.VInputTag(),
16  emulationVertexBranchNames = cms.vstring(),
17  extraL1VertexInputTags = cms.VInputTag(),
18  extraL1VertexDescriptions = cms.vstring(),
19 
20  genJetsInputTag = cms.InputTag("ak4GenJetsNoNu"),
21 
22  #=== Cuts on MC truth particles (i.e., tracking particles) used for tracking efficiency measurements.
23  GenCuts = cms.PSet(
24  GenMinPt = cms.double(2.0),
25  GenMaxAbsEta = cms.double(2.4),
26  GenMaxVertR = cms.double(1.0), # Maximum distance of particle production vertex from centre of CMS.
27  GenMaxVertZ = cms.double(30.0),
28  GenPdgIds = cms.vuint32(), # Only particles with these PDG codes used for efficiency measurement.
29 
30 
31  # Additional cut on MC truth tracks used for algorithmic tracking efficiency measurements.
32  # You should usually set this equal to value of L1TrackDef.MinStubLayers below, unless L1TrackDef.MinPtToReduceLayers
33  # is < 10000, in which case, set it equal to (L1TrackDef.MinStubLayers - 1).
34  GenMinStubLayers = cms.uint32(4)
35  ),
36 
37 
38  #=== Rules for deciding when the track finding has found an L1 track candidate
39  L1TrackDef = cms.PSet(
40  UseLayerID = cms.bool(True),
41  # Reduce this layer ID, so that it takes no more than 8 different values in any eta region (simplifies firmware).
42  ReducedLayerID = cms.bool(True)
43  ),
44 
45  #=== Rules for deciding when a reconstructed L1 track matches a MC truth particle (i.e. tracking particle).
46  TrackMatchDef = cms.PSet(
47  #--- Three different ways to define if a tracking particle matches a reco track candidate. (Usually, set two of them to ultra loose).
48  # Min. fraction of matched stubs relative to number of stubs on reco track.
49  MinFracMatchStubsOnReco = cms.double(-99.),
50  # Min. fraction of matched stubs relative to number of stubs on tracking particle.
51  MinFracMatchStubsOnTP = cms.double(-99.),
52  # Min. number of matched layers.
53  MinNumMatchLayers = cms.uint32(4),
54  # Min. number of matched PS layers.
55  MinNumMatchPSLayers = cms.uint32(0),
56  # Associate stub to TP only if the TP contributed to both its clusters? (If False, then associate even if only one cluster was made by TP).
57  StubMatchStrict = cms.bool(False)
58  ),
59 
60 
61  # === Vertex Reconstruction configuration
62  VertexReconstruction = VertexProducer.VertexReconstruction,
63 
64  # Debug printout
65  debug = VertexProducer.debug,
66  printResults = cms.bool(False)
67 )