CMS 3D CMS Logo

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

Functions

def BPIX_list
 
def FPIX_list
 
def getFileInPath
 

Variables

tuple deadROCList_offline = list(set(BPIX_list(filename_offline)))
 
tuple deadROCList_online = list(set(BPIX_list(filename_online)))
 
tuple detIDsFileName = getFileInPath('DQM/SiStripMonitorClient/data/detids.dat')
 
string dir = "DQMData/Run "
 
string dirBPix = dir+"PXBarrel/"
 
string dirFPix = dir+"PXForward/"
 
tuple f = open(outFileName,"w")
 
tuple f1 = open(outFileName_online,"w")
 
tuple f2 = open(outFileName_offline,"w")
 
list filename_offline = sys.argv[2]
 
list filename_online = sys.argv[1]
 
string hnameB = "digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_"
 
tuple MaskedROC_DuringRun = list(set(deadROCList_online) - set(deadROCList_offline))
 
list minlad = [-6,-14,-22,-32]
 
string outFileName = 'DeadROC_Diff.txt'
 
string outFileName_offline = 'DeadROC_offline.txt'
 
string outFileName_online = 'DeadROC_online.txt'
 
list runNum = filename_offline[19:25]
 
string shell = ""
 

Function Documentation

def DeadROC_duringRun.BPIX_list (   inputFile)

Definition at line 36 of file DeadROC_duringRun.py.

References funct.abs(), getFileInPath(), sistrip::SpyUtilities.range(), str, and digitizers_cfi.strip.

36 
37 def BPIX_list(inputFile):
38  DQMfile=TFile(inputFile)
39  BPIXCounter = []
40  BPIXCounter_v0 = []
41  for l in range(1,5):
42  hname=hnameB + str(l)
43 
44  RocMap=DQMfile.FindObjectAny(hname)
45 
46  for j in range(1,RocMap.GetNbinsY()+1):
47 
48  lad=minlad[l-1] + int(j-1)/2
49  alad=abs(lad)
50 
51  for i in range(1,RocMap.GetNbinsX()+1):
52 
53  roc=0
54 
55  bin=RocMap.GetBin(i,j)
56  digi=RocMap.GetBinContent(bin)
57 
58  if (digi!=0): continue
59 
60  mod=-4 + int((i-1)/8)
61 
62  if (lad==0 or mod==0): continue
63 
64  if (lad < 0 and mod < 0) :
65 
66  shell="BmO"
67 
68  if (alad%2==1):
69  if (j%2==1): roc=(i-1)%8
70  if (j%2==0): roc= 15-(i-1)%8
71 
72  elif (alad%2==0):
73  if (j%2 ==0): roc=(i-1)%8
74  if (j%2 ==1): roc= 15-(i-1)%8
75 
76  if (lad > 0 and mod < 0):
77 
78  shell= "BmI";
79 
80  if (lad%2==1):
81  if (j%2 ==0): roc=(i-1)%8
82  if (j%2 ==1): roc= 15-(i-1)%8
83 
84  if (lad%2==0):
85  if (j%2 ==1): roc=(i-1)%8
86  if (j%2 ==0): roc= 15-(i-1)%8
87 
88  if (lad > 0 and mod > 0):
89 
90  shell= "BpI"
91 
92  if (lad%2==1):
93  if (j%2 ==1): roc=7-(i-1)%8
94  if (j%2 ==0): roc=8+(i-1)%8
95 
96  if (lad%2==0):
97  if (j%2 ==0): roc=7-(i-1)%8
98  if (j%2 ==1): roc=8+(i-1)%8
99 
100  if (lad < 0 and mod > 0):
101  shell= "BpO"
102 
103  if (alad%2==1):
104  if (j%2 ==0): roc=7-(i-1)%8
105  if (j%2 ==1): roc=8+(i-1)%8
106 
107  if (alad%2==0):
108  if (j%2 ==1): roc=7-(i-1)%8
109  if (j%2 ==0): roc=8+(i-1)%8
110 
111  f1=open(getFileInPath('DQM/SiStripMonitorClient/data/detids.dat'))
112  modwritten=False
113  Mod_check = "LYR"+str(l) + "_LDR" + str(abs(lad)) + "F_MOD" +str(abs(mod))
114  shell_check = "BPix_" + str(shell)
115 
116  for line in f1:
117  refName=line.split(" ")[1]
118  if modwritten: break
119  shell_ref = str(refName[:8]).strip()
120  module_ref = str(refName[14:]).strip()
121 
122  if (Mod_check == module_ref) and (shell_check == shell_ref):
123 
124  ModuleName_BPIX = refName.strip()+"_ROC "
125  BmLYR1_check = ModuleName_BPIX.split('_')
126  if ((BmLYR1_check[1] == "BmI" or BmLYR1_check[1] == "BmO") and (BmLYR1_check[3] == "LYR1")):
127  if int(roc) <= 7:
128  roc = str(int(roc)+8)
129  elif int(roc) >= 8:
130  roc =str(int(roc)-8)
131 
132  BPix_Name = ModuleName_BPIX + str(roc)
133  BPIXCounter_v0.append(BPix_Name)
134  BPIXCounter = list(set(BPIXCounter_v0))
135  modwritten=True
136  return BPIXCounter
137 
138 #End of Barrel
139 
140 #Doing FPix
141 
142 hnameF="digi_occupancy_per_SignedDiskCoord_per_SignedBladePanelCoord_PXRing_"
143 minbld=[-11,-17]
const uint16_t range(const Frame &aFrame)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
#define str(s)
def DeadROC_duringRun.FPIX_list (   inputFile)

