CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.DeepCMVATagInfoProducer_cfi import pfDeepCMVATagInfos
4 from RecoBTag.Combined.pfDeepCSVJetTags_cfi import pfDeepCSVJetTags
5 from RecoBTag.Combined.pfDeepCMVAJetTags_cfi import pfDeepCMVAJetTags
6 
7 ##
8 ## Negative and positive taggers for light SF estimation
9 ##
10 
11 pfDeepCSVNegativeTagInfos = pfDeepCSVTagInfos.clone(
12  svTagInfos=cms.InputTag('pfInclusiveSecondaryVertexFinderNegativeTagInfos')
13  )
14 pfDeepCSVNegativeTagInfos.computer.vertexFlip = True
15 pfDeepCSVNegativeTagInfos.computer.trackFlip = True
16 pfDeepCSVNegativeTagInfos.computer.trackSelection.sip3dSigMax = 0
17 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip3dSigMax = 0
18 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip2dSigMin = -99999.9
19 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip2dSigMax = -2.0
20 
21 pfNegativeDeepCSVJetTags = pfDeepCSVJetTags.clone(
22  src=cms.InputTag('pfDeepCSVNegativeTagInfos')
23  )
24 
25 pfDeepCSVPositiveTagInfos = pfDeepCSVTagInfos.clone()
26 pfDeepCSVPositiveTagInfos.computer.trackSelection.sip3dSigMin = 0
27 pfDeepCSVPositiveTagInfos.computer.trackPseudoSelection.sip3dSigMin = 0
28 pfPositiveDeepCSVJetTags = pfDeepCSVJetTags.clone(
29  src=cms.InputTag('pfDeepCSVPositiveTagInfos')
30  )
31 
32 # Deep CMVA
33 pfDeepCMVANegativeTagInfos = pfDeepCMVATagInfos.clone(
34  deepNNTagInfos = cms.InputTag('pfDeepCSVNegativeTagInfos')
35  )
36 
37 pfNegativeDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
38  src=cms.InputTag('pfDeepCMVANegativeTagInfos')
39  )
40 
41 pfDeepCMVAPositiveTagInfos = pfDeepCMVATagInfos.clone(
42  deepNNTagInfos = cms.InputTag('pfDeepCSVPositiveTagInfos')
43  )
44 pfPositiveDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
45  src=cms.InputTag('pfDeepCMVAPositiveTagInfos')
46  )
47 
48 
49 
50 ##
51 ## Deep Flavour sequence, not complete as it would need the IP and SV tag infos
52 ##
53 pfDeepFlavour = cms.Sequence(
54  pfDeepCSVTagInfos
55  ##* pfDeepCMVATagInfos * #SKIP for the moment
56  * pfDeepCSVJetTags
57  ##* pfDeepCMVAJetTags
58 )
59