CMS 3D CMS Logo

generalV0Candidates_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 generalV0Candidates = cms.EDProducer("V0Producer",
4 
5  # which beamSpot to reference
6  beamSpot = cms.InputTag('offlineBeamSpot'),
7 
8  # reference primary vertex instead of beamSpot
9  useVertex = cms.bool(False),
10  # which vertex collection to use
11  vertices = cms.InputTag('offlinePrimaryVertices'),
12 
13  # which TrackCollection to use for vertexing
14  trackRecoAlgorithm = cms.InputTag('generalTracks'),
15 
16  # which V0s to reconstruct
17  doKShorts = cms.bool(True),
18  doLambdas = cms.bool(True),
19 
20  # perform vertex fit (if false, the POCA is used in lieu of the point
21  # resulting from a fit)
22  doFit = cms.bool(True),
23 
24  # which vertex fitting algorithm to use
25  # True -> KalmanVertexFitter (recommended)
26  # False -> AdaptiveVertexFitter (not recommended)
27  vertexFitter = cms.bool(True),
28 
29  # use the refitted tracks returned from the KVF for V0Candidate kinematics
30  # this is automatically set to False if using the AdaptiveVertexFitter
31  useRefTracks = cms.bool(True),
32 
33  # -- cuts on initial track collection --
34  # Track normalized Chi2 <
35  tkChi2Cut = cms.double(10.),
36  # Number of valid hits on track >=
37  tkNHitsCut = cms.int32(3),
38  # Pt of track >
39  tkPtCut = cms.double(0.35),
40  # Track impact parameter significance >
41  tkIPSigXYCut = cms.double(2.),
42  tkIPSigZCut = cms.double(-1.),
43 
44  # -- cuts on the vertex --
45  # Vertex chi2 <
46  vtxChi2Cut = cms.double(6.63),
47  # XY decay distance significance >
48  vtxDecaySigXYCut = cms.double(15.),
49  # XY decay distance >
50  vtxDecayXYCut = cms.double(-1.),
51  # XY decay distance for same-sign vertices >
52  ssVtxDecayXYCut = cms.double(-1.),
53  # XYZ decay distance significance >
54  vtxDecaySigXYZCut = cms.double(-1.),
55 
56  # -- miscellaneous cuts --
57  # allow same-sign pairs of tracks
58  allowSS = cms.bool(False),
59  # Threshold for inner/outer DCA cuts:
60  # inner tracks = distance between POCA and z-axis <
61  # outer tracks = distance between POCA and z-axis >=
62  innerOuterTkDCAThreshold = cms.double(5.),
63  # POCA distance between inner tracks <
64  innerTkDCACut = cms.double(1.),
65  # POCA distance between outer tracks <
66  outerTkDCACut = cms.double(1.),
67  # allow vertices where the angle between the tracks is more than 90 degrees
68  allowWideAngleVtx = cms.bool(False),
69  # invariant mass of track pair - assuming both tracks are charged pions <
70  mPiPiCut = cms.double(0.6),
71  # check if either track has a hit radially inside the vertex position minus this number times the sigma of the vertex fit
72  # note: Set this to -1 to disable this cut, which MUST be done if you want to run V0Producer on the AOD track collection!
73  innerHitPosCut = cms.double(4.),
74  # cos(angleXY) between x and p of V0 candidate >
75  cosThetaXYCut = cms.double(0.998),
76  # cos(angleXYZ) between x and p of V0 candidate >
77  cosThetaXYZCut = cms.double(-2.),
78 
79  # -- cuts on the V0 candidate mass --
80  # V0 mass window +- pdg value
81  kShortMassCut = cms.double(0.07),
82  lambdaMassCut = cms.double(0.05)
83 
84 )
85