Definition at line 144 of file DeadROC_duringRun.py.

References funct.abs(), sistrip::SpyUtilities.range(), and str.

145 def FPIX_list(inputFile):
146  FPIXCounter = []
147  DQMfile=TFile(inputFile)
148  for r in range (1,3):
149 
150  hname=hnameF + str(r)
151  RocMap=DQMfile.FindObjectAny(hname)
152 
153  for j in range(1,RocMap.GetNbinsY()+1):
154 
155  bld=minbld[r-1] + int(j-1)/4
156  abld=abs(bld)
157 
158  for i in range(1,RocMap.GetNbinsX()+1):
159 
160  roc=0
161 
162  bin=RocMap.GetBin(i,j)
163  digi=RocMap.GetBinContent(bin)
164 
165  if (digi!=0): continue
166 
167  disk=-3 + int(i-1)/8
168 
169  if (bld==0 or disk==0): continue
170 
171  pnl=0
172 
173  if ((j-1)%4==0 or (j-1)%4==1): pnl=2
174  if ((j-1)%4==2 or (j-1)%4==3): pnl=1
175 
176  if (disk < 0 and bld <0):
177 
178  shell= "BmO"
179 
180  if ((j-1)%4==0 or (j-1)%4==3): roc= 15-(i-1)%8
181  if ((j-1)%4==1 or (j-1)%4==2): roc= (i-1)%8
182 
183  if (disk < 0 and bld >0):
184 
185  shell= "BmI";
186 
187  if ((j-1)%4==0 or (j-1)%4==3): roc= 15-(i-1)%8
188  if ((j-1)%4==1 or (j-1)%4==2): roc= (i-1)%8
189 
190  if (disk > 0 and bld >0):
191 
192  shell= "BpI"
193 
194  if ((j-1)%4==0 or (j-1)%4==3): roc=7-(i-1)%8
195  if ((j-1)%4==1 or (j-1)%4==2): roc=8+(i-1)%8
196 
197  if (disk > 0 and bld <0):
198 
199  shell= "BpO"
200 
201  if ((j-1)%4==0 or (j-1)%4==3): roc=7-(i-1)%8;
202  if ((j-1)%4==1 or (j-1)%4==2): roc=8+(i-1)%8;
203 
204 
205  FPix_Name = "FPix_" + str(shell) + "_D" + str(abs(disk)) + '_BLD'+ str(abs(bld)) + '_PNL' + str(abs(pnl)) + '_RNG'+ str(abs(r)) + "_ROC " + str(roc) +""
206  FPIXCounter.append(FPix_Name)
207  return FPIXCounter
208 
const uint16_t range(const Frame &aFrame)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
#define str(s)
def DeadROC_duringRun.getFileInPath (   rfile)

Definition at line 9 of file DeadROC_duringRun.py.

References submitPVValidationJobs.split().

Referenced by BPIX_list().

9 
10 def getFileInPath(rfile):
11  import os
12  for dir in os.environ['CMSSW_SEARCH_PATH'].split(":"):
13  if os.path.exists(os.path.join(dir,rfile)): return os.path.join(dir,rfile)
14  return None
15 

Variable Documentation

tuple DeadROC_duringRun.deadROCList_offline = list(set(BPIX_list(filename_offline)))

