test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
trackerTree.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 ##########################################################################
4 ##
5 # Check if there is the trackerTree.root file.
6 ##
7 
8 import logging
9 import os
10 
11 
12 def check(config):
13  logger = logging.getLogger("mpsvalidate")
14  logger.info("Check if TrackerTree.root file exists")
15 
16  outputpath = os.path.join(os.environ['CMSSW_BASE'], "src", "Alignment", "MillePedeAlignmentAlgorithm", "python", "mpsvalidate", "TrackerTree.root")
17  print(outputpath)
18 
19  # check if file exists
20  if (not os.path.isfile(outputpath)):
21  logger.info("TrackerTree.root file does not exist. It will be created now.")
22 
23  configpath = os.path.join(os.environ["CMSSW_BASE"], "src", "Alignment", "MillePedeAlignmentAlgorithm", "test", "trackerTree_cfg.py")
24  logger.info("Path to the config file: {0}".format(configpath))
25 
26 
27  os.system("cmsRun {0} outputpath={1}".format(configpath, outputpath))
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10