Skip to content

Commit

Permalink
fix DiMuonV_cfg.py so that it can be used with ALCARECO data-tier
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Feb 27, 2024
1 parent 3c70baf commit fac0fa4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import print_function
from fnmatch import fnmatch
import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.Utilities.FileUtils as FileUtils
from FWCore.ParameterSet.VarParsing import VarParsing
from Alignment.OfflineValidation.TkAlAllInOneTool.defaultInputFiles_cff import filesDefaultMC_DoubleMuon_string
Expand Down Expand Up @@ -209,9 +210,13 @@
## depending if RECO or ALCARECO is used
## the useReco flag above must be set accordingly
if (config["validation"].get("useReco",True)):
print("I AM USING RECO DATA-TIER")
process.DiMuonVertexValidation.muons = 'muons'
process.DiMuonVertexValidation.tracks = 'refittedVtxTracks'
else:
print("I AM USING ALCARECO DATA-TIER")
if(hasattr(process.DiMuonVertexValidation,'muons')):
delattr(process.DiMuonVertexValidation,'muons')
process.DiMuonVertexValidation.muonTracks = cms.InputTag('refittedMuons')

####################################################################
Expand Down

0 comments on commit fac0fa4

Please sign in to comment.