CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Impl.AlCaNano.AlCaNano Class Reference
Inheritance diagram for Impl.AlCaNano.AlCaNano:

Public Member Functions

def __init__ (self)
 
def alcaHarvesting (self, globalTag, datasetName, args)
 
def alcaSkim (self, skims, args)
 
def dqmHarvesting (self, datasetName, runNumber, globalTag, args)
 
def expressProcessing (self, globalTag, args)
 
def promptReco (self, globalTag, args)
 
def skimsIfNotGiven (self, args, sl)
 

Public Attributes

 promptCustoms
 
 promptModifiers
 
 recoSeq
 

Detailed Description

Definition at line 17 of file AlCaNano.py.

Constructor & Destructor Documentation

◆ __init__()

def Impl.AlCaNano.AlCaNano.__init__ (   self)

Definition at line 18 of file AlCaNano.py.

18  def __init__(self):
19  Scenario.__init__(self)
20  self.recoSeq=''
21  self.promptCustoms= [ 'Configuration/DataProcessing/RecoTLR.customisePrompt' ]
22  self.promptModifiers = cms.ModifierChain()
23 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ alcaHarvesting()

def Impl.AlCaNano.AlCaNano.alcaHarvesting (   self,
  globalTag,
  datasetName,
  args 
)
_alcaHarvesting_
Proton collisions data taking AlCa Harvesting

Definition at line 134 of file AlCaNano.py.

References __class__< T >.__class__(), Impl.cosmics.cosmics.cbSc, Impl.hcalnzs.hcalnzs.cbSc, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.cbSc, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.cbSc, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.cbSc, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.cbSc, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.cbSc, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.cbSc, Impl.HeavyIons.HeavyIons.cbSc, Impl.pp.pp.cbSc, Impl.trackingOnly.trackingOnly.cbSc, Reco.Reco.cbSc, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.cbSc, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.cbSc, Impl.ppEra_Run2_2018.ppEra_Run2_2018.cbSc, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.cbSc, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.cbSc, Impl.ppEra_Run2_2016.ppEra_Run2_2016.cbSc, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.cbSc, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.cbSc, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.cbSc, Impl.ppEra_Run3.ppEra_Run3.cbSc, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.cbSc, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.cbSc, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.cbSc, Impl.ppEra_Run2_2017.ppEra_Run2_2017.cbSc, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.cbSc, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.cbSc, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.cbSc, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.cbSc, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.cbSc, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.cbSc, Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.eras, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3_pp_on_PbPb.hcalnzsEra_Run3_pp_on_PbPb.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.AlCaPPS_Run3.AlCaPPS_Run3.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.trackingOnlyEra_Run3_pp_on_PbPb.trackingOnlyEra_Run3_pp_on_PbPb.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), and join().

134  def alcaHarvesting(self, globalTag, datasetName, **args):
135  """
136  _alcaHarvesting_
137  Proton collisions data taking AlCa Harvesting
138  """
139  skims = []
140  if 'skims' in args:
141  skims = args['skims']
142 
143 
144  if 'alcapromptdataset' in args:
145  skims.append('@'+args['alcapromptdataset'])
146 
147  if len(skims) == 0: return None
148  options = defaultOptions
149  options.scenario = self.cbSc if hasattr(self,'cbSc') else self.__class__.__name__
150  options.step = "ALCAHARVEST:"+('+'.join(skims))
151  options.name = "ALCAHARVEST"
152  options.conditions = gtNameAndConnect(globalTag, args)
153 
154  process = cms.Process("ALCAHARVEST", self.eras)
155  process.source = cms.Source("PoolSource")
156 
157  if 'customs' in args:
158  options.customisation_file=args['customs']
159 
160  configBuilder = ConfigBuilder(options, process = process)
161  configBuilder.prepare()
162 
163  process.source.processingMode = cms.untracked.string('RunsAndLumis')
164  process.source.fileNames = cms.untracked(cms.vstring())
165  process.maxEvents.input = -1
166  process.dqmSaver.workflow = datasetName
167 
168  return process
169 
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:135
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ alcaSkim()

def Impl.AlCaNano.AlCaNano.alcaSkim (   self,
  skims,
  args 
)
_alcaSkim_
AlcaReco processing & skims for proton collisions

