CMS 3D CMS Logo

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

Functions

def getFill
 

Variables

string acommand = 'cmscond_list_iov -c frontier://PromptProd/CMS_COND_31X_BEAMSPOT -P /afs/cern.ch/cms/DB/conddb -t '
 
list afill = aline[1]
 
tuple aIOV = IOV()
 
tuple aline = line.split()
 
tuple begintime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
 
tuple bntuple = spot()
 
string datafilename = "tmp_beamspot.dat"
 
tuple endtime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )
 
list files = tmp[1]
 
dictionary FillList = {}
 
string firstRun = "0:0"
 
tuple fntuple = TFile( 'bntuple.root', 'RECREATE' )
 
 getDBdata = True
 
list ibeam = listbeam[ii]
 
int iline = 0
 
tuple input = open(option.data +"/"+f)
 
string IOVbase = 'lumibase'
 
list iovlist = []
 
 jline = iline
 
string lastRun = "4999999999:4999999999"
 
 line = ibeam.IOVBeginTime
 
tuple linedata = line.split()
 
list listbeam = []
 
tuple listmap = readBeamSpotFile(datafilename,listbeam,IOVbase,firstRun,lastRun)
 
string otherArgs = ''
 
tuple output = open(datafilename,"w")
 
 passiov = False
 
 passline = False
 
list run0 = aline[3]
 
list run1 = aline[5]
 
tuple runsfile = open("FillandRuns.txt")
 
tuple status = commands.getstatusoutput( acommand )
 
tuple tbyIOV = TTree( 'byIOV', 'beam spot data by IOV' )
 
tuple tbylumi = TTree( 'bylumi', 'beam spot data lumi by lumi' )
 
tuple tbyrun = TTree( 'byrun', 'beam spot data by run' )
 
tuple tmp = commands.getstatusoutput("ls "+option.data)
 
tuple tmpfile = open(datafilename,'w')
 
list tmplistiov = tmpstatus[1]
 
tuple tmplumi = unpack(iIOV.since)
 
int tmplumifirst = 1
 
int tmplumilast = 9999999
 
tuple tmprun = unpack(iIOV.since)
 
 tmprunfirst = firstRun
 
 tmprunlast = lastRun
 
tuple tmpstatus = commands.getstatusoutput( acommand )
 
tuple totlines = len(tmplistiov)
 
 weightedlist = listbeam
 

Function Documentation

def ntuplemaker.getFill (   json,
  run 
)

Definition at line 56 of file ntuplemaker.py.

56 
57 def getFill( json, run ):
58 
59  thefill = 0
60  run = int(run)
61  keys = json.keys()
62 
63  for i in keys:
64 
65  run0 = int(json[i][0])
66  run1 = int(json[i][1])
67  if run>= run0 and run<=run1:
68  thefill = i
69 
70  return int(thefill)

Variable Documentation

string ntuplemaker.acommand = 'cmscond_list_iov -c frontier://PromptProd/CMS_COND_31X_BEAMSPOT -P /afs/cern.ch/cms/DB/conddb -t '

Definition at line 177 of file ntuplemaker.py.

list ntuplemaker.afill = aline[1]

Definition at line 81 of file ntuplemaker.py.

tuple ntuplemaker.aIOV = IOV()

Definition at line 194 of file ntuplemaker.py.

tuple ntuplemaker.aline = line.split()

Definition at line 80 of file ntuplemaker.py.

tuple ntuplemaker.begintime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )

Definition at line 305 of file ntuplemaker.py.

tuple ntuplemaker.bntuple = spot()

Definition at line 103 of file ntuplemaker.py.

string ntuplemaker.datafilename = "tmp_beamspot.dat"

Definition at line 154 of file ntuplemaker.py.

tuple ntuplemaker.endtime = time.mktime( time.strptime(line.split()[0] + " " + line.split()[1] + " " + line.split()[2],"%Y.%m.%d %H:%M:%S %Z") )

Definition at line 307 of file ntuplemaker.py.

list ntuplemaker.files = tmp[1]

