CMS 3D CMS Logo

Functions
mergeVDriftHistosByStation Namespace Reference

Functions

def getHistoName (wheel, station, sector)
 
def mergeHistosWheelSector (file, wheel, sector)
 
def mergeHistosWheelStation (file, wheel, station)
 

Function Documentation

def mergeVDriftHistosByStation.getHistoName (   wheel,
  station,
  sector 
)

Definition at line 7 of file mergeVDriftHistosByStation.py.

References str.

Referenced by DTT0CalibrationRMS.analyze(), DTT0Calibration.analyze(), dtCalibration::DTTTrigT0SegCorrection.getHisto(), dtCalibration::DTTTrigResidualCorrection.getHisto(), cscdqm::HistoDef.getName(), cscdqm::CSCHistoDef.getName(), mergeHistosWheelSector(), and mergeHistosWheelStation().

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
14 
def getHistoName(wheel, station, sector)
#define str(s)
def mergeVDriftHistosByStation.mergeHistosWheelSector (   file,
  wheel,
  sector 
)

Definition at line 15 of file mergeVDriftHistosByStation.py.

References getHistoName(), and edm.print().

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
28 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def getHistoName(wheel, station, sector)
def mergeHistosWheelSector(file, wheel, sector)
def mergeVDriftHistosByStation.mergeHistosWheelStation (   file,
  wheel,
  station 
)

Definition at line 29 of file mergeVDriftHistosByStation.py.

References getHistoName(), edm.print(), and str.

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
43 
def mergeHistosWheelStation(file, wheel, station)
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def getHistoName(wheel, station, sector)