Definition at line 69 of file AlCaNano.py.

References Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.eras, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3_pp_on_PbPb.hcalnzsEra_Run3_pp_on_PbPb.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.AlCaPPS_Run3.AlCaPPS_Run3.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.trackingOnlyEra_Run3_pp_on_PbPb.trackingOnlyEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, and join().

69  def alcaSkim(self, skims, **args):
70  """
71  _alcaSkim_
72  AlcaReco processing & skims for proton collisions
73  """
74  step = ""
75  pclWflws = [x for x in skims if "PromptCalibProd" in x]
76  skims = [x for x in skims if x not in pclWflws]
77 
78  if len(pclWflws):
79  step += 'ALCA:'+('+'.join(pclWflws))
80 
81  if len(skims) > 0:
82  if step != "":
83  step += ","
84  step += "ALCAOUTPUT:"+('+'.join(skims))
85 
86  options = Options()
87  options.__dict__.update(defaultOptions.__dict__)
88  options.scenario = "pp"
89  options.step = step
90  options.conditions = args['globaltag'] if 'globaltag' in args else 'None'
91  if 'globalTagConnect' in args and args['globalTagConnect'] != '':
92  options.conditions += ','+args['globalTagConnect']
93 
94  options.triggerResultsProcess = 'RECO'
95 
96  process = cms.Process('ALCA', self.eras)
97  cb = ConfigBuilder(options, process=process)
98 
99  # Input source
100  process.source = cms.Source(
101  "PoolSource",
102  fileNames=cms.untracked.vstring()
103  )
104 
105  cb.prepare()
106 
107  for wfl in pclWflws:
108  methodToCall = getattr(process, 'ALCARECOStream'+wfl)
109  methodToCall.dataset.dataTier = cms.untracked.string('ALCAPROMPT')
110 
111  return process
112 
113 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

◆ dqmHarvesting()

def Impl.AlCaNano.AlCaNano.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_
Proton collisions data taking DQM Harvesting

Definition at line 114 of file AlCaNano.py.

References Utils.dqmIOSource(), Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.eras, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3_pp_on_PbPb.hcalnzsEra_Run3_pp_on_PbPb.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.AlCaPPS_Run3.AlCaPPS_Run3.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.trackingOnlyEra_Run3_pp_on_PbPb.trackingOnlyEra_Run3_pp_on_PbPb.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), and Utils.harvestingMode().

114  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
115  """
116  _dqmHarvesting_
117  Proton collisions data taking DQM Harvesting
118  """
119  options = defaultOptions
120  options.scenario = "pp"
121  options.step = "HARVESTING:alcaHarvesting"
122  options.name = "EDMtoMEConvert"
123  options.conditions = gtNameAndConnect(globalTag, args)
124 
125  process = cms.Process("HARVESTING", self.eras)
126  process.source = dqmIOSource(args)
127  configBuilder = ConfigBuilder(options, process = process)
128  configBuilder.prepare()
129 
130  harvestingMode(process,datasetName,args)
131 
132  return process
133 
def harvestingMode(process, datasetName, args, rANDl=True)
Definition: Utils.py:114
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:135
def dqmIOSource(args)
Definition: Utils.py:103

◆ expressProcessing()

def Impl.AlCaNano.AlCaNano.expressProcessing (   self,
  globalTag,
  args 
)
_expressProcessing_
Proton collision data taking express processing

Definition at line 170 of file AlCaNano.py.

References Utils.addMonitoring(), Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.eras, Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3_pp_on_PbPb.hcalnzsEra_Run3_pp_on_PbPb.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.AlCaPPS_Run3.AlCaPPS_Run3.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.trackingOnlyEra_Run3_pp_on_PbPb.trackingOnlyEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), print(), and Utils.stepALCAPRODUCER().