Definition at line 260 of file ntuplemaker.py.

dictionary ntuplemaker.FillList = {}

Definition at line 76 of file ntuplemaker.py.

ntuplemaker.firstRun = "0:0"

Definition at line 163 of file ntuplemaker.py.

tuple ntuplemaker.fntuple = TFile( 'bntuple.root', 'RECREATE' )

Definition at line 104 of file ntuplemaker.py.

ntuplemaker.getDBdata = True

Definition at line 158 of file ntuplemaker.py.

list ntuplemaker.ibeam = listbeam[ii]

Definition at line 295 of file ntuplemaker.py.

int ntuplemaker.iline = 0

Definition at line 184 of file ntuplemaker.py.

Referenced by CSCCLCTData.dataWord(), SRBlockFormatter.DigiToRaw(), TCCBlockFormatter.DigiToRaw(), MatacqProducer.loadOrbitOffset(), TextToRaw.produce(), and CSCTMBScope.UnpackScope().

tuple ntuplemaker.input = open(option.data +"/"+f)

Definition at line 266 of file ntuplemaker.py.

string ntuplemaker.IOVbase = 'lumibase'

Definition at line 162 of file ntuplemaker.py.

tuple ntuplemaker.iovlist = []

Definition at line 182 of file ntuplemaker.py.

Referenced by EcalCondDBInterface.fetchLMFRunIOV().

ntuplemaker.jline = iline

Definition at line 190 of file ntuplemaker.py.

ntuplemaker.lastRun = "4999999999:4999999999"

Definition at line 164 of file ntuplemaker.py.

ntuplemaker.line = ibeam.IOVBeginTime

Definition at line 304 of file ntuplemaker.py.

tuple ntuplemaker.linedata = line.split()

Definition at line 192 of file ntuplemaker.py.

list ntuplemaker.listbeam = []

Definition at line 277 of file ntuplemaker.py.

tuple ntuplemaker.listmap = readBeamSpotFile(datafilename,listbeam,IOVbase,firstRun,lastRun)

Definition at line 280 of file ntuplemaker.py.

string ntuplemaker.otherArgs = ''

Definition at line 206 of file ntuplemaker.py.

tuple ntuplemaker.output = open(datafilename,"w")

Definition at line 262 of file ntuplemaker.py.

ntuplemaker.passiov = False

Definition at line 217 of file ntuplemaker.py.

ntuplemaker.passline = False

Definition at line 183 of file ntuplemaker.py.

list ntuplemaker.run0 = aline[3]

Definition at line 82 of file ntuplemaker.py.

list ntuplemaker.run1 = aline[5]

Definition at line 83 of file ntuplemaker.py.

tuple ntuplemaker.runsfile = open("FillandRuns.txt")

Definition at line 77 of file ntuplemaker.py.

tuple ntuplemaker.status = commands.getstatusoutput( acommand )

Definition at line 245 of file ntuplemaker.py.

