ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
PlotCalibrationGains.L1CaloMap Class Reference
Collaboration diagram for PlotCalibrationGains.L1CaloMap:

Public Member Functions

def __init__ (self, title, XaxisTitle="", YaxisTitle="")
 
def Draw (self)
 
def Fill (self, eta, phi, gain=1)
 
def SetMinimum (self, minimum)
 
def SetMaximum (self, maximum)
 

Public Attributes

 nxbins
 
 xbins
 
 h_1
 

Detailed Description

Definition at line 15 of file PlotCalibrationGains.py.

Constructor & Destructor Documentation

◆ __init__()

def PlotCalibrationGains.L1CaloMap.__init__ (   self,
  title,
  XaxisTitle = "",
  YaxisTitle = "" 
)

Definition at line 17 of file PlotCalibrationGains.py.

17  def __init__(self,title,XaxisTitle="",YaxisTitle=""):
18 
19  self.nxbins = 66
20  self.xbins = array('d',[-49.5,-44.5,-40.50,-36.5,-32.5,-31.5,-29.5,
21  -27.5,-25.5,-24.5,-23.5,-22.5,-21.5,-20.5,-19.5,
22  -18.5,-17.5,-16.5,-15.5,-14.5,-13.5,-12.5,-11.5,
23  -10.5,-9.5,-8.5,-7.5,-6.5,-5.5,-4.5,-3.5,
24  -2.5,-1.5,-0.5,0.5,1.5,2.5,3.5,4.5,5.5,6.5,
25  7.5,8.5,9.5,10.5,11.5,12.5,13.5,14.5,15.5,16.5,
26  17.5,18.5,19.5,20.5,21.5,22.5,23.5,24.5,26.5,28.5,
27  30.5,31.5,35.5,39.5,43.5,47.5])
28 
29  self.h_1 = ROOT.TH2F("GainTTsMap" ,title, self.nxbins,self.xbins,64,0.,64)
30 
31  self.h_1.GetXaxis().SetTitle(XaxisTitle)
32  self.h_1.GetYaxis().SetTitle(YaxisTitle)
33 

Member Function Documentation

◆ Draw()

def PlotCalibrationGains.L1CaloMap.Draw (   self)

Definition at line 34 of file PlotCalibrationGains.py.

34  def Draw(self):
35  self.h_1.SetStats(0)
36  self.h_1.Draw("colz")
37  ROOT.gPad.RedrawAxis()
38 

◆ Fill()

def PlotCalibrationGains.L1CaloMap.Fill (   self,
  eta,
  phi,
  gain = 1 
)

Definition at line 39 of file PlotCalibrationGains.py.

39  def Fill(self,eta,phi,gain=1):
40 
41  if eta >= 32 or eta < -32:
42  self.h_1.Fill(eta,phi+3.5,gain)
43  self.h_1.Fill(eta,phi+2.5,gain)
44  self.h_1.Fill(eta,phi+1.5,gain)
45  self.h_1.Fill(eta,phi+0.5,gain)
46  elif eta >= 25 or eta < -25:
47  self.h_1.Fill(eta,phi+1.5,gain)
48  self.h_1.Fill(eta,phi+0.5,gain)
49  else:
50  self.h_1.Fill(eta,phi+0.5,gain)
51 
52 

◆ SetMaximum()

def PlotCalibrationGains.L1CaloMap.SetMaximum (   self,
  maximum 
)

Definition at line 56 of file PlotCalibrationGains.py.

56  def SetMaximum(self,maximum):
57  self.h_1.SetMaximum(maximum)
58 

◆ SetMinimum()

def PlotCalibrationGains.L1CaloMap.SetMinimum (   self,
  minimum 
)

Definition at line 53 of file PlotCalibrationGains.py.

53  def SetMinimum(self,minimum):
54  self.h_1.SetMinimum(minimum)
55 

Member Data Documentation

◆ h_1

PlotCalibrationGains.L1CaloMap.h_1

Definition at line 29 of file PlotCalibrationGains.py.

◆ nxbins

PlotCalibrationGains.L1CaloMap.nxbins

Definition at line 19 of file PlotCalibrationGains.py.

◆ xbins

PlotCalibrationGains.L1CaloMap.xbins

Definition at line 20 of file PlotCalibrationGains.py.


The documentation for this class was generated from the following file:
array
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18