CMS 3D CMS Logo

Functions
customiseMuNtuples_cff Namespace Reference

Functions

def customiseForMuonWorkflow (process)
 
def customiseForRunningOnMC (process, pathName)
 

Function Documentation

◆ customiseForMuonWorkflow()

def customiseMuNtuples_cff.customiseForMuonWorkflow (   process)

Definition at line 14 of file customiseMuNtuples_cff.py.

References print().

14 def customiseForMuonWorkflow(process) :
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

◆ customiseForRunningOnMC()

def customiseMuNtuples_cff.customiseForRunningOnMC (   process,
  pathName 
)

Definition at line 3 of file customiseMuNtuples_cff.py.

References print().

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 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def customiseForRunningOnMC(process, pathName)