CMS 3D CMS Logo

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

Functions

def getHistoName
 
def mergeHistosWheelSector
 
def mergeHistosWheelStation
 

Variables

tuple file = ROOT.TFile(options.file,"READ")
 
dictionary histos = {}
 
string name = "hRPhiVDriftCorr_"
 
tuple outputFile = ROOT.TFile(options.out,"RECREATE")
 
tuple parser = optparse.OptionParser("Usage: %prog [--options]")
 
tuple sectors = range(1,15)
 
string sectorStr = 'Sec'
 
tuple stations = range(1,5)
 
string stationStr = 'St'
 
tuple wheels = range(-2,3)
 
string wheelStr = 'W'
 

Function Documentation

def mergeVDriftHistosByStation.getHistoName (   wheel,
  station,
  sector 
)

Definition at line 6 of file mergeVDriftHistosByStation.py.

Referenced by dtCalibration::DTTTrigT0SegCorrection.getHisto(), mergeHistosWheelSector(), and mergeHistosWheelStation().

6 
7 def getHistoName(wheel,station,sector):
8  wheelStr = 'W' + str(wheel)
9  stationStr = 'St' + str(station)
10  sectorStr = 'Sec' + str(sector)
11  name = "hRPhiVDriftCorr_" + wheelStr + "_" + stationStr + "_" + sectorStr
12 
13  return name
def mergeVDriftHistosByStation.mergeHistosWheelSector (   file,
  wheel,
  sector 
)

Definition at line 14 of file mergeVDriftHistosByStation.py.

References getHistoName().

14 
15 def mergeHistosWheelSector(file, wheel, sector):
16 
17  histWheelSector = None
18  for station in range(1,5):
19  if sector in (13,14) and station != 4: continue
20  name = getHistoName(wheel,station,sector)
21  hist = file.Get(name)
22  if hist:
23  print "Adding",hist.GetName()
24  if not histWheelSector: histWheelSector = hist.Clone( "h_W%d_Sec%d" % (wheel,sector) )
25  else: histWheelSector.Add(hist)
26 
27  return histWheelSector
def mergeVDriftHistosByStation.mergeHistosWheelStation (   file,
  wheel,
  station 
)

Definition at line 28 of file mergeVDriftHistosByStation.py.

References getHistoName().

28 
29 def mergeHistosWheelStation(file, wheel, station):
30 
31  sectors = range(1,13)
32  if station == 4: sectors.extend([13,14])
33  histWheelStation = None
34  for sector in sectors:
35  name = getHistoName(wheel,station,sector)
36  hist = file.Get(name)
37  if hist:
38  print "Adding",hist.GetName()
39  if not histWheelStation: histWheelStation = hist.Clone( "h_W%d_St%d" % (wheel,station) )
40  else: histWheelStation.Add(hist)
41 
42  return histWheelStation

Variable Documentation

tuple mergeVDriftHistosByStation.file = ROOT.TFile(options.file,"READ")

Definition at line 54 of file mergeVDriftHistosByStation.py.

Referenced by DumpFWRecoGeometry.analyze(), DumpFWTGeoRecoGeometry.analyze(), LHEWriter.analyze(), LHEWriter.beginRun(), ESPedestalTask.bookHistograms(), DTDigiReader.DTDigiReader(), sistrip::EnsembleCalibrationLA.endJob(), LHEWriter.endRun(), ESDigiToRaw.ESDigiToRaw(), ESElectronicsMapper.ESElectronicsMapper(), ESPedestalClient.ESPedestalClient(), reco::ExpressionEvaluator.ExpressionEvaluator(), spf::SherpackFetcher.Fetch(), dqm::DQMFileSaverBase.filename(), edm::FileRandomKEThetaGunProducer.FileRandomKEThetaGunProducer(), L1MuDTPhiLut.load(), L1MuDTEtaPatternLut.load(), L1MuDTQualPatternLut.load(), logger.logger.logJobs(), main(), LocalStorageMaker.open(), DCacheStorageMaker.open(), StormStorageMaker.open(), StormLcgGtStorageMaker.open(), RFIOStorageMaker.open(), IODConfig.populateClob(), SiPixelFakeGenErrorDBObjectESSource.produce(), SiPixelFakeTemplateDBObjectESSource.produce(), DTSurvey.ReadChambers(), L1MuCSCPtLut.readFromDBS(), reco::details.readGzipFile(), CSCTFConfigProducer.readLUT(), cmsDriver.run(), CommonAnalyzer.setFile(), FWGeometryTableViewManager.setGeoManagerFromFile(), edm::LogDebug_.stripLeadingDirectoryTree(), sistrip::EnsembleCalibrationLA.write_calibrations(), sistrip::EnsembleCalibrationLA.write_ensembles_plots(), sistrip::EnsembleCalibrationLA.write_ensembles_text(), sistrip::EnsembleCalibrationLA.write_samples_plots(), l1t::L1TCaloStage1LutWriter.writeIsoTauLut(), ZSPJPTJetCorrector.ZSPJPTJetCorrector(), AnalysisTasksAnalyzerJEC.~AnalysisTasksAnalyzerJEC(), and DTDigiReader.~DTDigiReader().

