CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
cmsswVersionTools.PickRelValInputFiles Class Reference


Automatic pick-up of RelVal input files

More...

Inheritance diagram for cmsswVersionTools.PickRelValInputFiles:

Public Member Functions

def __call__
 
def __init__
 
def apply
 
def getDefaultParameters
 
def messageEmptyList
 

Private Attributes

 _comment
 
 _parameters
 

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
 
string _label = 'pickRelValInputFiles'
 

Detailed Description


Automatic pick-up of RelVal input files

Picks up RelVal input files automatically and
  returns a vector of strings with the paths to be used in [PoolSource].fileNames
PickRelValInputFiles( cmsswVersion, relVal, dataTier, condition, globalTag, maxVersions, skipFiles, numberOfFiles, debug )
- useDAS       : switch to perform query in DAS rather than in DBS
                 optional; default: False
- cmsswVersion : CMSSW release to pick up the RelVal files from
                 optional; default: the current release (determined automatically from environment)
- formerVersion: use the last before the last valid CMSSW release to pick up the RelVal files from
                 applies also, if 'cmsswVersion' is set explicitly
                 optional; default: False
- relVal       : RelVal sample to be used
                 optional; default: 'RelValTTbar'
- dataTier     : data tier to be used
                 optional; default: 'GEN-SIM-RECO'
- condition    : identifier of GlobalTag as defined in Configurations/PyReleaseValidation/python/autoCond.py
                 possibly overwritten, if 'globalTag' is set explicitly
                 optional; default: 'startup'
- globalTag    : name of GlobalTag as it is used in the data path of the RelVals
                 optional; default: determined automatically as defined by 'condition' in Configurations/PyReleaseValidation/python/autoCond.py
  !!!            Determination is done for the release one runs in, not for the release the RelVals have been produced in.
  !!!            Example of deviation: data RelVals (CMSSW_4_1_X) might not only have the pure name of the GlobalTag 'GR_R_311_V2' in the full path,
                 but also an extension identifying the data: 'GR_R_311_V2_RelVal_wzMu2010B'
- maxVersions  : max. versioning number of RelVal to check
                 optional; default: 9
- skipFiles    : number of files to skip for a found RelVal sample
                 optional; default: 0
- numberOfFiles: number of files to pick up
                 setting it to negative values, returns all found ('skipFiles' remains active though)
                 optional; default: -1
- debug        : switch to enable enhanced messages in 'stdout'
                 optional; default: False

Definition at line 18 of file cmsswVersionTools.py.

Constructor & Destructor Documentation

def cmsswVersionTools.PickRelValInputFiles.__init__ (   self)

Definition at line 58 of file cmsswVersionTools.py.

References cmsswVersionTools.PickRelValInputFiles._defaultParameters, root::helper::RootFunctionAdapter< F, args >.addParameter(), root::helper::RootFunctionHelper< F, args, Tag >.addParameter(), ParameterMgr.addParameter(), fit::RootMinuit< Function >.addParameter(), DropBoxMetadata::Parameters.addParameter(), Python11ParameterSet.addParameter(), l1t::TriggerSystem.addParameter(), LutXml.addParameter(), ConfigToolBase.ConfigToolBase.addParameter(), edm::ParameterSet.addParameter(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), and PPSAssociationCuts.getDefaultParameters().

58 
59  def __init__( self ):
60  ConfigToolBase.__init__( self )
61  self.addParameter( self._defaultParameters, 'useDAS' , False , '' )
62  self.addParameter( self._defaultParameters, 'cmsswVersion' , os.getenv( "CMSSW_VERSION" ) , 'auto from environment' )
63  self.addParameter( self._defaultParameters, 'formerVersion', False , '' )
64  self.addParameter( self._defaultParameters, 'relVal' , 'RelValTTbar' , '' )
65  self.addParameter( self._defaultParameters, 'dataTier' , 'GEN-SIM-RECO' , '' )
66  self.addParameter( self._defaultParameters, 'condition' , 'startup' , '' )
67  gt = autoCond[ self.getDefaultParameters()[ 'condition' ].value ]
68  if isinstance(gt,tuple) or isinstance(gt,list):
69  gt = gt[0]
70  self.addParameter( self._defaultParameters, 'globalTag' , gt[ : -5 ] , 'auto from \'condition\'' )
71  self.addParameter( self._defaultParameters, 'maxVersions' , 3 , '' )
72  self.addParameter( self._defaultParameters, 'skipFiles' , 0 , '' )
73  self.addParameter( self._defaultParameters, 'numberOfFiles', -1 , 'all' )
74  self.addParameter( self._defaultParameters, 'debug' , False , '' )
75  self._parameters = copy.deepcopy( self._defaultParameters )
76  self._comment = ""

