CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
shallowTree_test_template Namespace Reference

Functions

def add_rawRelVals
 

Variables

tuple closeFileFast = cms.untracked.bool(True)
 
tuple fileName = cms.string( 'FIXME' )
 
 fileNames = filesRelValTTbarPileUpGENSIMRECO
 Maximal Number of Events. More...
 
tuple process = cms.Process('JustATest')
 
tuple Rethrow
 

Function Documentation

def shallowTree_test_template.add_rawRelVals (   process)

Definition at line 6 of file shallowTree_test_template.py.

References das.query(), and python.rootplot.root2matplotlib.replace().

6 
7 def add_rawRelVals(process):
8  dataset = das.query('dataset file=%s' % process.source.fileNames[0], verbose=True)
9  if not dataset:
10  raise RuntimeError(
11  'Das returned no dataset parent of the input file: %s \n'
12  'The parenthood is needed to add RAW secondary input files' % process.source.fileNames[0]
13  )
14  raw_dataset = dataset[0].replace('GEN-SIM-RECO','GEN-SIM-DIGI-RAW-HLTDEBUG')
15  raw_files = das.query('file dataset=%s' % raw_dataset, verbose=True)
16  if not raw_files:
17  raise RuntimeError('No files found belonging to the GEN-SIM-DIGI-RAW-HLTDEBUG sample!')
18  #convert from unicode into normal string since vstring does not pick it up
19  raw_files = [str(i) for i in raw_files]
20  process.source.secondaryFileNames = cms.untracked.vstring(*raw_files)
21  return process
def query
Definition: das.py:5

Variable Documentation

tuple shallowTree_test_template.closeFileFast = cms.untracked.bool(True)

Definition at line 34 of file shallowTree_test_template.py.

tuple shallowTree_test_template.fileName = cms.string( 'FIXME' )

Definition at line 33 of file shallowTree_test_template.py.

shallowTree_test_template.fileNames = filesRelValTTbarPileUpGENSIMRECO

Maximal Number of Events.

Definition at line 41 of file shallowTree_test_template.py.

tuple shallowTree_test_template.process = cms.Process('JustATest')

Definition at line 22 of file shallowTree_test_template.py.

tuple shallowTree_test_template.Rethrow
Initial value:
1 = cms.untracked.vstring('OtherCMS',
2  'StdException',
3  'Unknown',
4  'BadAlloc',
5  'BadExceptionType',
6  'ProductNotFound',
7  'DictionaryNotFound',
8  'InsertFailure',
9  'Configuration',
10  'LogicError',
11  'UnimplementedFeature',
12  'InvalidReference',
13  'NullPointerError',
14  'NoProductSpecified',
15  'EventTimeout',
16  'EventCorruption',
17  'ScheduleExecutionFailure',
18  'EventProcessorFailure',
19  'FileInPathError',
20  'FileOpenError',
21  'FileReadError',
22  'FatalRootError',
23  'MismatchedInputFiles',
24  'ProductDoesNotSupportViews',
25  'ProductDoesNotSupportPtr',
26  'NotFound')

Definition at line 48 of file shallowTree_test_template.py.