Skip to content

Commit

Permalink
Merge pull request cms-sw#40 from sarafiorendi/80X_BPH
Browse files Browse the repository at this point in the history
Adding filters for BPH dimuon paths
  • Loading branch information
battibass committed Aug 3, 2016
2 parents 124596d + 179b45e commit 0484633
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 20 deletions.
77 changes: 68 additions & 9 deletions python/common_variables_cff.py
Expand Up @@ -321,12 +321,38 @@


LowPtTriggerFlagsPhysics = cms.PSet(
#DoubleMu0_Quarkonium = cms.string("!triggerObjectMatchesByPath('HLT_DoubleMu0',1,0).empty() || "+
# "!triggerObjectMatchesByPath('HLT_DoubleMu0_Quarkonium',1,0).empty() || "+
# "!triggerObjectMatchesByPath('HLT_DoubleMu0_Quarkonium_v1',1,0).empty()"),
#DoubleMu3_Jpsi_A = cms.string("!triggerObjectMatchesByFilter('hltDiMuonL3PreFiltered3Jpsi').empty()"),
#DoubleMu3_Jpsi_B = cms.string("!triggerObjectMatchesByFilter('hltDoubleMu3JpsiL3Filtered').empty()"),
#DoubleMu3_Jpsi = cms.string("!triggerObjectMatchesByPath('HLT_DoubleMu3_Jpsi_v*',1,0).empty()"),
## L2 filters
Dimuon16_L1L2 = cms.string( "!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
"(triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu10MuOpenL1f0L2PreFiltered0') || "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu100dEtaMax1p8IorDoubleMu114L1f0L2PreFiltered0'))"
),
Dimuon10_L1L2 = cms.string( "!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
"(triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu0er16NoOSL1f0L2PreFiltered0') || "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu0er16IorDoubleMu0er16OSL1f0L2PreFiltered0'))"
),
## DoubleMu triggers filters
DoubleMu4_L1L2 = cms.string( "!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
"(triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu0er16ORL1DoubleMu10MuOpenL1f0L2PreFiltered0') || "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sL1DoubleMu0er16IorDoubleMu0er16OSIorL1DoubleMu10MuOpenL1f0L2PreFiltered0'))"
),

## L3 Mu
Mu_L3 = cms.string( "!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty()"
),
## Vertexing filters
Dimuon6_Jpsi_NoVertexing = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDimuon6JpsiL3Filtered')"),
Dimuon0er16_Jpsi_NoVertexing = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDimuon0JpsiOSL3Filtered')"),
Dimuon0er16_Jpsi_NoOS_NoVertexing = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDimuon0JpsiNoOSL3Filtered')"),
## Final filters
Dimuon16_Jpsi = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDisplacedmumuFilterDimuon16Jpsi')"),
Dimuon20_Jpsi = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDisplacedmumuFilterDimuon20Jpsi')"),
Dimuon10_Jpsi_Barrel = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltDisplacedmumuFilterDimuon10JpsiBarrel')"),
)

LowPtTriggerFlagsEfficienciesTag = cms.PSet(
Expand All @@ -340,6 +366,10 @@
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltMu7Track7JpsiTrackMassFiltered')"),

## 2015
Mu7p5_MU = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && " +
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltL3fLMu7p5TrackL3Filtered7p5')"
),

Mu7p5_Track2_Jpsi_MU = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltMu7p5Track2JpsiTrackMassFiltered')"),
Mu7p5_Track3p5_Jpsi_MU = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
Expand All @@ -358,6 +388,16 @@
## 2015
Mu7p5_L2Mu2_Jpsi_MU = cms.string("!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltMu7p5L2Mu2JpsiTrackMassFiltered')"),

## Mu + TkMu
## 2015
Mu25TkMu0Onia_L3_MU = cms.string( "!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && " +
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltL3fL1sMu16orMu20erorMu25L1f0L2f0L3Filtered25')"
),
Mu16TkMu0Onia_L3_MU = cms.string( "!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && " +
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltL3fL1sMu16orMu20erorMu16L1f0L2f0L3Filtered16')"
),

)