Member Function Documentation

def cmsswVersionTools.PickRelValInputFiles.__call__ (   self,
  useDAS = None,
  cmsswVersion = None,
  formerVersion = None,
  relVal = None,
  dataTier = None,
  condition = None,
  globalTag = None,
  maxVersions = None,
  skipFiles = None,
  numberOfFiles = None,
  debug = None 
)

Definition at line 89 of file cmsswVersionTools.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA.apply(), gen::PhotosInterfaceBase.apply(), DummyOOTPileupCorrection.apply(), SurveyParameters.apply(), MatrixReader.MatrixReader.apply, gen::PhotosppInterface.apply(), gen::PhotosInterface.apply(), FWPSetCellEditor.apply(), RigidBodyAlignmentParameters.apply(), BeamSpotAlignmentParameters.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), AlignmentParameters.apply(), BowedSurfaceAlignmentParameters.apply(), OOTPileupCorrData.apply(), AbsOOTPileupCorrection.apply(), TwoBowedSurfacesAlignmentParameters.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), models.RegExp.apply(), npstat::ArrayND< Numeric, StackLen, StackDim >.apply(), Config.ProcessModifier.apply(), Config.ProcessAccelerator.apply(), Config.ProcessAcceleratorTest.apply(), Config.ProcessAcceleratorTest2.apply(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), PPSAssociationCuts.getDefaultParameters(), PedeReader.setParameter(), QIE8Simulator.setParameter(), AbsElectronicODERHS.setParameter(), SiStripLorentzAngleCalibration.setParameter(), SiPixelLorentzAngleCalibration.setParameter(), IntegratedCalibrationBase.setParameter(), SiStripBackplaneCalibration.setParameter(), fit::RootMinuit< Function >.setParameter(), and ConfigToolBase.ConfigToolBase.setParameter().

89 
90  ):
91  if useDAS is None:
92  useDAS = self.getDefaultParameters()[ 'useDAS' ].value
93  if cmsswVersion is None:
94  cmsswVersion = self.getDefaultParameters()[ 'cmsswVersion' ].value
95  if formerVersion is None:
96  formerVersion = self.getDefaultParameters()[ 'formerVersion' ].value
97  if relVal is None:
98  relVal = self.getDefaultParameters()[ 'relVal' ].value
99  if dataTier is None:
100  dataTier = self.getDefaultParameters()[ 'dataTier' ].value
101  if condition is None:
102  condition = self.getDefaultParameters()[ 'condition' ].value
103  if globalTag is None:
104  globalTag = autoCond[ condition ][ : -5 ] # auto from 'condition'
105  if maxVersions is None:
106  maxVersions = self.getDefaultParameters()[ 'maxVersions' ].value
107  if skipFiles is None:
108  skipFiles = self.getDefaultParameters()[ 'skipFiles' ].value
109  if numberOfFiles is None:
110  numberOfFiles = self.getDefaultParameters()[ 'numberOfFiles' ].value
111  if debug is None:
112  debug = self.getDefaultParameters()[ 'debug' ].value
113  self.setParameter( 'useDAS' , useDAS )
114  self.setParameter( 'cmsswVersion' , cmsswVersion )
115  self.setParameter( 'formerVersion', formerVersion )
116  self.setParameter( 'relVal' , relVal )
117  self.setParameter( 'dataTier' , dataTier )
118  self.setParameter( 'condition' , condition )
119  self.setParameter( 'globalTag' , globalTag )
120  self.setParameter( 'maxVersions' , maxVersions )
121  self.setParameter( 'skipFiles' , skipFiles )
122  self.setParameter( 'numberOfFiles', numberOfFiles )
123  self.setParameter( 'debug' , debug )
124  return self.apply()
def cmsswVersionTools.PickRelValInputFiles.apply (   self)

