CMS 3D CMS Logo

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

Functions

def alternateTemplate
 
                                      ###

Alternate Templates ###

More...
 

Variables

string compareAlignmentsExecution
 
string conditionsTemplate
 
                                     ###

General Templates ###

More...
 
string crabCfgTemplate
 
string extendedValidationExecution
 
string extendedValidationTemplate
 
string mergeTemplate
 
string parallelScriptTemplate
 batch job execution More...
 
string scriptTemplate
 batch job execution More...
 

Function Documentation

def configTemplates.alternateTemplate (   templateName,
  alternateTemplateName 
)

                                      ###

Alternate Templates ###

Definition at line 327 of file configTemplates.py.

References relativeConstraints.keys.

Referenced by validateAlignments.loadTemplates().

328 def alternateTemplate( templateName, alternateTemplateName ):
329 
330  if not templateName in globals().keys():
331  msg = "unkown template to replace %s"%templateName
332  raise AllInOneError(msg)
333  if not alternateTemplateName in globals().keys():
334  msg = "unkown template to replace %s"%alternateTemplateName
335  raise AllInOneError(msg)
336  globals()[ templateName ] = globals()[ alternateTemplateName ]
337  # = eval("configTemplates.%s"%"alternateTemplate")
def alternateTemplate
### Alternate Templates ###

Variable Documentation

string configTemplates.compareAlignmentsExecution
Initial value:
1 = """
2 #merge for .oO[validationId]Oo.
3 cp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareAlignments.cc .
4 root -q -b 'compareAlignments.cc++(\".oO[compareStrings]Oo.\")'
5 mv result.root .oO[validationId]Oo._result.root
6 """

Definition at line 221 of file configTemplates.py.

string configTemplates.conditionsTemplate
Initial value:
1 = """
2 process.conditionsIn.oO[rcdName]Oo. = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
3  connect = cms.string('.oO[connectString]Oo.'),
4  toGet = cms.VPSet(cms.PSet(record = cms.string('.oO[rcdName]Oo.'),
5  tag = cms.string('.oO[tagName]Oo.')
6  )
7  )
8  )
9 process.prefer_conditionsIn.oO[rcdName]Oo. = cms.ESPrefer("PoolDBESSource", "conditionsIn.oO[rcdName]Oo.")
10 """

                                     ###

General Templates ###

Definition at line 20 of file configTemplates.py.

string configTemplates.crabCfgTemplate
Initial value:
1 = """
2 [CRAB]
3 jobtype = cmssw
4 scheduler = caf
5 use_server = 0
6 
7 [CMSSW]
8 datasetpath = .oO[dataset]Oo.
9 pset = .oO[cfgFile]Oo.
10 total_number_of_.oO[McOrData]Oo.
11 number_of_jobs = .oO[numberOfJobs]Oo.
12 output_file = .oO[outputFile]Oo.
13 runselection = .oO[runRange]Oo.
14 lumi_mask = .oO[JSON]Oo.
15 
16 [USER]
17 return_data = 0
18 copy_data = 1
19 storage_element = T2_CH_CERN
20 user_remote_dir = .oO[eosdir]Oo.
21 ui_working_dir = .oO[crabWorkingDir]Oo.
22 # script_exe = .oO[script]Oo.
23 # .oO[email]Oo.
24 
25 [CAF]
26 queue = .oO[queue]Oo.
27 """

Definition at line 287 of file configTemplates.py.

string configTemplates.extendedValidationExecution
Initial value:
1 = """
2 #run extended offline validation scripts
3 if [[ $HOSTNAME = lxplus[0-9]*\.cern\.ch ]] # check for interactive mode
4 then
5  rfmkdir -p .oO[workdir]Oo./ExtendedOfflineValidation_Images
6 else
7  mkdir -p ExtendedOfflineValidation_Images
8 fi
9 
10 rfcp .oO[extendeValScriptPath]Oo. .
11 rfcp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C .
12 root -x -b -q TkAlExtendedOfflineValidation.C
13 rfmkdir -p .oO[datadir]Oo./ExtendedOfflineValidation_Images
14 
15 if [[ $HOSTNAME = lxplus[0-9]*\.cern\.ch ]] # check for interactive mode
16 then
17  image_files=$(ls --color=never | find .oO[workdir]Oo./ExtendedOfflineValidation_Images/ -name \*ps -o -name \*root)
18  echo ${image_files}
19  ls .oO[workdir]Oo./ExtendedOfflineValidation_Images
20 else
21  image_files=$(ls --color=never | find ExtendedOfflineValidation_Images/ -name \*ps -o -name \*root)
22  echo ${image_files}
23  ls ExtendedOfflineValidation_Images
24 fi
25 
26 for image in ${image_files}
27 do
28  cp ${image} .oO[datadir]Oo./ExtendedOfflineValidation_Images
29 done
30 """

Definition at line 231 of file configTemplates.py.

string configTemplates.extendedValidationTemplate
Initial value:
1 = """
2 void TkAlExtendedOfflineValidation()
3 {
4  // load framework lite just to find the CMSSW libs...
5  gSystem->Load("libFWCoreFWLite");
6  AutoLibraryLoader::enable();
7  //compile the makro
8  gROOT->ProcessLine(".L .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C++");
9  // gROOT->ProcessLine(".L ./PlotAlignmentValidation.C++");
10 
11  .oO[extendedInstantiation]Oo.
12  p.setOutputDir("./ExtendedOfflineValidation_Images");
13  p.setTreeBaseDir(".oO[OfflineTreeBaseDir]Oo.");
14  p.plotDMR(".oO[DMRMethod]Oo.",.oO[DMRMinimum]Oo.,".oO[DMROptions]Oo.");
15  p.plotSurfaceShapes(".oO[SurfaceShapes]Oo.");
16  p.plotChi2(".oO[resultPlotFile]Oo._result.root");
17 }
18 """

Definition at line 265 of file configTemplates.py.

string configTemplates.mergeTemplate

Definition at line 169 of file configTemplates.py.

string configTemplates.parallelScriptTemplate

batch job execution

Definition at line 97 of file configTemplates.py.

string configTemplates.scriptTemplate

batch job execution

Definition at line 35 of file configTemplates.py.