CMS 3D CMS Logo

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

Functions

def check
 

Function Documentation

def trackerTree.check (   config)

Definition at line 12 of file trackerTree.py.

References reco.print().

Referenced by L1TFED.analyze(), EtaPhiEstimator.estimate(), TStorageFactorySystem.GetPathInfo(), CSCGasGainCorrectionDBConditions.prefillDBGasGainCorrection(), and CSCSPRecord.unpack().

12 
13 def check(config):
14  logger = logging.getLogger("mpsvalidate")
15  logger.info("Check if TrackerTree.root file exists")
16 
17  outputpath = os.path.join(os.environ['CMSSW_BASE'], "src", "Alignment", "MillePedeAlignmentAlgorithm", "python", "mpsvalidate", "TrackerTree.root")
18  print(outputpath)
19 
20  # check if file exists
21  if (not os.path.isfile(outputpath)):
22  logger.info("TrackerTree.root file does not exist. It will be created now.")
23 
24  configpath = os.path.join(os.environ["CMSSW_BASE"], "src", "Alignment", "MillePedeAlignmentAlgorithm", "test", "trackerTree_cfg.py")
25  logger.info("Path to the config file: {0}".format(configpath))
26 
27 
os.system("cmsRun {0} outputpath={1}
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10