Definition at line 129 of file cmsswVersionTools.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._label, MagneticFieldMapESProducer._label, LHECOMWeightProducer._label, cmsswVersionTools.PickRelValInputFiles._label, TAbsFitConstraint._parameters, TAbsFitParticle._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, communicate(), beamvalidation.exit(), das_client.get_data(), das_client.get_value(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), PPSAssociationCuts.getDefaultParameters(), cmsswVersionTools.PickRelValInputFiles.messageEmptyList(), print(), sistrip::SpyUtilities.range(), and submitPVValidationJobs.split().

Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), heavyIonTools.SelectionDefaults.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__call__().

130  def apply( self ):
131  useDAS = self._parameters[ 'useDAS' ].value
132  cmsswVersion = self._parameters[ 'cmsswVersion' ].value
133  formerVersion = self._parameters[ 'formerVersion' ].value
134  relVal = self._parameters[ 'relVal' ].value
135  dataTier = self._parameters[ 'dataTier' ].value
136  condition = self._parameters[ 'condition' ].value # only used for GT determination in initialization, if GT not explicitly given
137  globalTag = self._parameters[ 'globalTag' ].value
138  maxVersions = self._parameters[ 'maxVersions' ].value
139  skipFiles = self._parameters[ 'skipFiles' ].value
140  numberOfFiles = self._parameters[ 'numberOfFiles' ].value
141  debug = self._parameters[ 'debug' ].value
142 
143  filePaths = []
144 
145  # Determine corresponding CMSSW version for RelVals
146  preId = '_pre'
147  patchId = '_patch' # patch releases
148  hltPatchId = '_hltpatch' # HLT patch releases
149  dqmPatchId = '_dqmpatch' # DQM patch releases
150  slhcId = '_SLHC' # SLHC releases
151  rootId = '_root' # ROOT test releases
152  ibId = '_X_' # IBs
153  if patchId in cmsswVersion:
154  cmsswVersion = cmsswVersion.split( patchId )[ 0 ]
155  elif hltPatchId in cmsswVersion:
156  cmsswVersion = cmsswVersion.split( hltPatchId )[ 0 ]
157  elif dqmPatchId in cmsswVersion:
158  cmsswVersion = cmsswVersion.split( dqmPatchId )[ 0 ]
159  elif rootId in cmsswVersion:
160  cmsswVersion = cmsswVersion.split( rootId )[ 0 ]
161  elif slhcId in cmsswVersion:
162  cmsswVersion = cmsswVersion.split( slhcId )[ 0 ]
163  elif ibId in cmsswVersion or formerVersion:
164  outputTuple = Popen( [ 'scram', 'l -c CMSSW' ], stdout = PIPE, stderr = PIPE ).communicate()
165  if len( outputTuple[ 1 ] ) != 0:
166  print('%s INFO : SCRAM error'%( self._label ))
167  if debug:
168  print(' from trying to determine last valid releases before \'%s\''%( cmsswVersion ))
169  print()
170  print(outputTuple[ 1 ])
171  print()
172  self.messageEmptyList()
173  return filePaths
174  versions = { 'last' :''
175  , 'lastToLast':''
176  }
177  for line in outputTuple[ 0 ].splitlines():
178  version = line.split()[ 1 ]
179  if cmsswVersion.split( ibId )[ 0 ] in version or cmsswVersion.rpartition( '_' )[ 0 ] in version:
180  if not ( patchId in version or hltPatchId in version or dqmPatchId in version or slhcId in version or ibId in version or rootId in version ):
181  versions[ 'lastToLast' ] = versions[ 'last' ]
182  versions[ 'last' ] = version
183  if version == cmsswVersion:
184  break
185  # FIXME: ordering of output problematic ('XYZ_pre10' before 'XYZ_pre2', no "formerVersion" for 'XYZ_pre1')
186  if formerVersion:
187  # Don't use pre-releases as "former version" for other releases than CMSSW_X_Y_0
188  if preId in versions[ 'lastToLast' ] and not preId in versions[ 'last' ] and not versions[ 'last' ].endswith( '_0' ):
189  versions[ 'lastToLast' ] = versions[ 'lastToLast' ].split( preId )[ 0 ] # works only, if 'CMSSW_X_Y_0' esists ;-)
190  # Use pre-release as "former version" for CMSSW_X_Y_0
191  elif versions[ 'last' ].endswith( '_0' ) and not ( preId in versions[ 'lastToLast' ] and versions[ 'lastToLast' ].startswith( versions[ 'last' ] ) ):
192  versions[ 'lastToLast' ] = ''
193  for line in outputTuple[ 0 ].splitlines():
194  version = line.split()[ 1 ]
195  versionParts = version.partition( preId )
196  if versionParts[ 0 ] == versions[ 'last' ] and versionParts[ 1 ] == preId:
197  versions[ 'lastToLast' ] = version
198  elif versions[ 'lastToLast' ] != '':
199  break
200  # Don't use CMSSW_X_Y_0 as "former version" for pre-releases
201  elif preId in versions[ 'last' ] and not preId in versions[ 'lastToLast' ] and versions[ 'lastToLast' ].endswith( '_0' ):
202  versions[ 'lastToLast' ] = '' # no alternative :-(
203  cmsswVersion = versions[ 'lastToLast' ]
204  else:
205  cmsswVersion = versions[ 'last' ]
206 
207  # Debugging output
208  if debug:
209  print('%s DEBUG: Called with...'%( self._label ))
210  for key in self._parameters.keys():
211  print(' %s:\t'%( key ), end=' ')
212  print(self._parameters[ key ].value, end=' ')
213  if self._parameters[ key ].value is self.getDefaultParameters()[ key ].value:
214  print(' (default)')
215  else:
216  print()
217  if key == 'cmsswVersion' and cmsswVersion != self._parameters[ key ].value:
218  if formerVersion:
219  print(' ==> modified to last to last valid release %s (s. \'formerVersion\' parameter)'%( cmsswVersion ))
220  else:
221  print(' ==> modified to last valid release %s'%( cmsswVersion ))
222 
223  # Check domain
224  domain = socket.getfqdn().split( '.' )
225  domainSE = ''
226  if len( domain ) == 0:
227  print('%s INFO : Cannot determine domain of this computer'%( self._label ))
228  if debug:
229  self.messageEmptyList()
230  return filePaths
231  elif os.uname()[0] == "Darwin":
232  print('%s INFO : Running on MacOSX without direct access to RelVal files.'%( self._label ))
233  if debug:
234  self.messageEmptyList()
235  return filePaths
236  elif len( domain ) == 1:
237  print('%s INFO : Running on local host \'%s\' without direct access to RelVal files'%( self._label, domain[ 0 ] ))
238  if debug:
239  self.messageEmptyList()
240  return filePaths
241  if not ( ( domain[ -2 ] == 'cern' and domain[ -1 ] == 'ch' ) or ( domain[ -2 ] == 'fnal' and domain[ -1 ] == 'gov' ) ):
242  print('%s INFO : Running on site \'%s.%s\' without direct access to RelVal files'%( self._label, domain[ -2 ], domain[ -1 ] ))
243  if debug:
244  self.messageEmptyList()
245  return filePaths
246  if domain[ -2 ] == 'cern':
247  domainSE = 'T2_CH_CERN'
248  elif domain[ -2 ] == 'fnal':
249  domainSE = 'T1_US_FNAL_MSS'
250  if debug:
251  print('%s DEBUG: Running at site \'%s.%s\''%( self._label, domain[ -2 ], domain[ -1 ] ))
252  print('%s DEBUG: Looking for SE \'%s\''%( self._label, domainSE ))
253 
254  # Find files
255  validVersion = 0
256  dataset = ''
257  datasetAll = '/%s/%s-%s-v*/%s'%( relVal, cmsswVersion, globalTag, dataTier )
258  if useDAS:
259  if debug:
260  print('%s DEBUG: Using DAS query'%( self._label ))
261  dasLimit = numberOfFiles
262  if dasLimit <= 0:
263  dasLimit = 1
264  for version in range( maxVersions, 0, -1 ):
265  filePaths = []
266  filePathsTmp = []
267  fileCount = 0
268  dataset = '/%s/%s-%s-v%i/%s'%( relVal, cmsswVersion, globalTag, version, dataTier )
269  dasQuery = 'file dataset=%s | grep file.name'%( dataset )
270  if debug:
271  print('%s DEBUG: Querying dataset \'%s\' with'%( self._label, dataset ))
272  print(' \'%s\''%( dasQuery ))
273  jsondict = das_client.get_data(dasQuery,dasLimit)
274  if debug:
275  print('%s DEBUG: Received DAS JSON dictionary:'%( self._label ))
276  print(' \'%s\''%( jsondict ))
277  if jsondict[ 'status' ] != 'ok':
278  print('There was a problem while querying DAS with query \'%s\'. Server reply was:\n %s' % (dasQuery, jsondict))
279  exit( 1 )
280  mongo_query = jsondict[ 'mongo_query' ]
281  filters = mongo_query[ 'filters' ]
282  data = jsondict[ 'data' ]
283  if debug:
284  print('%s DEBUG: Query in JSON dictionary:'%( self._label ))
285  print(' \'%s\''%( mongo_query ))
286  print('%s DEBUG: Filters in query:'%( self._label ))
287  print(' \'%s\''%( filters ))
288  print('%s DEBUG: Data in JSON dictionary:'%( self._label ))
289  print(' \'%s\''%( data ))
290  for row in data:
291  filePath = [ r for r in das_client.get_value( row, filters[ 'grep' ] ) ][ 0 ]
292  if debug:
293  print('%s DEBUG: Testing file entry \'%s\''%( self._label, filePath ))
294  if len( filePath ) > 0:
295  if validVersion != version:
296  jsontestdict = das_client.get_data('site dataset=%s | grep site.name' % ( dataset ), 999)
297  mongo_testquery = jsontestdict[ 'mongo_query' ]
298  testfilters = mongo_testquery[ 'filters' ]
299  testdata = jsontestdict[ 'data' ]
300  if debug:
301  print('%s DEBUG: Received DAS JSON dictionary (site test):'%( self._label ))
302  print(' \'%s\''%( jsontestdict ))
303  print('%s DEBUG: Query in JSON dictionary (site test):'%( self._label ))
304  print(' \'%s\''%( mongo_testquery ))
305  print('%s DEBUG: Filters in query (site test):'%( self._label ))
306  print(' \'%s\''%( testfilters ))
307  print('%s DEBUG: Data in JSON dictionary (site test):'%( self._label ))
308  print(' \'%s\''%( testdata ))
309  foundSE = False
310  for testrow in testdata:
311  siteName = [ tr for tr in das_client.get_value( testrow, testfilters[ 'grep' ] ) ][ 0 ]
312  if siteName == domainSE:
313  foundSE = True
314  break
315  if not foundSE:
316  if debug:
317  print('%s DEBUG: Possible version \'v%s\' not available on SE \'%s\''%( self._label, version, domainSE ))
318  break
319  validVersion = version
320  if debug:
321  print('%s DEBUG: Valid version set to \'v%i\''%( self._label, validVersion ))
322  if numberOfFiles == 0:
323  break
324  # protect from double entries ( 'unique' flag in query does not work here)
325  if not filePath in filePathsTmp:
326  filePathsTmp.append( filePath )
327  if debug:
328  print('%s DEBUG: File \'%s\' found'%( self._label, filePath ))
329  fileCount += 1
330  # needed, since and "limit" overrides "idx" in 'get_data' (==> "idx" set to '0' rather than "skipFiles")
331  if fileCount > skipFiles:
332  filePaths.append( filePath )
333  elif debug:
334  print('%s DEBUG: File \'%s\' found again'%( self._label, filePath ))
335  if validVersion > 0:
336  if numberOfFiles == 0 and debug:
337  print('%s DEBUG: No files requested'%( self._label ))
338  break
339  else:
340  if debug:
341  print('%s DEBUG: Using DBS query'%( self._label ))
342  print('%s WARNING: DBS query disabled for DBS3 transition to new API'%( self._label ))
343  #for version in range( maxVersions, 0, -1 ):
344  #filePaths = []
345  #fileCount = 0
346  #dataset = '/%s/%s-%s-v%i/%s'%( relVal, cmsswVersion, globalTag, version, dataTier )
347  #dbsQuery = 'find file where dataset = %s'%( dataset )
348  #if debug:
349  #print '%s DEBUG: Querying dataset \'%s\' with'%( self._label, dataset )
350  #print ' \'%s\''%( dbsQuery )
351  #foundSE = False
352  #for line in os.popen( 'dbs search --query="%s"'%( dbsQuery ) ).readlines():
353  #if line.find( '.root' ) != -1:
354  #if validVersion != version:
355  #if not foundSE:
356  #dbsSiteQuery = 'find dataset where dataset = %s and site = %s'%( dataset, domainSE )
357  #if debug:
358  #print '%s DEBUG: Querying site \'%s\' with'%( self._label, domainSE )
359  #print ' \'%s\''%( dbsSiteQuery )
360  #for lineSite in os.popen( 'dbs search --query="%s"'%( dbsSiteQuery ) ).readlines():
361  #if lineSite.find( dataset ) != -1:
362  #foundSE = True
363  #break
364  #if not foundSE:
365  #if debug:
366  #print '%s DEBUG: Possible version \'v%s\' not available on SE \'%s\''%( self._label, version, domainSE )
367  #break
368  #validVersion = version
369  #if debug:
370  #print '%s DEBUG: Valid version set to \'v%i\''%( self._label, validVersion )
371  #if numberOfFiles == 0:
372  #break
373  #filePath = line.replace( '\n', '' )
374  #if debug:
375  #print '%s DEBUG: File \'%s\' found'%( self._label, filePath )
376  #fileCount += 1
377  #if fileCount > skipFiles:
378  #filePaths.append( filePath )
379  #if not numberOfFiles < 0:
380  #if numberOfFiles <= len( filePaths ):
381  #break
382  #if validVersion > 0:
383  #if numberOfFiles == 0 and debug:
384  #print '%s DEBUG: No files requested'%( self._label )
385  #break
386 
387  # Check output and return
388  if validVersion == 0:
389  print('%s WARNING : No RelVal file(s) found at all in datasets \'%s*\' on SE \'%s\''%( self._label, datasetAll, domainSE ))
390  if debug:
391  self.messageEmptyList()
392  elif len( filePaths ) == 0:
393  print('%s WARNING : No RelVal file(s) picked up in dataset \'%s\''%( self._label, dataset ))
394  if debug:
395  self.messageEmptyList()
396  elif len( filePaths ) < numberOfFiles:
397  print('%s INFO : Only %i RelVal file(s) instead of %i picked up in dataset \'%s\''%( self._label, len( filePaths ), numberOfFiles, dataset ))
398 
399  if debug:
400  print('%s DEBUG: returning %i file(s):\n%s'%( self._label, len( filePaths ), filePaths ))
401  return filePaths
static void * communicate(void *obj)
Definition: DQMNet.cc:1057
const uint16_t range(const Frame &aFrame)
def get_data
Definition: das_client.py:276
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def get_value
Definition: das_client.py:248
def cmsswVersionTools.PickRelValInputFiles.getDefaultParameters (   self)