LowPtTriggerFlagsEfficienciesProbe = cms.PSet(
Expand All @@ -384,13 +424,32 @@
Mu5_L2Mu0_L2 = cms.string("!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltDiMuonL2PreFiltered0')"),
Mu5_L2Mu2_Jpsi_L2 = cms.string("!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltMu5L2Mu2JpsiTrackMassFiltered')"),
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltMu5L2Mu2JpsiTrackMassFiltered')"),
Mu5_L2Mu3_Jpsi_L2 = cms.string("!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltMu5L2Mu3JpsiTrackMassFiltered')"),
## 2012
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltMu5L2Mu3JpsiTrackMassFiltered')"),
## 2015
Mu7p5_L2Mu2_L2 = cms.string("!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fDoubleMu2L2PreFiltered2')"
),
Mu7p5_L2Mu2_Jpsi_L2 = cms.string("!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && " +
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltMu7p5L2Mu2JpsiTrackMassFiltered')"),

## Mu + TkMu
Mu25TkMu0Onia_L2 = cms.string( "!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sMu16orMu20erorMu25L1f0L2Filtered0')"
),
Mu25TkMu0Onia_L3 = cms.string( "!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltL3fL1sMu16orMu20erorMu25L1f0L2f0L3Filtered25')"
),
Mu25TkMu0Onia_TM = cms.string( "!triggerObjectMatchesByCollection('hltGlbTrkMuonCands').empty()"
),
Mu16TkMu0Onia_L2 = cms.string( "!triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).hasFilterLabel('hltL2fL1sMu16orMu20erorMu16L1f0L2Filtered0')"
),
Mu16TkMu0Onia_L3 = cms.string( "!triggerObjectMatchesByCollection('hltL3MuonCandidates').empty() && "+
" triggerObjectMatchesByCollection('hltL3MuonCandidates').at(0).hasFilterLabel('hltL3fL1sMu16orMu20erorMu16L1f0L2f0L3Filtered16')"
),

)

LowPtTriggerFlagsEfficiencies = cms.PSet(LowPtTriggerFlagsEfficienciesTag,LowPtTriggerFlagsEfficienciesProbe)
26 changes: 15 additions & 11 deletions test/jpsi/tp_from_aod_simple_Data.py
Expand Up @@ -75,18 +75,22 @@
'/store/data/Run2015D/Charmonium/AOD/16Dec2015-v1/50000/1077A155-AAAE-E511-A1C7-0CC47A4DEF3E.root',
]
elif "CMSSW_8_0_" in os.environ['CMSSW_VERSION']:
process.GlobalTag.globaltag = cms.string('80X_dataRun2_Prompt_v8')
process.GlobalTag.globaltag = cms.string('80X_dataRun2_Prompt_v9')
process.source.fileNames = [
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/14E579B3-271A-E611-911E-02163E013584.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/16AF8745-341A-E611-B3B8-02163E01445A.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/1C630207-251A-E611-998D-02163E012060.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/22864C86-231A-E611-8273-02163E01399D.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/2C503BDA-201A-E611-ACB0-02163E013552.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/36311B60-1B1A-E611-95A9-02163E01388A.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/36FEDDF5-221A-E611-AFC4-02163E011C3C.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/428BEE0E-291A-E611-9E57-02163E0139AB.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/4C09E5EA-1E1A-E611-82A2-02163E011C17.root',
'/store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/273/158/00000/500CE06C-1D1A-E611-B138-02163E014265.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/0645C458-9731-E611-BE85-02163E01466B.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/2AFCDB80-9A31-E611-A6AF-02163E01347E.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/5427165D-A231-E611-BFF6-02163E01273F.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/6848311F-AE31-E611-B032-02163E011F8C.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/7084CDFE-9831-E611-A940-02163E0146A0.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/740BC96E-9831-E611-9203-02163E011F87.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/82A366D4-9931-E611-BB5E-02163E011DC5.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/B8CEAB02-9831-E611-9E77-02163E0134BC.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/D4805CD1-9531-E611-B434-02163E01339C.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/D604489F-9C31-E611-A0A1-02163E0135A8.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/EA753A39-9531-E611-8F4F-02163E014775.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/EC93E1BC-9F31-E611-8538-02163E0146B6.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/F2E77417-9431-E611-A181-02163E011EB0.root',
'root://cms-xrd-global.cern.ch//store/data/Run2016B/Charmonium/AOD/PromptReco-v2/000/274/959/00000/F460DF68-9E31-E611-96DF-02163E011F4D.root',
]

else: raise RuntimeError, "Unknown CMSSW version %s" % os.environ['CMSSW_VERSION']
Expand Down

0 comments on commit 0484633

Please sign in to comment.