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 mergeParallelResults
 
string mergeTemplate
 
string scriptTemplate
 batch job execution More...
 

Function Documentation

def configTemplates.alternateTemplate (   templateName,
  alternateTemplateName 
)

                                      ###

Alternate Templates ###

Definition at line 304 of file configTemplates.py.

References relativeConstraints.keys.

Referenced by validateAlignments.loadTemplates().

305 def alternateTemplate( templateName, alternateTemplateName ):
306 
307  if not templateName in globals().keys():
308  msg = "unknown template to replace %s"%templateName
309  raise AllInOneError(msg)
310  if not alternateTemplateName in globals().keys():
311  msg = "unknown template to replace %s"%alternateTemplateName
312  raise AllInOneError(msg)
313  globals()[ templateName ] = globals()[ alternateTemplateName ]
314  # = 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 cmsMkdir /store/caf/user/$USER/.oO[eosdir]Oo./
5 cp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareFileAges.C .
6 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.\\\")"
7 comparisonNeeded=${?}
8 
9 if [[ ${comparisonNeeded} -eq 1 ]]
10 then
11  cp .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareAlignments.cc .
12  root -x -q -b -l 'compareAlignments.cc++(\".oO[compareStrings]Oo.\")'
13  mv result.root .oO[validationId]Oo._result.root
14  cmsStage -f .oO[validationId]Oo._result.root /store/caf/user/$USER/.oO[eosdir]Oo.
15 else
16  echo ".oO[validationId]Oo._result.root is up-to-date, no need to compare again."
17  cmsStage -f /store/caf/user/$USER/.oO[eosdir]Oo./.oO[validationId]Oo._result.root .
18 fi
19 """

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

string configTemplates.extendedValidationExecution

Definition at line 204 of file configTemplates.py.

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

Definition at line 241 of file configTemplates.py.

string configTemplates.mergeParallelResults
Initial value:
1 = """
2 
3 .oO[copyMergeScripts]Oo.
4 .oO[haddLoop]Oo.
5 
6 # create log file
7 ls -al .oO[mergeParallelFilePrefixes]Oo. > .oO[datadir]Oo./log_rootfilelist.txt
8 
9 # Remove parallel job files
10 .oO[rmUnmerged]Oo.
11 """

Definition at line 166 of file configTemplates.py.

string configTemplates.mergeTemplate

Definition at line 115 of file configTemplates.py.

string configTemplates.scriptTemplate

batch job execution

Definition at line 35 of file configTemplates.py.