Definition at line 55 of file cmsswVersionTools.py.

References cmsswVersionTools.PickRelValInputFiles._defaultParameters.

Referenced by cmsswVersionTools.PickRelValInputFiles.__call__(), cmsswVersionTools.PickRelValInputFiles.__init__(), and cmsswVersionTools.PickRelValInputFiles.apply().

55 
56  def getDefaultParameters( self ):
57  return self._defaultParameters
def cmsswVersionTools.PickRelValInputFiles.messageEmptyList (   self)

Definition at line 125 of file cmsswVersionTools.py.

References ProcessAcceleratorCUDA.ProcessAcceleratorCUDA._label, MagneticFieldMapESProducer._label, LHECOMWeightProducer._label, cmsswVersionTools.PickRelValInputFiles._label, and print().

Referenced by cmsswVersionTools.PickRelValInputFiles.apply().

126  def messageEmptyList( self ):
127  print('%s DEBUG: Empty file list returned'%( self._label ))
128  print(' This might be overwritten by providing input files explicitly to the source module in the main configuration file.')
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

cmsswVersionTools.PickRelValInputFiles._comment
private

Definition at line 75 of file cmsswVersionTools.py.

Referenced by ConfigToolBase.ConfigToolBase.__copy__(), ConfigToolBase.ConfigToolBase.comment(), ConfigToolBase.ConfigToolBase.dumpPython(), and ConfigToolBase.ConfigToolBase.setComment().

