CMS 3D CMS Logo

Functions | Variables

configTemplates Namespace Reference

Functions

def alternateTemplate
 ### Alternate Templates ### ###

Variables

string APETemplate
string compareAlignmentsExecution
string conditionsTemplate
string crabCfgTemplate
string crabCommandTemplate
string crabShellScriptTemplate
string dbLoadTemplate
 ### General Templates ### ###
string extendedValidationExecution
string extendedValidationTemplate
string kinksAndBowsTemplate
string mergeTemplate
string parallelScriptTemplate
 batch job execution
string scriptTemplate
 batch job execution

Function Documentation

def configTemplates::alternateTemplate (   templateName,
  alternateTemplateName 
)

### Alternate Templates ### ###

Definition at line 314 of file configTemplates.py.

00315                                                             :
00316   
00317     if not templateName in globals().keys():
00318         raise StandardError, "unkown template to replace %s"%templateName
00319     if not alternateTemplateName in globals().keys():
00320         raise StandardError, "unkown template to replace %s"%alternateTemplateName
00321     globals()[ templateName ] = globals()[ alternateTemplateName ]
00322     # = eval("configTemplates.%s"%"alternateTemplate")

Variable Documentation

Initial value:
00001 """
00002 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
00003 process.APE = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
00004                                         connect = cms.string('.oO[errordbpath]Oo.'),
00005 #                                         timetype = cms.string("runnumber"),
00006                                         toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentErrorRcd'),
00007                                                                    tag = cms.string('.oO[errortag]Oo.')
00008                                                                    ))
00009                                         )
00010 process.es_prefer_APE = cms.ESPrefer("PoolDBESSource", "APE")
00011 """

Definition at line 37 of file configTemplates.py.

Initial value:
00001 """
00002 #merge for .oO[validationId]Oo.
00003 root -q -b '.oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/scripts/compareAlignments.cc+(\".oO[compareStrings]Oo.\")'
00004 mv result.root .oO[validationId]Oo._result.root
00005 """

Definition at line 205 of file configTemplates.py.

Initial value:
00001 """
00002 process.conditionsIn.oO[rcdName]Oo. = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
00003      connect = cms.string('.oO[connectString]Oo.'),
00004      toGet = cms.VPSet(cms.PSet(record = cms.string('.oO[rcdName]Oo.'),
00005                                tag = cms.string('.oO[tagName]Oo.')
00006                                )
00007                       )
00008     )
00009 process.prefer_conditionsIn.oO[rcdName]Oo. = cms.ESPrefer("PoolDBESSource", "conditionsIn.oO[rcdName]Oo.")
00010 """

Definition at line 67 of file configTemplates.py.

Definition at line 246 of file configTemplates.py.

Initial value:
00001 """
00002 crab -create -cfg .oO[crabCfgName]Oo.
00003 crab -submit -c .oO[crabWorkingDir]Oo.
00004 """

Definition at line 298 of file configTemplates.py.

Initial value:
00001 """
00002 cd .oO[crabBaseDir]Oo.
00003 
00004 # source the needed environment for crab in the right order
00005 source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env..oO[useCshell]Oo.sh
00006 cmsenv
00007 source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab..oO[useCshell]Oo.sh
00008 
00009 # Create and submit parallel jobs
00010 .oO[crabCommand]Oo.
00011 
00012 cd -
00013 """

Definition at line 281 of file configTemplates.py.

Initial value:
00001 """
00002 ##include private db object
00003 ##
00004 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
00005 process.trackerAlignment =  CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
00006                                         connect = cms.string('.oO[dbpath]Oo.'),
00007 #                                         timetype = cms.string("runnumber"),
00008                                         toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentRcd'),
00009                                                                    tag = cms.string('.oO[tag]Oo.')
00010                                                                    ))
00011                                         )
00012 process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource", "trackerAlignment")
00013 
00014 """

### General Templates ### ###

Definition at line 19 of file configTemplates.py.

Initial value:
00001 """
00002 #run extended offline validation scripts
00003 rfmkdir -p .oO[workdir]Oo./ExtendedOfflineValidation_Images
00004 root -x -b -q .oO[extendeValScriptPath]Oo.
00005 rfmkdir -p .oO[datadir]Oo./ExtendedOfflineValidation_Images
00006 find .oO[workdir]Oo./ExtendedOfflineValidation_Images -maxdepth 1 -name \"*ps\" -print | xargs -I {} bash -c \"rfcp {} .oO[datadir]Oo./ExtendedOfflineValidation_Images\"
00007 """

Definition at line 214 of file configTemplates.py.

Initial value:
00001 """
00002 void TkAlExtendedOfflineValidation()
00003 {
00004   // load framework lite just to find the CMSSW libs...
00005   gSystem->Load("libFWCoreFWLite");
00006   AutoLibraryLoader::enable();
00007   //compile the makro
00008   gROOT->ProcessLine(".L .oO[CMSSW_BASE]Oo./src/Alignment/OfflineValidation/macros/PlotAlignmentValidation.C++");
00009 
00010   .oO[extendedInstantiation]Oo.
00011   gROOT->ProcessLine(".mkdir -p .oO[workdir]Oo./ExtendedOfflineValidation_Images/");
00012   p.setOutputDir(".oO[workdir]Oo./ExtendedOfflineValidation_Images");
00013   p.setTreeBaseDir(".oO[OfflineTreeBaseDir]Oo.");
00014   p.plotDMR(".oO[DMRMethod]Oo.",.oO[DMRMinimum]Oo.,".oO[DMROptions]Oo.");
00015   p.plotSurfaceShapes(".oO[SurfaceShapes]Oo.");
00016 }
00017 """

Definition at line 225 of file configTemplates.py.

Initial value:
00001 """
00002 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
00003 process.trackerBowedSensors = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone(
00004      connect = cms.string('.oO[kbdbpath]Oo.'),
00005      toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
00006                                tag = cms.string('.oO[kbtag]Oo.')
00007                                )
00008                       )
00009     )
00010 process.prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
00011 """

Definition at line 52 of file configTemplates.py.

Initial value:
00001 """
00002 #!/bin/bash
00003 #init
00004 export STAGE_SVCCLASS=cmscafuser
00005 # source /afs/cern.ch/cms/sw/cmsset_default.sh
00006 cd .oO[CMSSW_BASE]Oo./src
00007 # export SCRAM_ARCH=slc5_amd64_gcc462
00008 export SCRAM_ARCH=.oO[SCRAM_ARCH]Oo.
00009 eval `scramv1 ru -sh`
00010 rfmkdir -p .oO[workdir]Oo.
00011 cd .oO[workdir]Oo.
00012 
00013 #run
00014 .oO[DownloadData]Oo.
00015 .oO[CompareAllignments]Oo.
00016 
00017 find ./ -maxdepth 1 -name "*_result.root" -print | xargs -I {} bash -c "rfcp {} .oO[datadir]Oo."
00018 
00019 .oO[RunExtendedOfflineValidation]Oo.
00020 
00021 #zip stdout and stderr from the farm jobs
00022 cd .oO[logdir]Oo.
00023 find . -name "*.stderr" -exec gzip -f {} \;
00024 find . -name "*.stdout" -exec gzip -f {} \;
00025 """

Definition at line 176 of file configTemplates.py.

batch job execution

Definition at line 125 of file configTemplates.py.

batch job execution

Definition at line 82 of file configTemplates.py.