170  def expressProcessing(self, globalTag, **args):
171  """
172  _expressProcessing_
173  Proton collision data taking express processing
174  """
175  skims = []
176  if 'skims' in args:
177  skims = args['skims']
178  pclWkflws = [x for x in skims if "PromptCalibProd" in x]
179  for wfl in pclWkflws:
180  skims.remove(wfl)
181 
182  options = Options()
183  options.__dict__.update(defaultOptions.__dict__)
184  options.scenario = "pp"
185  options.step = stepALCAPRODUCER(skims)
186 
187  if 'outputs' in args:
188  # the RAW data-tier needs a special treatment since the event-content as defined in release is not good enough
189  outputs_Raw = [x for x in args['outputs'] if x['dataTier'] == 'RAW']
190  outputs_noRaw = [x for x in args['outputs'] if x['dataTier'] != 'RAW']
191  if len(outputs_Raw) == 1:
192  print('RAW data-tier requested')
193  options.outputDefinition = outputs_noRaw.__str__()
194 
195  options.conditions = gtNameAndConnect(globalTag, args)
196 
197  options.filein = 'tobeoverwritten.xyz'
198  if 'inputSource' in args:
199  options.filetype = args['inputSource']
200  process = cms.Process('RECO', self.eras)
201 
202  if 'customs' in args:
203  options.customisation_file=args['customs']
204 
205  cb = ConfigBuilder(options, process = process, with_output = True, with_input = True)
206 
207  cb.prepare()
208 
209  addMonitoring(process)
210 
211  for output in outputs_Raw:
212  print(output)
213  moduleLabel = output['moduleLabel']
214  selectEvents = output.get('selectEvents', None)
215  maxSize = output.get('maxSize', None)
216 
217  outputModule = cms.OutputModule(
218  "PoolOutputModule",
219  fileName = cms.untracked.string("%s.root" % moduleLabel)
220  )
221 
222  outputModule.dataset = cms.untracked.PSet(dataTier = cms.untracked.string("RAW"))
223 
224  if maxSize != None:
225  outputModule.maxSize = cms.untracked.int32(maxSize)
226 
227  if selectEvents != None:
228  outputModule.SelectEvents = cms.untracked.PSet(
229  SelectEvents = cms.vstring(selectEvents)
230  )
231  outputModule.outputCommands = cms.untracked.vstring('drop *',
232  'keep *_*_*_HLT')
233 
234  setattr(process, moduleLabel, outputModule)
235  # outputModule=getattr(self.process,theModuleLabel)
236  setattr(process, moduleLabel+'_step', cms.EndPath(outputModule))
237  path = getattr(process, moduleLabel+'_step')
238  process.schedule.append(path)
239 
240  return process
241 
242 
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:135
def addMonitoring(process)
Definition: Utils.py:38
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def stepALCAPRODUCER(skims)
Definition: Utils.py:9

◆ promptReco()

def Impl.AlCaNano.AlCaNano.promptReco (   self,
  globalTag,
  args 
)

Definition at line 36 of file AlCaNano.py.

