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 341 of file configTemplates.py.

References relativeConstraints.keys.

Referenced by validateAlignments.loadTemplates().

342 def alternateTemplate( templateName, alternateTemplateName ):
343 
344  if not templateName in globals().keys():
345  msg = "unkown template to replace %s"%templateName
346  raise AllInOneError(msg)
347  if not alternateTemplateName in globals().keys():
348  msg = "unkown template to replace %s"%alternateTemplateName
349  raise AllInOneError(msg)
350  globals()[ templateName ] = globals()[ alternateTemplateName ]
351  # = eval("configTemplates.%s"%"alternateTemplate")
def alternateTemplate
### Alternate Templates ###

Variable Documentation

string configTemplates.compareAlignmentsExecution
Initial value:
1 = """
2 #merge for .oO[validationId]Oo. if it does not exist or is not up-to-date
3 echo -e "\n\nComparing validations"
4 cp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareFileAges.C .
5 root -x -q -b -l "compareFileAges.C(\\\"root://eoscms.cern.ch//eos/cms/store/caf/user/$USER/.oO[eosdir]Oo./.oO[validationId]Oo._result.root\\\", \\\".oO[compareStringsPlain]Oo.\\\")"
6 comparisonNeeded=${?}
7 
8 if [[ ${comparisonNeeded} -eq 1 ]]
9 then
10  cp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareAlignments.cc .
11  root -x -q -b -l 'compareAlignments.cc++(\".oO[compareStrings]Oo.\")'
12  mv result.root .oO[validationId]Oo._result.root
13  cmsStage -f .oO[validationId]Oo._result.root /store/caf/user/$USER/.oO[eosdir]Oo.
14 else
15  echo ".oO[validationId]Oo._result.root is up-to-date, no need to compare again."
16  cmsStage -f /store/caf/user/$USER/.oO[eosdir]Oo./.oO[validationId]Oo._result.root .
17 fi
18 """

Definition at line 220 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 301 of file configTemplates.py.

string configTemplates.extendedValidationExecution

Definition at line 242 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 279 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.