tuple cmsswVersionTools.PickRelValInputFiles._defaultParameters = dicttypes.SortedKeysDict()
staticprivate

Definition at line 53 of file cmsswVersionTools.py.

Referenced by coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), jetTools.SetTagInfos.__call__(), metTools.AddMETCollection.__init__(), trackTools.MakeAODTrackCandidates.__init__(), coreTools.RunOnData.__init__(), runJetUncertainties.RunJetUncertainties.__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__init__(), cmsswVersionTools.PickRelValInputFiles.__init__(), coreTools.RemoveMCMatching.__init__(), trackTools.MakePATTrackCandidates.__init__(), trigTools.SwitchOnTrigger.__init__(), trigTools.SwitchOnTriggerStandAlone.__init__(), tauTools.AddTauCollection.__init__(), trackTools.MakeTrackCandidates.__init__(), trigTools.SwitchOnTriggerMatching.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), jetTools.AddJetCollection.__init__(), jetTools.SwitchJetCollection.__init__(), jetTools.UpdateJetCollection.__init__(), jetTools.AddJetID.__init__(), jetTools.SetTagInfos.__init__(), ConfigToolBase.ConfigToolBase.dumpPython(), ConfigToolBase.ConfigToolBase.getAllowedValues(), heavyIonTools.ConfigureHeavyIons.getDefaultParameters(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), coreTools.RunOnData.getDefaultParameters(), metTools.AddMETCollection.getDefaultParameters(), heavyIonTools.ProductionDefaults.getDefaultParameters(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), coreTools.RemoveMCMatching.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getDefaultParameters(), heavyIonTools.SelectionDefaults.getDefaultParameters(), heavyIonTools.DisbaleMonteCarloDeps.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), jetTools.AddJetCollection.getDefaultParameters(), jetTools.SwitchJetCollection.getDefaultParameters(), jetTools.UpdateJetCollection.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.initializeInputTag(), ConfigToolBase.ConfigToolBase.reset(), and ConfigToolBase.ConfigToolBase.setParameter().

