CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
mps_alisetup Namespace Reference

Functions

def create_input_db
 
def get_weight_configs
 

Variables

 aligmentConfig = args.alignmentConfig
 
tuple args = parser.parse_args()
 
tuple config = ConfigParser.ConfigParser()
 
tuple configTemplate = config.get('general','configTemplate')
 
tuple currentDir = os.getcwd()
 
string eos = '/afs/cern.ch/project/eos/installation/cms/bin/eos.select'
 
dictionary generalOptions = {}
 
tuple globalTag = config.get('general','globaltag')
 
string help = 'display detailed output of mps_setup'
 
string helpEpilog
 
tuple match = re.search(re.compile('mpproduction\/mp(.+?)$', re.M|re.I),currentDir)
 
tuple milleScript = os.path.join(mpsTemplates, "mps_runMille_template.sh")
 
string mpsdirname = ''
 
tuple mpsTemplates = os.path.join("src", "Alignment", "MillePedeAlignmentAlgorithm", "templates")
 
string mssDir = '/store/caf/user/'
 
tuple parser
 
tuple pedeScript = os.path.join(mpsTemplates, "mps_runPede_rfcp_template.sh")
 
tuple pedesettings
 
tuple tmpFile = f.read()
 
tuple weight_confs = get_weight_configs(config)
 

Function Documentation

def mps_alisetup.create_input_db (   cfg,
  run_number 
)
Create sqlite file with single-IOV tags and use it to override the GT. If
the GT is already customized by the user, the customization has higher
priority. Returns a snippet to be appended to the configuration file

Arguments:
- `cfg`: path to python configuration
- `run_number`: run from which to extract the alignment payloads

Definition at line 78 of file mps_alisetup.py.

def mps_alisetup.get_weight_configs (   config)
Extracts different weight configurations from `config`.

Arguments:
- `config`: ConfigParser object containing the alignment configuration

Definition at line 26 of file mps_alisetup.py.

Variable Documentation

mps_alisetup.aligmentConfig = args.alignmentConfig

Definition at line 142 of file mps_alisetup.py.

tuple mps_alisetup.args = parser.parse_args()

Definition at line 141 of file mps_alisetup.py.

tuple mps_alisetup.config = ConfigParser.ConfigParser()
tuple mps_alisetup.configTemplate = config.get('general','configTemplate')

Definition at line 234 of file mps_alisetup.py.

tuple mps_alisetup.currentDir = os.getcwd()

Definition at line 164 of file mps_alisetup.py.

string mps_alisetup.eos = '/afs/cern.ch/project/eos/installation/cms/bin/eos.select'

Definition at line 178 of file mps_alisetup.py.

dictionary mps_alisetup.generalOptions = {}

Definition at line 185 of file mps_alisetup.py.

tuple mps_alisetup.globalTag = config.get('general','globaltag')

Definition at line 242 of file mps_alisetup.py.

string mps_alisetup.help = 'display detailed output of mps_setup'

Definition at line 133 of file mps_alisetup.py.

string mps_alisetup.helpEpilog
Initial value:
1 = '''Builds the config-templates from a universal config-template for each
2 dataset specified in .ini-file that is passed to this script.
3 Then calls mps_setup.pl for all datasets.'''

Definition at line 125 of file mps_alisetup.py.

tuple mps_alisetup.match = re.search(re.compile('mpproduction\/mp(.+?)$', re.M|re.I),currentDir)

Definition at line 166 of file mps_alisetup.py.

tuple mps_alisetup.milleScript = os.path.join(mpsTemplates, "mps_runMille_template.sh")

Definition at line 160 of file mps_alisetup.py.

string mps_alisetup.mpsdirname = ''

Definition at line 165 of file mps_alisetup.py.

tuple mps_alisetup.mpsTemplates = os.path.join("src", "Alignment", "MillePedeAlignmentAlgorithm", "templates")

Definition at line 155 of file mps_alisetup.py.

string mps_alisetup.mssDir = '/store/caf/user/'

Definition at line 175 of file mps_alisetup.py.

tuple mps_alisetup.parser
Initial value:
2  description='Setup the alignment as configured in the alignment_config file.',
3  epilog=helpEpilog)

Definition at line 128 of file mps_alisetup.py.

tuple mps_alisetup.pedeScript = os.path.join(mpsTemplates, "mps_runPede_rfcp_template.sh")

Definition at line 161 of file mps_alisetup.py.

tuple mps_alisetup.pedesettings
Initial value:
1 = ([x.strip() for x in config.get("general", "pedesettings").split(",")]
2  if config.has_option("general", "pedesettings") else [None])
double split
Definition: MVATrainer.cc:139

Definition at line 214 of file mps_alisetup.py.

tuple mps_alisetup.tmpFile = f.read()

Definition at line 250 of file mps_alisetup.py.

tuple mps_alisetup.weight_confs = get_weight_configs(config)

Definition at line 217 of file mps_alisetup.py.