Definition at line 210 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.deadROCList_online = list(set(BPIX_list(filename_online)))

Definition at line 209 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.detIDsFileName = getFileInPath('DQM/SiStripMonitorClient/data/detids.dat')

Definition at line 16 of file DeadROC_duringRun.py.

string DeadROC_duringRun.dir = "DQMData/Run "

Definition at line 23 of file DeadROC_duringRun.py.

Referenced by Config.ProcessFragment.__dir__(), python.rootplot.core.Options.__init__(), TFileDirectory._cd(), electrons_cff._get_bitmapVIDForEle_docstring(), python.rootplot.core.add_from_config_files(), helpers.addESProducers(), SiStripTFile.addPath(), reco::IsoDeposit.algoWithin(), l1t::L1TStage2CaloAnalyzer.analyze(), PatBJetVertexAnalyzer.analyze(), tadqm::TrackAnalyzer.analyze(), DTTrigTest.analyze(), DTLocalTriggerSynchTask.analyze(), fwlite::AnalyzerWrapper< T >.AnalyzerWrapper(), python.rootplot.core.Options.append_from_package(), LayerCrossingSide.barrelSide(), SiStripCommissioningSource.beginRun(), SiStripCorrelateNoise.beginRun(), SUSYDQMAnalyzer.bookHistograms(), HiggsValidation.bookHistograms(), NanoAODDQM.bookHistograms(), Phase2ITMonitorRecHit.bookHistograms(), TTbarSpinCorrHepMCAnalyzer.bookHistograms(), TrackToTrackComparisonHists.bookHistograms(), IsolatedTracksNxN.bookHistograms(), FWME0SegmentProxyBuilder.build(), FWCSCSegmentProxyBuilder.build(), btagbtvdeep::TrackPairInfoBuilder.buildTrackPairInfo(), FWGEMSegmentProxyBuilder.buildViewType(), FWDTSegmentProxyBuilder.buildViewType(), EcalHitMaker.cellLine(), evf::DirManager.checkDirEmpty(), ExternalLHEProducer.closeDescriptors(), SignedDecayLength3D.closestApproachToJet(), SignedImpactParameter3D.closestApproachToJet(), IPTools.closestApproachToJet(), hgcal::EGammaPCAHelper.clusterDepthCompatibility(), NuclearInteractionFTFSimulator.compute(), GEMSuperChamber.computeDeltaPhi(), ME0Chamber.computeDeltaPhi(), DTDigitizer.computeTime(), EcalHitMaker.configureGeometry(), EcalHitMaker.correspondingEdge(), SiStripCommissioningSource.createCablingTasks(), SiStripCommissioningSource.createTasks(), SimpleNavigableLayer.crossingState(), MaterialBudgetData.dataStartTrack(), dd_to_html(), reco::IsoDeposit.depositAndCountWithin(), MultipleScatteringGeometry.detLayers(), HelixArbitraryPlaneCrossing.direction(), HelixArbitraryPlaneCrossing2Order.direction(), TangentCircle.direction(), TangentHelix.directionAtVertex(), BeamHaloPropagator.directionCheck(), cond2xml.CondXmlProcessor.discover(), getPayloadData.discover(), SignedImpactParameter3D.distanceWithJetAxis(), SiStripCorrelateNoise.DoPlots(), EmDQMPostProcessor.dqmEndJob(), JetMETDQMPostProcessor.dqmEndJob(), TriggerRatesMonitorClient.dqmEndJob(), Comparator.DrawGaussSigmaOverMeanSlice(), Comparator.DrawGaussSigmaOverMeanXSlice(), Comparator.DrawGaussSigmaSlice(), Comparator.DrawMeanSlice(), Comparator.DrawSigmaSlice(), CaloTower.emP4(), FWLiteEnabler.enable(), EcalPedHists.endJob(), SiStripCommissioningSource.endJob(), EcalURecHitHists.endJob(), EcalCosmicsHists.endJob(), DQMHistNormalizer.endRun(), FWGUIManager.exportImagesOfAllViews(), Config.Process.extend(), helpers.extendWithPrePostfix(), CombinedSVComputer.fillCommonVariables(), MaterialBudgetCastorHistos.fillStartTrack(), MaterialBudgetHcalHistos.fillStartTrack(), TrackCountingTagPlotter.finalize(), TrackProbabilityTagPlotter.finalize(), PPSAlignmentConfigurationESSource.findDirectoryWithName(), evf::DirManager.findHighestRun(), evf::DirManager.findHighestRunDir(), edm::storage::LocalFileSystem.findMount(), evf::DirManager.findRunDir(), InOutConversionSeedFinder.findSeeds(), StraightTrackAlignment.finish(), DTSegmentUpdator.fit(), util.rrapi.RRApi.get(), rrapi.RRApi.get(), hcal_runs.get_all(), hcal_runs_valdas.get_all(), hcal_runs.get_single(), hcal_runs_valdas.get_single(), EDMtoMEConverter.getData(), ClusterShapeHitFilter.getDrift(), ClusterShapeTrackFilter.getGlobalDirs(), SiPixelGainCalibrationReadDQMFile.getHistograms(), CrossingPtBasedLinearizationPointFinder.getLinearizationPoint(), getObject(), getplot(), dqm::implementation::IGetter.getSubdirs(), CTPPSGeometry.globalToLocalDirection(), CaloTower.hadP4(), EcalHitMaker.hcalCellLine(), HCovarianceVSxy.HCovarianceVSxy(), HelixBarrelPlaneCrossing2OrderLocal.HelixBarrelPlaneCrossing2OrderLocal(), Comparator.Histo(), RectangularEtaPhiTrackingRegion.hits(), CosmicTrackingRegion.hits_(), MultiHitGeneratorFromChi2.hitSets(), HResolution.HResolution(), reco::GhostTrackPrediction.init(), l1tpf::corrector.init_(), SiStripDetKey.initFromPath(), SiStripFecKey.initFromPath(), SiStripFedKey.initFromPath(), RunManagerMT.initG4(), fastsim::NuclearInteractionFTF.interact(), DTChamberEfficiencyTask.interpolate(), RKPropagatorInS.invertDirection(), ThirdHitPrediction.isCompatibleWithMultipleScattering(), StraightLinePropagator.jacobian(), L3NominalEfficiencyConfigurator.L3NominalEfficiencyConfigurator(), LightRay.LightRay(), IPTools.linearImpactParameter(), CTPPSGeometry.localToGlobalDirection(), ls_cert_type(), main(), photons_cff.make_bitmapVID_docstring(), Types.makeCppPSet(), HistogramManager.makePathName(), SETSeedFinder.makeSeed(), CaloGeometryHelper.move(), PFECALHashNavigator.move(), OffsetAnalyzerDQM.OffsetAnalyzerDQM(), trklet.openfile(), PropagationDirectionChooser.operator()(), GroupedCkfTrajectoryBuilder.oppositeDirection(), python.rootplot.core.option_diff(), TrajectoryFactoryBase.orderedTrajectoryMeasurements(), CaloTower.p4(), CaloTower.p4_HO(), edmplugin::PluginManager.PluginManager(), HelixBarrelPlaneCrossing2OrderLocal.positionOnly(), FullModelHadronicProcess.PostStepDoIt(), EcalHitMaker.preshowerCellLine(), ClusterShape.processColumn(), SteppingHelixPropagatorESProducer.produce(), GeantPropagatorESProducer.produce(), SETMuonSeedProducer.produce(), L1MuGlobalMuonTrigger.produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >.produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >.produce(), TestHits.projectHit(), TestSmoothHits.projectHit(), TestTrackHits.projectHit(), SiStripRecHitsValid.projectHit(), GlobalRecHitsAnalyzer.projectHit(), GlobalRecHitsProducer.projectHit(), SiStripTrackingRecHitsValid.projectHit(), FWGUIManager.promptForConfigurationFile(), FWViewBase.promptForSaveImageTo(), SteppingHelixPropagator.propagate(), StraightLinePropagator.propagateParametersOnCylinder(), RKPropagatorInS.propagateParametersOnPlane(), hcal_runs.query(), hcal_runs_valdas.query(), DTLocalTriggerBaseTask.runTMAnalysis(), CalibrationHistograms.save(), CommissioningHistograms.save(), Styles.SavePlot(), SeedFromGenericPairOrTriplet.seedFromTriplet(), DTCombinatorialPatternReco4D.segmentSpecialZed(), CalibrationScanTask.setCurrentFolder(), CalibrationTask.setCurrentFolder(), VariablePlotter.setDir(), DTSegmentCand.setDirection(), DTRecSegment4D.setDirection(), DTRecSegment2D.setDirection(), Benchmark.setDirectory(), Propagator.setPropagationDirection(), EcalHitMaker.setTrackParameters(), vid_id_tools.setupAllVIDIdsInModule(), RecoTauValidation_cfi.SetYmodulesToLog(), InOutConversionSeedFinder.startSeed(), LaserSorter.streamFileName(), reco::IsoDeposit.sumWithin(), TrajectorySeed.swap(), TangentCircle.TangentCircle(), TB06Tree.TB06Tree(), TB06TreeH2.TB06TreeH2(), reco::GhostTrackPrediction.track(), TrackCountingTagPlotter.TrackCountingTagPlotter(), TrackerDpgAnalysis.TrackerDpgAnalysis(), TrackProbabilityTagPlotter.TrackProbabilityTagPlotter(), reco::JetSignalVertexCompatibilityAlgo.trackVertexCompat(), trackVertexCompat(), CosmicMuonTrajectoryBuilder.trajectories(), DTTrigGeomUtils.trigDir(), MaterialBudgetHcalProducer.update(), DTSegmentUpdator.update(), L1MuonPixelTrackFitter.valPhi(), muonisolation::TrackExtractor.veto(), muonisolation::PixelTrackExtractor.veto(), muonisolation::CandViewExtractor.veto(), PFCandWithSuperClusterExtractor.veto(), egammaisolation::EgammaTrackExtractor.veto(), muonisolation::TrackExtractor.vetos(), muonisolation::PixelTrackExtractor.vetos(), egammaisolation::EgammaTrackExtractor.vetos(), WatcherStreamFileReader.WatcherStreamFileReader(), TH1Store.write(), ApeEstimatorSummary.writeHists(), and l1tpf::corrector.writeToFile().