Referenced by HcalChannelQualityXml::_ChannelQuality._ChannelQuality(), XMLProcessor._toXMLCh(), CSCTFAnalyzer.analyze(), ESTimingTask.analyze(), EBStatusFlagsTask.analyze(), EEStatusFlagsTask.analyze(), EBRawDataTask.analyze(), EERawDataTask.analyze(), EBSelectiveReadoutTask.analyze(), BasicHepMCValidation.analyze(), DTNoiseCalibration.analyze(), MCEfficiencyAnalyzer.analyze(), WriteL1TriggerObjetsXml.analyze(), EESelectiveReadoutTask.analyze(), FixTrackHitPattern.analyze(), L1TCSCTF.analyze(), L1Validator.analyze(), FWCaloTowerProxyBuilderBase.assertCaloDataSlice(), gen::PhotosInterface.attachParticles(), ecaldqm::TowerStatusTask.beginLuminosityBlock(), EcalDQMStatusWriter.beginRun(), HcalDeadCellMonitor.beginRun(), HcalMonitorClient.beginRun(), HcalDigiMonitor.beginRun(), HcalDetDiagLEDMonitor.beginRun(), HcalDetDiagPedestalMonitor.beginRun(), HcalDetDiagLaserMonitor.beginRun(), EcalBoundaryInfoCalculator< EcalDetId >.boundaryRecHits(), gen::AMPTHadronizer.build_ampt(), TtSemiLepHypHitFit.buildHypo(), TtSemiLepHypKinFit.buildHypo(), TtFullHadHypKinFit.buildHypo(), CaloGeometryHelper.buildNeighbourArray(), PFMETBenchmark.calculateQuantities(), EcalRecHitWorkerRecover.checkChannelStatus(), pat::UserData.checkDictionaries(), QTestStatusChecker.checkGlobalStatus(), lhef::LHEEvent.checkHepMCTree(), HFTimingTrust.checkHFTimErr(), SiPixelFedCablingTree.checkNumbering(), EcalBoundaryInfoCalculator< EBDetId >.checkRecHitHasDeadNeighbour(), HcalDetDiagPedestalMonitor.CheckStatus(), EgammaHLTNxNClusterProducer.checkStatusOfEcalRecHit(), HLTEcalResonanceFilter.checkStatusOfEcalRecHit(), cond.className(), RFIOFile.close(), NuclearVertexBuilder.closestApproach(), dtCalibration::DTVDriftSegment.compute(), HFShower.compute(), HDShower.compute(), EMShower.compute(), EcalHitMaker.configureGeometry(), ErrorChecker.conversionError(), dtCalibration::DTTTrigMatchRPhi.correction(), dtCalibration::DTTTrigFillWithAverage.correction(), dtCalibration::DTT0FillDefaultFromDB.correction(), dtCalibration::DTT0AbsoluteReferenceCorrection.correction(), dtCalibration::DTT0ChamberReferenceCorrection.correction(), dtCalibration::DTT0FillChamberFromDB.correction(), dtCalibration::DTTTrigConstantShift.correction(), dtCalibration::DTTTrigT0SegCorrection.correction(), dtCalibration::DTT0WireInChamberReferenceCorrection.correction(), dtCalibration::DTTTrigResidualCorrection.correction(), TMatacq.countBadPulses(), ThePEG::HepMCConverter< HepMCEventT, Traits >.createParticle(), DDIsValid(), gen::EvtGenInterface.decay(), LzmaFile.DecodeAll(), LzmaFile.DecodeBuffer(), dtCalibration::DTT0AbsoluteReferenceCorrection.defaultT0(), dtCalibration::DTT0ChamberReferenceCorrection.defaultT0(), dtCalibration::DTT0WireInChamberReferenceCorrection.defaultT0(), Demangle.Demangle(), ora::ClassUtils.demangledName(), pat::UserData.demangleName(), EcalHitMaker.diagonalEdge(), doBZ2Compression(), edm::EDLooperBase.doDuringLoop(), SiPixelGainCalibrationAnalysis.doFits(), EmissionVetoHook1.doVetoFSREmission(), EmissionVetoHook1.doVetoISREmission(), doZlibCompression(), PFRecHitProducerECAL.ecalNeighbArray(), DTVDriftWriter.endJob(), DTT0Correction.endJob(), DTTTrigCorrection.endJob(), LogicTool< RBCLogic >.endjob(), edm::EventProcessor.endOfLoop(), TMatacq.enterdata(), ErrorChecker.errorDetId(), ESRecHitAnalyticAlgo.EvalAmplitude(), ESRecHitFitAlgo.EvalAmplitude(), ESRecHitSimAlgo.evalAmplitude(), PhysicsTools::MVAComputer.evalInternal(), ExternalLHEProducer.executeScript(), EcalHitMaker.fastInsideCell(), MuScleFitPlotter.fillGen(), Py8toJetInput.fillJetAlgoInput(), PFElectronTranslator.fillMVAValueMap(), TrackingQualityChecker.fillTrackingStatus(), TrackingQualityChecker.fillTrackingStatusAtLumi(), EcalMonitorPrescaler.filter(), PythiaFilterIsolatedTrack.filter(), PythiaFilterTTBar.filter(), EcalDeadCellBoundaryEnergyFilter.filter(), HepMCValidationHelper.findFSRPhotons(), findGenParticleForMCEmbedding(), L1GtVhdlWriterCore.findObjectType(), UnbinnedLikelihoodFit.fit(), TtFullHadKinFitter::KinFit.fit(), PixelDataFormatter.formatRawData(), EcalBoundaryInfoCalculator< EcalDetId >.gapRecHits(), GaussNoiseProducerFP420.generate(), pat::PATObject< ObjectType >.genParticleById(), DTTtrig.get(), DTMtime.get(), Py8toJetInput.getAncestor(), dtCalibration::DTTTrigFillWithAverage.getAverage(), edm::EventPrincipal.getByProductID(), ESTrivialConditionRetriever.getChannelStatusFromConfiguration(), EcalTrivialConditionRetriever.getChannelStatusFromConfiguration(), EcalDeadCellTriggerPrimitiveFilter.getChannelStatusMaps(), EcalDeadCellDeltaRFilter.getChannelStatusMaps(), cscdqm::Summary.GetEfficiencyHW(), PixelSLinkDataInputSource.getEventNumberFromFillWords(), edm::Principal.getForOutput(), CrossingPtBasedLinearizationPointFinder.getLinearizationPoint(), TrackingUtility.getMEStatus(), SiStripUtility.getMEStatus(), DTDeadFlagHandler.getNewObjects(), DTStatusFlagHandler.getNewObjects(), DTMtimeHandler.getNewObjects(), DTTPGParametersHandler.getNewObjects(), DTTtrigHandler.getNewObjects(), DTT0Handler.getNewObjects(), DTPerformanceHandler.getNewObjects(), DTRangeT0Handler.getNewObjects(), DTReadOutMappingHandler.getNewObjects(), edm::Principal.getProvenance(), cscdqm::Summary.GetReportingArea(), SiPixelUtility.getStatus(), DQMStore.getStatus(), MuScleFitMuonSelector.getStatus1Muon(), EcalTrivialConditionRetriever.getTrgChannelStatusFromConfiguration(), GenParticlesHelper.hasAncestor(), HcalDetDiagLaserClient.hasErrors_Temp(), HcalDetDiagLaserClient.hasWarnings_Temp(), HcalDetDiagLaserClient.HcalDetDiagLaserClient(), CalorimetryManager.HDShowerSimulation(), HcalHFStatusBitFromRecHits.hfSetFlagFromRecHits(), PFRecHitProducerHO.hoNeighbArray(), HcalDetDiagLaserClient.htmlOutput(), InduceChargeFP420.induce(), fireworks::Context.initEveElements(), RBCBasicConfig.initialise(), TTUBasicConfig.initialise(), RBCLogicUnit.initialise(), TTULogicUnit.initialise(), LogicTool< RBCLogic >.initialise(), RPCWheel.initialise(), RBCEmulator.initialise(), TTUEmulator.initialise(), edm::ParameterDescriptionCases< T >.insert(), edm::ParameterSwitchBase.insertAndCheckLabels(), MBUEandQCDValidation.isCharged(), HepMCValidationHelper.isChargedLepton(), EcalDeadCellDeltaRFilter.isCloseToBadEcalChannel(), AnomalousECALVariables.isDeadEcalCluster(), GenParticlesHelper.isDirect(), MBUEandQCDValidation.isNeutral(), HepMCValidationHelper.isNeutrino(), MBUEandQCDValidation.isNeutrino(), npstat.isNonDecreasing(), npstat.isNonIncreasing(), cscdqm::Summary.IsPhysicsReady(), npstat.isStrictlyDecreasing(), npstat.isStrictlyIncreasing(), FFTJetProducer.iterateJetReconstruction(), PFRecoTauDiscriminationAgainstElectronDeadECAL.loopXtals(), main(), lhef::LHEEvent.makeHepMCParticle(), reco::MCMatchSelector< T1, T2 >.MCMatchSelector(), MergeRootfile(), CaloGeometryHelper.move(), ESRecHitSimAlgo.oldEvalAmplitude(), ESRecHitSimAlgo.oldreconstruct(), TEcnaRead.OpenRootFile(), TEcnaRun.OpenRootFile(), TSCBLBuilderNoMaterial.operator()(), GenJetParticleSelector.operator()(), trigger::TriggerObject.particle(), FFTJetCorrectionProducer.performPileupSubtraction(), pos::PixelDetectorConfig.PixelDetectorConfig(), SymmetryFit.pol2_from_pol2(), SymmetryFit.pol2_from_pol3(), edm::OccurrenceTraits< EventPrincipal, BranchActionStreamBegin >.postPathSignal(), HepMCFileReader.printEvent(), TMatacq.printitermatacqData(), PrimaryVertexAnalyzer4PU.printPVTrks(), RBCChamberORLogic.process(), RPCWheel.process(), edm::EventProcessor.processEvent(), WeakEffectsWeightProducer.produce(), TtSemiLepKinFitProducer< LeptonCollection >.produce(), ISRGammaWeightProducer.produce(), PdfWeightProducer.produce(), ISRWeightProducer.produce(), PFElectronTranslator.produce(), RPCUnpackingModule.produce(), CSCTFUnpacker.produce(), PFLinker.produce(), PFPhotonTranslator.produce(), FlavorHistoryProducer.produce(), RPCTechnicalTrigger.produce(), FFTJetProducer.produce(), EcalTrivialConditionRetriever.produceEcalDAQTowerStatus(), EcalTrivialConditionRetriever.produceEcalDCSTowerStatus(), ecaldqm::SummaryClient.producePlots(), Herwig6Hadronizer.pythiaStatusCode(), StoreEcalCondition.readEcalChannelStatusFromFile(), EcalDQMStatusWriter.readEcalDQMChannelStatusFromFile(), EcalDQMStatusWriter.readEcalDQMTowerStatusFromFile(), DTReadOutMapping.readOutToGeometry(), IOInput.readv(), EcalDAQTowerStatusXMLTranslator.readXML(), EcalDCSTowerStatusXMLTranslator.readXML(), ESRecHitAnalyticAlgo.reconstruct(), ESRecHitSimAlgo.reconstruct(), ESRecHitFitAlgo.reconstruct(), gen::Cascade2Hadronizer.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), TEcnaRootFile.ReStart(), L1GtVhdlWriterCore.returnConditionsOfOneClass(), run_script(), ecaldqm::RawDataTask.runOnRawData(), ecaldqm::SelectiveReadoutTask.runOnSrFlag_(), ecaldqm::TowerStatusTask.runOnTowerStatus(), DQMStore.save(), SiStripInformationExtractor.selectColor(), SiStripInformationExtractor.selectImage(), HcalSourcePositionData.set(), DTStatusFlag.setCellDead(), DTDeadFlag.setCellDead_HV(), DTDeadFlag.setCellDead_RO(), DTDeadFlag.setCellDead_TP(), DTDeadFlag.setCellDiscCat(), DTStatusFlag.setCellFEMask(), DTStatusFlag.setCellNoHV(), DTStatusFlag.setCellNoise(), DTStatusFlag.setCellTDCMask(), DTStatusFlag.setCellTrigMask(), ESRecHitSimAlgo.setChannelStatus(), ESRecHitAnalyticAlgo.setChannelStatus(), ESRecHitFitAlgo.setChannelStatus(), FWLegoViewBase.setContext(), EcalDeadCellTriggerPrimitiveFilter.setEvtRecHitstatus(), EcalDeadCellTriggerPrimitiveFilter.setEvtTPstatus(), ESDigitizer.setGain(), EcalTBHodoscopePlaneRawHits.setHit(), reco::CSCHaloData.SetHLTBit(), FFTJetProducer.setJetStatusBit(), objMon< T >.setMC(), ErrorStreamSource.setRunAndEventInfo(), MonPedestalsOnlineDat.setTaskStatus(), MonDelaysTTDat.setTaskStatus(), MonPedestalOffsetsDat.setTaskStatus(), MonLaserBlueDat.setTaskStatus(), MonLaserRedDat.setTaskStatus(), MonLaserIRedDat.setTaskStatus(), MonLed1Dat.setTaskStatus(), MonLed2Dat.setTaskStatus(), MonPNPedDat.setTaskStatus(), MonLaserGreenDat.setTaskStatus(), MonMemChConsistencyDat.setTaskStatus(), MonCrystalConsistencyDat.setTaskStatus(), MonPedestalsDat.setTaskStatus(), MonMemTTConsistencyDat.setTaskStatus(), MonTTConsistencyDat.setTaskStatus(), MonTestPulseDat.setTaskStatus(), MonPNLed2Dat.setTaskStatus(), MonPNBlueDat.setTaskStatus(), MonPNLed1Dat.setTaskStatus(), MonPNGreenDat.setTaskStatus(), MonPNIRedDat.setTaskStatus(), MonPNRedDat.setTaskStatus(), MonPNMGPADat.setTaskStatus(), ITimingDat.setTaskStatus(), HBHETimingShapedFlagSetter.SetTimingShapedFlags(), Utils.StringMatch(), Utils.stringMatch(), pftools::Utils.StringMatch(), SymmetryFit.symmetryChi2(), TEcnaRootFile.TEcnaRootFile(), CSCFitAFEBThr.ThresholdNoise(), HBHETimingShapedFlagSetter.timingStatus(), TMatacq.TMatacq(), HLTPerformanceInfo.totalPathCPUTime(), HLTPerformanceInfo.totalPathTime(), edm.typeDemangle(), HcaluLUTTPGCoder.update(), CrossingPtBasedLinearizationPointFinder.useAllTracks(), PixelDataFormatter.word2digi(), cscdqm::Summary.Write(), npstat::LinInterpolatedTableND< Numeric, Axis >.write(), EPOS::IO_EPOS.write_event(), EcalEndcapMonitorClient.writeDb(), and EcalBarrelMonitorClient.writeDb().

