CMS 3D CMS Logo

customiseMuNtuples_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customiseForRunningOnMC(process, pathName) :
4 
5  if hasattr(process,"muNtupleProducer") :
6  print("[customiseForRunningOnMC]: updating ntuple input tags")
7 
8  process.muNtupleTwinMuxInFiller.dtTpTag = "none"
9  process.muNtupleTwinMuxOutFiller.dtTpTag = "none"
10  process.muNtupleTwinMuxInThFiller.dtTpTag = "none"
11 
12  return process
13 
15  print("[customiseForMuonWorkflow]: adding VarParsing")
16 
17  import FWCore.ParameterSet.VarParsing as VarParsing
18  options = VarParsing.VarParsing()
19 
20  options.register('globalTag',
21  '130X_dataRun3_Express_v1', #default value
22  VarParsing.VarParsing.multiplicity.singleton,
23  VarParsing.VarParsing.varType.string,
24  "Global Tag")
25 
26  options.register('nEvents',
27  100, #default value
28  VarParsing.VarParsing.multiplicity.singleton,
29  VarParsing.VarParsing.varType.int,
30  "Maximum number of processed events")
31 
32  options.parseArguments()
33 
34  process.GlobalTag.globaltag = cms.string(options.globalTag)
35  process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(options.nEvents))
36 
37  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def customiseForRunningOnMC(process, pathName)