dictionary mergeVDriftHistosByStation.histos = {}

Definition at line 60 of file mergeVDriftHistosByStation.py.

Referenced by ApvLatencyAlgorithm.analyse(), VpspScanAlgorithm.analyse(), SiStripPlotGain.DoAnalysis(), HcalTestHistoManager.fillTree(), and PlotCombiner.makePlot().

string mergeVDriftHistosByStation.name = "hRPhiVDriftCorr_"

Definition at line 77 of file mergeVDriftHistosByStation.py.

Referenced by HcalOfflineHarvesting._dqmEndJob(), HcalOnlineHarvesting._dqmEndLuminosityBlock(), OOTPileupCorrectionColl.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), SiPixelDetSummary.add(), TH1Store.add(), edm::ProcessDesc.addDefaultService(), FWInteractionList.added(), edm::ProcessDesc.addForcedService(), EcalBaseNumber.addLevel(), ParameterMgr.addParameter(), PythonParameterSet.addParameter(), heppy::PdfWeightProducerTool.addPdfSet(), ParameterMgr.addRandomFlatParameter(), ParameterMgr.addRandomGaussParameter(), edm::eventsetup::ComponentFactory< T >.addTo(), MuonDDDConstants.addValue(), L1uGTTreeProducer.analyze(), B2GHadronicHLTValidation.analyze(), FWCaloDataHistProxyBuilder.assertCaloDataSlice(), FWProxyBuilderConfiguration.assertParam(), PatBJetTagAnalyzer.beginJob(), DigiVtxPosCorrHistogramMaker.book(), DigiVertexCorrHistogramMaker.book(), Histos.book(), AlignmentMonitorGeneric.book(), HcalDigisClient.book1D(), HcalDigisClient.book2D(), GEMCheckGeometry.bookHistograms(), CSCOfflineClient.bookMonitorObject(), HcalDigisClient.bookPf(), HGCalParametersFromDD.build(), TrackerParametersFromDD.build(), GEMGeometryBuilderFromCondDB.build(), ME0GeometryBuilderFromCondDB.build(), RPCGeometryBuilderFromCondDB.build(), ME0GeometryParsFromDD.buildGeometry(), GEMGeometryParsFromDD.buildGeometry(), RPCGeometryParsFromDD.buildGeometry(), HcalTBWriter.buildTree(), PSMonitorClient.check(), className(), FWDetailView< reco::Muon >.classRegisterTypeName(), clusterChargeCut(), ScaleRecordHelper.columnName(), CombinedSeedComparitor.CombinedSeedComparitor(), ConfFitterBuilder< O >.ConfFitterBuilder(), ConfRecoBuilder< O >.ConfRecoBuilder(), Looses.count(), edm::SharedResourcesRegistry.createAcquirer(), cscClassPackerCompare(), CSCTFConfigProducer.CSCTFConfigProducer(), DDSplit(), defaultModuleLabel(), egammaisolation::EgammaRecHitExtractor.deposit(), egammaisolation::EgammaHcalExtractor.deposit(), egammaisolation::EgammaEcalExtractor.deposit(), egammaisolation::EgammaTowerExtractor.deposit(), SiStripBadComponentsDQMServiceReader.detIdToString(), hcaldqm::DQClient.DQClient(), RPCRecHitProbabilityClient.dqmEndJob(), DQMHcalIsoTrackPostProcessor.dqmEndJob(), JetMETHLTOfflineClient.dqmEndJob(), CSCOfflineClient.dqmEndJob(), BrilClient.dqmEndLuminosityBlock(), DummyCondDBWriter< TObject, TObjectO, TRecord >.DummyCondDBWriter(), DummyCondObjPrinter< TObject, TRecord >.DummyCondObjPrinter(), OpticalObjectMgr.dumpOptOs(), PrintSensitive.dumpTouch(), ecaldqm::EcalDQMonitor.EcalDQMonitor(), MRHChi2MeasurementEstimator.estimate(), DDHCalForwardAlgo.execute(), DDHGCalWaferAlgo.execute(), DDHCalFibreBundle.execute(), DDTECAxialCableAlgo.execute(), EntryMgr.extractShortName(), TrackMVAClassifier< MVA >.fillDescriptions(), edm::reftobase::RefHolder< REF >.fillRefIfMyTypeMatches(), edm::reftobase::Holder< T, REF >.fillRefIfMyTypeMatches(), Overlayer.find(), PhysicsTools::SourceVariableSet.find(), tauImpactParameter::Chi2VertexFitter.fit(), FitSlicesYTool.FitSlicesYTool(), FTSLuminosityFromPileupSummaryInfo.FTSLuminosityFromPileupSummaryInfo(), FTSLuminosityFromPixelClusters.FTSLuminosityFromPixelClusters(), FTSLuminosityFromScalers.FTSLuminosityFromScalers(), FTSLuminosityFromVertices.FTSLuminosityFromVertices(), KfComponentsHolder.genericFill(), AlignSetup< Type >.get(), ConfObject.get(), edm::ExtensionCord< T >.get(), SiStripConfObject.get(), CSGActionSupervisor.getAction(), SiStripCablingDQM.getActiveDetIds(), DetNaming.getAllKeys(), edm::ProcessHistory.getConfigurationForProcess(), vid::CutFlowResult.getCutFlowResultMasking(), vid::CutFlowResult.getCutResultByName(), popcon::SiStripPopConDbObjHandler< T, U >.getDataType(), PFGSFixLinker.getHandle(), PFEGFootprintGSFixLinker.getHandle(), GEDPhotonCoreGSCrysFixer.getHandle(), ConversionGSCrysFixer.getHandle(), GEDPhotonGSCrysFixer.getHandle(), FWEveOverlap.GetHighlightTooltip(), SiStripPlotGain.getHisto(), MillePedeMonitor.GetIndex(), hcaldqm::quantity.getLabels_ieta(), hcaldqm::quantity.getLabels_TTieta(), hcaldqm::quantity.getLabels_TTieta2x3(), PythonParameterSet.getParameter(), edm::ParameterSet.getParameter(), PythonParameterSet.getParameters(), ParameterMgr.getParameterValue(), pat::__class__.getSize(), edm::service::TriggerNamesService.getTrigPaths(), BHMNumberingScheme.getUnitID(), ZdcNumberingScheme.getUnitID(), BscNumberingScheme.getUnitID(), edm::ParameterSet.getUntrackedParameter(), vid::CutFlowResult.getValueCutUpon(), HcalTBWriter.HcalTBWriter(), HGCNumberingScheme.HGCNumberingScheme(), PixelPopConDCSSourceHandler< Type >.id(), CombinedMVAV2JetTagComputer.initialize(), hcaldqm::ContainerD.initialize(), hcaldqm::ContainerI.initialize(), hcaldqm::ContainerS.initialize(), ExpressionHisto< T >.initialize(), vid::CutFlowResult.isCutMasked(), FWInteractionList.itemChanged(), L1TMuonTriggerPrimitiveProducer.L1TMuonTriggerPrimitiveProducer(), L3NominalEfficiencyConfigurator.L3NominalEfficiencyConfigurator(), main(), l1t::PackerFactory.make(), l1t::UnpackerFactory.make(), makeGifHists(), OptOTiltmeter.makeMeasurement(), FWParameterSetterBase.makeSetterFor(), RunHistogramManager.makeTH1F(), RunHistogramManager.makeTH2F(), RunHistogramManager.makeTProfile(), RunHistogramManager.makeTProfile2D(), DTRangeT0.mapName(), TEcnaRootFile.OpenR(), TEcnaRootFile.OpenW(), TwoBodyDecayParameters.operator()(), operator<<(), TwoBodyDecay.operator[](), TwoBodyDecayParameters.operator[](), edm.ParameterSet::getParameter< std::vector< PdtEntry > >(), edm.ParameterSet::getUntrackedParameter< std::vector< PdtEntry > >(), trivialParser.parse(), PFRecHitCreatorBase.PFRecHitCreatorBase(), PFRecHitProducer.PFRecHitProducer(), PFTauMVAInputDiscriminantTranslator.PFTauMVAInputDiscriminantTranslator(), Phase2StripCPEESProducer.Phase2StripCPEESProducer(), egHLT::PhoHLTFilterMon.PhoHLTFilterMon(), DDLRotationByAxis.preProcessElement(), PrescalerFHN.PrescalerFHN(), edm.print_eventsetup_record_dependencies(), print_rates(), PrintSensitive.PrintSensitive(), DDLPolyGenerator.processElement(), CaloGeometryDBEP< T, U >.produceAligned(), projectProfile2DAlongX(), projectProfile2DAlongY(), FWViewBase.promptForSaveImageTo(), SusyPostProcessor.QuantilePlots(), MultiFileBlob.read(), CollHandle< EEDigiCollection >.read(), edm::detail.reallyfillPtrVector(), edm::detail.reallySetPtr(), fwlite::EventSetup.recordID(), ecaldqm::DQWorkerTask.recoverStats(), VertexFitterManager.registerFitter(), VertexRecoManager.registerReconstructor(), PdgEntryReplacer.replace(), TEcnaRootFile.ReStart(), Styles.SavePlot(), ctfseeding::SeedingLayer.SeedingLayer(), FWViewContextMenuHandlerGL.select(), cond::persistency::GLOBAL_TAG::Table.select(), CandMassKinFitter.set(), ora::NamedReference.set(), BTagPerformance.Set(), Logger.set(), ora::IDatabaseTable.setAccessPermission(), ComponentFactoryByName< B >.setBuilder(), CDFChunk.setChunkName(), BSFitter.SetFitVariable(), popcon::SiStripPopConDbObjHandler< T, U >.setForTransfer(), reco::CaloTauTagInfo.setJetRef(), ecaldqm::DQWorker.setME(), jsoncollector::JsonMonitorable.setName(), GEMStation.setName(), MonRunDat.setRootfileName(), l1t::GlobalScales.setScalesName(), SiStripDbParams.sharedMemory(), SiStripConfObject::get< std::string >(), SiStripConfObject::get< std::vector< int > >(), SiStripConfObject::get< std::vector< std::string > >(), SiStripConfObject::put< std::vector< int > >(), SiStripConfObject::put< std::vector< std::string > >(), SiStripConfObject::update< std::vector< int > >(), SiStripConfObject::update< std::vector< std::string > >(), SiStripRecHitMatcherESProducer.SiStripRecHitMatcherESProducer(), ecaldqm::DQWorkerTask.softReset(), DDLSAX2ConfigHandler.startElement(), AlignableObjectId.stringToId(), StripCPEESProducer.StripCPEESProducer(), FWTableViewManager::TableHandle.TableHandle(), GenericMVAComputer::TaggingVariableMapping.TaggingVariableMapping(), TEcnaRootFile.TEcnaRootFile(), testSerialization(), pat.throwMissingLabel(), jsoncollector::DataPoint.trackDummy(), edmplugin::PluginCapabilities.tryToFind(), TSOSHistogramMaker.TSOSHistogramMaker(), reco.typeCode(), pat::UserHolder< T >.typeName_(), HLTPerformanceInfo.uniqueModule(), cond::persistency::GLOBAL_TAG::Table.update(), StoreSecondary.update(), KFUpdator.update(), PhysicsTools::SourceVariableSet::PosVar.VarNameLess(), hepmc_rootio.weightcontainer_set_default_names(), edmplugin::CacheParser.write(), SubTaskSummaryStatus.WriteThreshold(), and XMLLUTLoader.XMLLUTLoader().

