CMS 3D CMS Logo

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

Functions

def check
 

Function Documentation

def trackerTree.check (   config)

Definition at line 14 of file trackerTree.py.

Referenced by SiStripQuality.add(), L1TFED.analyze(), HcalHBHEMuonAnalyzer.analyze(), HcalHBHEMuonHighEtaAnalyzer.analyzeTracks(), FFTJetPatRecoProducer.buildDenseProduct(), FFTJetPatRecoProducer.buildSparseProduct(), edm::storage::StorageFactory.check(), Trajectory.closestMeasurement(), MuonGeometryArrange.compareGeometries(), TrackerGeometryCompare.compareGeometries(), PFAlgo.createCandidatesHCAL(), DDcreateRotationMatrix(), DDrot(), DDrotReflect(), CSCOfflineMonitor.doBXMonitor(), CSCValidation.doTimeMonitoring(), EtaPhiEstimator.estimate(), TwoBodyDecayEstimator.estimate(), HGCMouseBite.exclude(), HGCalMouseBite.exclude(), LMFDat.fetch(), DTCompactMapWriter.fillReadOutMap(), AlCaHBHEMuonFilter.filter(), amc::Packet.finalize(), CellDB.find(), OpticalObject.findExtraEntryValue(), Trajectory.geometricalInnermostState(), L1MuDTTFMasks.get_etsoc_chdis_st1(), L1MuDTTFMasks.get_etsoc_chdis_st2(), L1MuDTTFMasks.get_etsoc_chdis_st3(), L1MuDTTFMasks.get_inrec_chdis_csc(), L1MuDTTFMasks.get_inrec_chdis_st1(), L1MuDTTFMasks.get_inrec_chdis_st2(), L1MuDTTFMasks.get_inrec_chdis_st3(), L1MuDTTFMasks.get_inrec_chdis_st4(), L1MuDTTFParameters.get_inrec_qual_st1(), L1MuDTTFParameters.get_inrec_qual_st2(), L1MuDTTFParameters.get_inrec_qual_st3(), L1MuDTTFParameters.get_inrec_qual_st4(), L1MuDTTFParameters.get_soc_csc_etacanc(), L1MuDTTFParameters.get_soc_nbx_del(), L1MuDTTFParameters.get_soc_openlut_extr(), L1MuDTTFParameters.get_soc_qcut_st1(), L1MuDTTFParameters.get_soc_qcut_st2(), L1MuDTTFParameters.get_soc_qcut_st4(), L1MuDTTFParameters.get_soc_qual_csc(), L1MuDTTFParameters.get_soc_run_21(), L1MuDTTFParameters.get_soc_stdis_n(), L1MuDTTFParameters.get_soc_stdis_wl(), L1MuDTTFParameters.get_soc_stdis_wr(), L1MuDTTFParameters.get_soc_stdis_zl(), L1MuDTTFParameters.get_soc_stdis_zr(), SimTrackManager.getOrCreateVertex(), TStorageFactorySystem.GetPathInfo(), PFHCALDenseIdNavigator< HcalDetId, HcalTopology, false >.init(), RunManagerMT.initG4(), DDLRotationAndReflection.isLeftHanded(), FWHtml.IsVisited(), JetCorrectorParameters.JetCorrectorParameters(), cms.makeRotReflect(), METCorrectorParameters.METCorrectorParameters(), MEtXYcorrectParameters.MEtXYcorrectParameters(), MuScleFitUtils.minimizeLikelihood(), amc13::Packet.parse(), CSCChamberTimeCorrectionsValues.prefill(), CSCChipSpeedCorrectionDBConditions.prefillDBChipSpeedCorrection(), CSCGasGainCorrectionDBConditions.prefillDBGasGainCorrection(), CSCDCCUnpacker.produce(), FFTJetPatRecoProducer.produce(), AlCaHcalHBHEMuonProducer.produce(), PreMixingMuonWorker< CSCStripDigiCollection >.put(), production_tasks.BaseDataset.query(), DDCoreToDDXMLOutput.rotation(), L1MuDTTFMasks.set_etsoc_chdis_st1(), L1MuDTTFMasks.set_etsoc_chdis_st2(), L1MuDTTFMasks.set_etsoc_chdis_st3(), L1MuDTTFMasks.set_inrec_chdis_csc(), L1MuDTTFMasks.set_inrec_chdis_st1(), L1MuDTTFMasks.set_inrec_chdis_st2(), L1MuDTTFMasks.set_inrec_chdis_st3(), L1MuDTTFMasks.set_inrec_chdis_st4(), L1MuDTTFParameters.set_inrec_qual_st1(), L1MuDTTFParameters.set_inrec_qual_st2(), L1MuDTTFParameters.set_inrec_qual_st3(), L1MuDTTFParameters.set_inrec_qual_st4(), L1MuDTTFParameters.set_soc_csc_etacanc(), L1MuDTTFParameters.set_soc_nbx_del(), L1MuDTTFParameters.set_soc_openlut_extr(), L1MuDTTFParameters.set_soc_qcut_st1(), L1MuDTTFParameters.set_soc_qcut_st2(), L1MuDTTFParameters.set_soc_qcut_st4(), L1MuDTTFParameters.set_soc_qual_csc(), L1MuDTTFParameters.set_soc_run_21(), L1MuDTTFParameters.set_soc_stdis_n(), L1MuDTTFParameters.set_soc_stdis_wl(), L1MuDTTFParameters.set_soc_stdis_wr(), L1MuDTTFParameters.set_soc_stdis_zl(), L1MuDTTFParameters.set_soc_stdis_zr(), TracktoRPC.thePoints(), CSCSPRecord.unpack(), and evf::EvFDaqDirector.updateFuLock().

14 
15 def check(config):
16  logger = logging.getLogger("mpsvalidate")
17  logger.info("Check if TrackerTree.root file exists")
18 
19  outputpath = os.path.join(config.jobDataPath, ".TrackerTree.root")
20 
21  # check if file exists
22  if not os.path.isfile(outputpath):
23  logger.info("TrackerTree.root file does not exist. It will be created now.")
24 
25  configpath = os.path.join(config.mpspath, "test", "trackerTree_cfg.py")
26  logger.info("Path to the config file: {0}".format(configpath))
27 
28  cmd = ["cmsRun", configpath, "outputFile="+outputpath]
29  if config.globalTag != None: cmd.append("globalTag="+config.globalTag)
30  if config.firstRun != None: cmd.append("firstRun="+config.firstRun)
31  mps_tools.run_checked(cmd, suppress_stderr = True)
32 
33  return os.path.abspath(outputpath)