CMS 3D CMS Logo

deepFlavour_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from RecoBTag.Combined.pfDeepCSVTagInfos_cfi import pfDeepCSVTagInfos
3 from RecoBTag.Combined.pfDeepCMVATagInfos_cfi import pfDeepCMVATagInfos
4 from RecoBTag.Combined.pfDeepCSVJetTags_cfi import pfDeepCSVJetTags
5 from RecoBTag.Combined.pfDeepCSVDiscriminatorsJetTags_cfi import pfDeepCSVDiscriminatorsJetTags
6 from RecoBTag.Combined.pfDeepCMVAJetTags_cfi import pfDeepCMVAJetTags
7 from RecoBTag.Combined.pfDeepCMVADiscriminatorsJetTags_cfi import pfDeepCMVADiscriminatorsJetTags
8 
9 
12 
13 pfDeepCSVNegativeTagInfos = pfDeepCSVTagInfos.clone(
14  svTagInfos=cms.InputTag('pfInclusiveSecondaryVertexFinderNegativeTagInfos'),
15  computer = dict(
16  vertexFlip = True,
17  trackFlip = True,
18  trackSelection = dict(
19  sip3dSigMax = 10.0
20  ),
21  trackPseudoSelection = dict(
22  sip3dSigMax = 10.0,
23  sip2dSigMin = -99999.9,
24  sip2dSigMax = -2.0
25  )
26  )
27  )
28 
29 pfNegativeDeepCSVJetTags = pfDeepCSVJetTags.clone(
30  src=cms.InputTag('pfDeepCSVNegativeTagInfos')
31  )
32 
33 pfDeepCSVPositiveTagInfos = pfDeepCSVTagInfos.clone(
34  computer = dict(
35  trackSelection = dict(
36  sip3dSigMin = 0
37  ),
38  trackPseudoSelection = dict(
39  sip3dSigMin = 0
40  )
41  )
42 
43  )
44 
45 pfPositiveDeepCSVJetTags = pfDeepCSVJetTags.clone(
46  src=cms.InputTag('pfDeepCSVPositiveTagInfos')
47  )
48 
49 # Deep CMVA
50 pfDeepCMVANegativeTagInfos = pfDeepCMVATagInfos.clone(
51  deepNNTagInfos = cms.InputTag('pfDeepCSVNegativeTagInfos')
52  )
53 
54 pfNegativeDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
55  src=cms.InputTag('pfDeepCMVANegativeTagInfos')
56  )
57 
58 pfDeepCMVAPositiveTagInfos = pfDeepCMVATagInfos.clone(
59  deepNNTagInfos = cms.InputTag('pfDeepCSVPositiveTagInfos')
60  )
61 pfPositiveDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
62  src=cms.InputTag('pfDeepCMVAPositiveTagInfos')
63  )
64 
65 
66 
67 ## Deep CSV+CMVA sequence, not complete as it would need the IP and SV tag infos
68 pfDeepCSVTask = cms.Task(
69  pfDeepCSVTagInfos,
70  pfDeepCMVATagInfos, #SKIP for the moment
71  pfDeepCSVJetTags,
72  pfDeepCMVAJetTags
73 )
74 
75 pfDeepCSV = cms.Sequence(pfDeepCSVTask)