tuple mergeVDriftHistosByStation.outputFile = ROOT.TFile(options.out,"RECREATE")

Definition at line 68 of file mergeVDriftHistosByStation.py.

tuple mergeVDriftHistosByStation.parser = optparse.OptionParser("Usage: %prog [--options]")

Definition at line 45 of file mergeVDriftHistosByStation.py.

tuple mergeVDriftHistosByStation.sectors = range(1,15)

Definition at line 59 of file mergeVDriftHistosByStation.py.

Referenced by MagGeoBuilderFromDDD::bLayer.buildMagBLayer(), and MagFieldConfig.MagFieldConfig().

string mergeVDriftHistosByStation.sectorStr = 'Sec'

Definition at line 76 of file mergeVDriftHistosByStation.py.

tuple mergeVDriftHistosByStation.stations = range(1,5)

Definition at line 58 of file mergeVDriftHistosByStation.py.

Referenced by AlignmentCSCBeamHaloSelector.select().

string mergeVDriftHistosByStation.stationStr = 'St'

Definition at line 73 of file mergeVDriftHistosByStation.py.

tuple mergeVDriftHistosByStation.wheels = range(-2,3)

Definition at line 57 of file mergeVDriftHistosByStation.py.

string mergeVDriftHistosByStation.wheelStr = 'W'

Definition at line 71 of file mergeVDriftHistosByStation.py.