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

References relativeConstraints.keys.

Referenced by validateAlignments.loadTemplates().

290 def alternateTemplate( templateName, alternateTemplateName ):
291 
292  if not templateName in globals().keys():
293  msg = "unknown template to replace %s"%templateName
294  raise AllInOneError(msg)
295  if not alternateTemplateName in globals().keys():
296  msg = "unknown template to replace %s"%alternateTemplateName
297  raise AllInOneError(msg)
298  globals()[ templateName ] = globals()[ alternateTemplateName ]
299  # = 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[Alignment/OfflineValidation]Oo./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[Alignment/OfflineValidation]Oo./scripts/compareAlignments.cc .
12  root -x -q -b -l 'compareAlignments.cc++(\".oO[compareStrings]Oo.\", ".oO[legendheader]Oo.", ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.", .oO[bigtext]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 186 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 249 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 209 of file configTemplates.py.

string configTemplates.extendedValidationTemplate
Initial value:
1 = """
2 #include "Alignment/OfflineValidation/macros/PlotAlignmentValidation.C"
3 #include "FWCore/FWLite/interface/FWLiteEnabler.h"
4 
5 void TkAlExtendedOfflineValidation()
6 {
7  TkAlStyle::legendheader = ".oO[legendheader]Oo.";
8  TkAlStyle::legendoptions = ".oO[legendoptions]Oo.";
9  TkAlStyle::set(.oO[publicationstatus]Oo., .oO[era]Oo., ".oO[customtitle]Oo.", ".oO[customrighttitle]Oo.");
10  gStyle->SetTitleH ( 0.07 );
11  gStyle->SetTitleW ( 1.00 );
12  gStyle->SetTitleFont ( 132 );
13  // load framework lite just to find the CMSSW libs...
14  gSystem->Load("libFWCoreFWLite");
15  FWLiteEnabler::enable();
16 
17  .oO[extendedInstantiation]Oo.
18  p.setOutputDir(".oO[datadir]Oo./ExtendedOfflineValidation_Images");
19  p.setTreeBaseDir(".oO[OfflineTreeBaseDir]Oo.");
20  p.plotDMR(".oO[DMRMethod]Oo.",.oO[DMRMinimum]Oo.,".oO[DMROptions]Oo.");
21  p.plotSurfaceShapes(".oO[SurfaceShapes]Oo.");
22  p.plotChi2("root://eoscms//eos/cms/store/caf/user/$USER/.oO[eosdir]Oo./.oO[resultPlotFile]Oo._result.root");
23 }
24 """

Definition at line 221 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 171 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.