string DeadROC_duringRun.dirBPix = dir+"PXBarrel/"

Definition at line 26 of file DeadROC_duringRun.py.

string DeadROC_duringRun.dirFPix = dir+"PXForward/"

Definition at line 27 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.f = open(outFileName,"w")

Definition at line 218 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.f1 = open(outFileName_online,"w")

Definition at line 219 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.f2 = open(outFileName_offline,"w")

Definition at line 220 of file DeadROC_duringRun.py.

list DeadROC_duringRun.filename_offline = sys.argv[2]

Definition at line 19 of file DeadROC_duringRun.py.

list DeadROC_duringRun.filename_online = sys.argv[1]

Definition at line 18 of file DeadROC_duringRun.py.

string DeadROC_duringRun.hnameB = "digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_"

Definition at line 29 of file DeadROC_duringRun.py.

tuple DeadROC_duringRun.MaskedROC_DuringRun = list(set(deadROCList_online) - set(deadROCList_offline))

Definition at line 212 of file DeadROC_duringRun.py.

list DeadROC_duringRun.minlad = [-6,-14,-22,-32]

Definition at line 31 of file DeadROC_duringRun.py.

string DeadROC_duringRun.outFileName = 'DeadROC_Diff.txt'

Definition at line 215 of file DeadROC_duringRun.py.