References mps_setup.append, Utils.dictIO(), Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.eras, Impl.AlCaLumiPixels.AlCaLumiPixels.eras, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.eras, Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_2017.cosmicsEra_Run2_2017.eras, Impl.cosmicsEra_Run2_2018.cosmicsEra_Run2_2018.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.cosmicsEra_Run3.cosmicsEra_Run3.eras, Impl.cosmicsHybridEra_Run2_2018.cosmicsHybridEra_Run2_2018.eras, Impl.hcalnzsEra_Run3_pp_on_PbPb.hcalnzsEra_Run3_pp_on_PbPb.eras, Impl.hcalnzsEra_Run2_2018_pp_on_AA.hcalnzsEra_Run2_2018_pp_on_AA.eras, Impl.hcalnzsEra_Run3.hcalnzsEra_Run3.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_2017.hcalnzsEra_Run2_2017.eras, Impl.hcalnzsEra_Run2_2018_highBetaStar.hcalnzsEra_Run2_2018_highBetaStar.eras, Impl.hcalnzsEra_Run2_2018.hcalnzsEra_Run2_2018.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_2018.HeavyIonsEra_Run2_2018.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.AlCaPPS_Run3.AlCaPPS_Run3.eras, Impl.ppEra_Run2_2017.ppEra_Run2_2017.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, Impl.ppEra_Run2_2017_ppRef.ppEra_Run2_2017_ppRef.eras, Impl.ppEra_Run2_2017_trackingLowPU.ppEra_Run2_2017_trackingLowPU.eras, Impl.ppEra_Run2_2018.ppEra_Run2_2018.eras, Impl.ppEra_Run2_2018_highBetaStar.ppEra_Run2_2018_highBetaStar.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run3.ppEra_Run3.eras, Impl.trackingOnlyEra_Run2_2018_pp_on_AA.trackingOnlyEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run2_2017_pp_on_XeXe.ppEra_Run2_2017_pp_on_XeXe.eras, Impl.ppEra_Run2_2018_pp_on_AA.ppEra_Run2_2018_pp_on_AA.eras, Impl.ppEra_Run3_pp_on_PbPb.ppEra_Run3_pp_on_PbPb.eras, Impl.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.ppEra_Run3_pp_on_PbPb_approxSiStripClusters.eras, Impl.trackingOnlyEra_Run3_pp_on_PbPb.trackingOnlyEra_Run3_pp_on_PbPb.eras, Impl.trackingOnlyEra_Run2_2017.trackingOnlyEra_Run2_2017.eras, Impl.trackingOnlyEra_Run3.trackingOnlyEra_Run3.eras, Impl.trackingOnlyEra_Run2_2018.trackingOnlyEra_Run2_2018.eras, Impl.ppEra_Run2_2017_trackingOnly.ppEra_Run2_2017_trackingOnly.eras, Impl.trackingOnlyEra_Run2_2018_highBetaStar.trackingOnlyEra_Run2_2018_highBetaStar.eras, Scenario.Scenario.eras, options.HLTProcessOptions.eras, Utils.gtNameAndConnect(), print(), Impl.AlCaNano.AlCaNano.promptCustoms, Impl.AlCaNano.AlCaNano.promptModifiers, Impl.AlCaNano.AlCaNano.recoSeq, Impl.AlCaP0.AlCaP0.skims, Impl.AlCaPhiSymEcal.AlCaPhiSymEcal.skims, Impl.AlCaTestEnable.AlCaTestEnable.skims, Impl.AlCaPhiSymEcal_Nano.AlCaPhiSymEcal_Nano.skims, Impl.AlCaLumiPixels.AlCaLumiPixels.skims, Impl.AlCaLumiPixels_Run3.AlCaLumiPixels_Run3.skims, Impl.AlCaPPS_Run3.AlCaPPS_Run3.skims, and Utils.stepALCAPRODUCER().

36  def promptReco(self, globalTag, **args):
37  if not 'skims' in args:
38  args['skims']=self.skims
39  if not 'customs' in args:
40  args['customs']= [ ]
41  for c in self.promptCustoms:
42  args['customs'].append(c)
43 
44  options = Options()
45  options.__dict__.update(defaultOptions.__dict__)
46  options.scenario = "pp"
47  dictIO(options,args)
48  options.conditions = gtNameAndConnect(globalTag, args)
49 
50  if 'customs' in args:
51  print(args['customs'])
52  options.customisation_file=args['customs']
53 
54  options.step = 'RECO'
55  options.step += self.recoSeq
56  options.step += stepALCAPRODUCER(args['skims'])
57 
58  process = cms.Process('RECO', cms.ModifierChain(self.eras, self.promptModifiers) )
59  cb = ConfigBuilder(options, process = process, with_output = True)
60 
61  # Input source
62  process.source = cms.Source("PoolSource",
63  fileNames = cms.untracked.vstring()
64  )
65  cb.prepare()
66 
67  return process
68 
def gtNameAndConnect(globalTag, args)
Definition: Utils.py:135
def dictIO(options, args)
Definition: Utils.py:121
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def stepALCAPRODUCER(skims)
Definition: Utils.py:9

◆ skimsIfNotGiven()

def Impl.AlCaNano.AlCaNano.skimsIfNotGiven (   self,
  args,
  sl 
)

Definition at line 32 of file AlCaNano.py.

32  def skimsIfNotGiven(self,args,sl):
33  if not 'skims' in args:
34  args['skims']=sl
35 

Member Data Documentation

◆ promptCustoms

Impl.AlCaNano.AlCaNano.promptCustoms

◆ promptModifiers

Impl.AlCaNano.AlCaNano.promptModifiers

Definition at line 22 of file AlCaNano.py.

Referenced by Impl.AlCaNano.AlCaNano.promptReco(), and Reco.Reco.promptReco().

◆ recoSeq

Impl.AlCaNano.AlCaNano.recoSeq