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

References relativeConstraints.keys.

Referenced by validateAlignments.loadTemplates().

281 def alternateTemplate( templateName, alternateTemplateName ):
282 
283  if not templateName in globals().keys():
284  msg = "unknown template to replace %s"%templateName
285  raise AllInOneError(msg)
286  if not alternateTemplateName in globals().keys():
287  msg = "unknown template to replace %s"%alternateTemplateName
288  raise AllInOneError(msg)
289  globals()[ templateName ] = globals()[ alternateTemplateName ]
290  # = 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 $eos mkdir -p /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  xrdcp -f .oO[validationId]Oo._result.root root://eoscms//eos/cms/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  xrdcp -f root://eoscms//eos/cms/store/caf/user/$USER/.oO[eosdir]Oo./.oO[validationId]Oo._result.root .
18 fi
19 """

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

string configTemplates.extendedValidationExecution
Initial value:
1 = """
2 #run extended offline validation scripts
3 echo -e "\n\nRunning extended offline validation"
4 
5 rfcp .oO[extendedValScriptPath]Oo. .
6 root -x -b -q -l TkAlExtendedOfflineValidation.C
7 
8 """

Definition at line 208 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  FWLiteEnabler::enable();
8 
9  .oO[extendedInstantiation]Oo.
10  p.setOutputDir(".oO[datadir]Oo./ExtendedOfflineValidation_Images");
11  p.setTreeBaseDir(".oO[OfflineTreeBaseDir]Oo.");
12  p.plotDMR(".oO[DMRMethod]Oo.",.oO[DMRMinimum]Oo.,".oO[DMROptions]Oo.");
13  p.plotSurfaceShapes(".oO[SurfaceShapes]Oo.");
14  p.plotChi2("root://eoscms//eos/cms/store/caf/user/$USER/.oO[eosdir]Oo./.oO[resultPlotFile]Oo._result.root");
15 }
16 """

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

string configTemplates.mergeTemplate

Definition at line 117 of file configTemplates.py.

string configTemplates.scriptTemplate

batch job execution

Definition at line 35 of file configTemplates.py.