Referenced by main(), and ZdcTBAnalysis.setup().

string DeadROC_duringRun.outFileName_offline = 'DeadROC_offline.txt'

Definition at line 217 of file DeadROC_duringRun.py.

string DeadROC_duringRun.outFileName_online = 'DeadROC_online.txt'

Definition at line 216 of file DeadROC_duringRun.py.

list DeadROC_duringRun.runNum = filename_offline[19:25]

Definition at line 21 of file DeadROC_duringRun.py.

Referenced by CastorLedAnalysis.CastorLedAnalysis(), RunList.fetchGlobalRunsByLocation(), MonRunList.fetchLastNRuns(), RunList.fetchLastNRuns(), MonRunList.fetchRuns(), RunList.fetchRuns(), RunList.fetchRunsByLocation(), HcalLedAnalysis.HcalLedAnalysis(), main(), FFTJetTreeDump.processTreeData(), and ESDCCHeaderBlock.setRunNumber().

string DeadROC_duringRun.shell = ""

Definition at line 33 of file DeadROC_duringRun.py.

Referenced by SiPixelDigiSource.analyze(), SiPixelTrackResidualSource.analyze(), SiPixelHitEfficiencySource.analyze(), SiPixelDQMRocLevelAnalyzer.beginJob(), SiPixelUtility.computeHistoBin(), do_work(), and sipixelobjects::FrameConversion.FrameConversion().