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 6 of file mergeVDriftHistosByStation.py.

References harvestTrackValidationPlots.str.

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

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

Definition at line 14 of file mergeVDriftHistosByStation.py.

References getHistoName().

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

Definition at line 28 of file mergeVDriftHistosByStation.py.

References getHistoName(), and harvestTrackValidationPlots.str.

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