string cmsswVersionTools.PickRelValInputFiles._label = 'pickRelValInputFiles'
staticprivate

Definition at line 52 of file cmsswVersionTools.py.

Referenced by cmsswVersionTools.PickRelValInputFiles.apply(), validation.SimpleSample.digest(), ConfigToolBase.ConfigToolBase.dumpPython(), validation.SimpleSample.label(), cmsswVersionTools.PickRelValInputFiles.messageEmptyList(), trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

cmsswVersionTools.PickRelValInputFiles._parameters
private

Definition at line 74 of file cmsswVersionTools.py.

Referenced by ConfigToolBase.ConfigToolBase.__copy__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.ak4JetReclustering(), cmsswVersionTools.PickRelValInputFiles.apply(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createMVAMETModule(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.createSmearedJetModule(), ConfigToolBase.ConfigToolBase.dumpPython(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.extractMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getCorrectedMET(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getMETUncertainties(), ConfigToolBase.ConfigToolBase.getParameters(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getUnclusteredVariationsForMVAMET(), ConfigToolBase.ConfigToolBase.getvalue(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.getVariations(), ConfigToolBase.ConfigToolBase.isAllowed(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetCleaning(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.jetConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfiguration(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.miniAODConfigurationPost(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.recomputeRawMetFromPfcs(), ConfigToolBase.ConfigToolBase.reset(), ConfigToolBase.ConfigToolBase.setParameter(), ConfigToolBase.ConfigToolBase.setParameters(), coreTools.RunOnData.toolCode(), trackTools.MakeAODTrackCandidates.toolCode(), metTools.AddMETCollection.toolCode(), runJetUncertainties.RunJetUncertainties.toolCode(), coreTools.RemoveMCMatching.toolCode(), trigTools.SwitchOnTrigger.toolCode(), trackTools.MakePATTrackCandidates.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), tauTools.AddTauCollection.toolCode(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.toolCode(), trackTools.MakeTrackCandidates.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), jetTools.AddJetCollection.toolCode(), jetTools.SwitchJetCollection.toolCode(), jetTools.UpdateJetCollection.toolCode(), jetTools.AddJetID.toolCode(), jetTools.SetTagInfos.toolCode(), ConfigToolBase.ConfigToolBase.typeError(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.updateJECs().