tuple ntuplemaker.tbyIOV = TTree( 'byIOV', 'beam spot data by IOV' )

Definition at line 117 of file ntuplemaker.py.

tuple ntuplemaker.tbylumi = TTree( 'bylumi', 'beam spot data lumi by lumi' )

Definition at line 105 of file ntuplemaker.py.

tuple ntuplemaker.tbyrun = TTree( 'byrun', 'beam spot data by run' )

Definition at line 129 of file ntuplemaker.py.

tuple ntuplemaker.tmp = commands.getstatusoutput("ls "+option.data)

Definition at line 259 of file ntuplemaker.py.

tuple ntuplemaker.tmpfile = open(datafilename,'w')

Definition at line 214 of file ntuplemaker.py.

list ntuplemaker.tmplistiov = tmpstatus[1]

Definition at line 179 of file ntuplemaker.py.

tuple ntuplemaker.tmplumi = unpack(iIOV.since)

Definition at line 243 of file ntuplemaker.py.

int ntuplemaker.tmplumifirst = 1

Definition at line 220 of file ntuplemaker.py.

int ntuplemaker.tmplumilast = 9999999

Definition at line 221 of file ntuplemaker.py.

tuple ntuplemaker.tmprun = unpack(iIOV.since)

Definition at line 242 of file ntuplemaker.py.

Referenced by AlcaBeamSpotManager.createWeightedPayloads().

tuple ntuplemaker.tmprunfirst = firstRun

Definition at line 218 of file ntuplemaker.py.

tuple ntuplemaker.tmprunlast = lastRun

Definition at line 219 of file ntuplemaker.py.

tuple ntuplemaker.tmpstatus = commands.getstatusoutput( acommand )

Definition at line 178 of file ntuplemaker.py.

tuple ntuplemaker.totlines = len(tmplistiov)

Definition at line 185 of file ntuplemaker.py.

tuple ntuplemaker.weightedlist = listbeam

Definition at line 334 of file ntuplemaker.py.