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  )
16 pfDeepCSVNegativeTagInfos.computer.vertexFlip = True
17 pfDeepCSVNegativeTagInfos.computer.trackFlip = True
18 pfDeepCSVNegativeTagInfos.computer.trackSelection.sip3dSigMax = 0
19 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip3dSigMax = 0
20 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip2dSigMin = -99999.9
21 pfDeepCSVNegativeTagInfos.computer.trackPseudoSelection.sip2dSigMax = -2.0
22 
23 pfNegativeDeepCSVJetTags = pfDeepCSVJetTags.clone(
24  src=cms.InputTag('pfDeepCSVNegativeTagInfos')
25  )
26 
27 pfDeepCSVPositiveTagInfos = pfDeepCSVTagInfos.clone()
28 pfDeepCSVPositiveTagInfos.computer.trackSelection.sip3dSigMin = 0
29 pfDeepCSVPositiveTagInfos.computer.trackPseudoSelection.sip3dSigMin = 0
30 pfPositiveDeepCSVJetTags = pfDeepCSVJetTags.clone(
31  src=cms.InputTag('pfDeepCSVPositiveTagInfos')
32  )
33 
34 # Deep CMVA
35 pfDeepCMVANegativeTagInfos = pfDeepCMVATagInfos.clone(
36  deepNNTagInfos = cms.InputTag('pfDeepCSVNegativeTagInfos')
37  )
38 
39 pfNegativeDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
40  src=cms.InputTag('pfDeepCMVANegativeTagInfos')
41  )
42 
43 pfDeepCMVAPositiveTagInfos = pfDeepCMVATagInfos.clone(
44  deepNNTagInfos = cms.InputTag('pfDeepCSVPositiveTagInfos')
45  )
46 pfPositiveDeepCMVAJetTags = pfDeepCMVAJetTags.clone(
47  src=cms.InputTag('pfDeepCMVAPositiveTagInfos')
48  )
49 
50 
51 
52 ## Deep CSV+CMVA sequence, not complete as it would need the IP and SV tag infos
53 pfDeepCSVTask = cms.Task(
54  pfDeepCSVTagInfos,
55  pfDeepCMVATagInfos, #SKIP for the moment
56  pfDeepCSVJetTags,
57  pfDeepCMVAJetTags
58 )
59 
60 pfDeepCSV = cms.Sequence(pfDeepCSVTask)