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

Public Member Functions

def __init__ (self, name, nbins=40, minimum=0., maximum=2., XaxisTitle="", YaxisTitle="")
 
def get_partition_number (self, eta_bin)
 
def Fill (self, eta_bin, gain)
 

Public Attributes

 nPartitions
 
 ext
 
 name
 
 his_partitions
 

Detailed Description

Definition at line 565 of file PlotCalibrationGains.py.

Constructor & Destructor Documentation

◆ __init__()

def PlotCalibrationGains.HadPartitionPlots.__init__ (   self,
  name,
  nbins = 40,
  minimum = 0.,
  maximum = 2.,
  XaxisTitle = "",
  YaxisTitle = "" 
)

Definition at line 567 of file PlotCalibrationGains.py.

567  def __init__(self,name,nbins=40,minimum=0.,maximum=2.,XaxisTitle="",YaxisTitle=""):
568 
569  self.nPartitions=6
570  self.ext = ["all","00_09","09_15","15_25","25_32","32_50"]
571  self.name = ["all","Tile LB","Tile EB","HEC outer", "HEC inner","FCAL 2/3"]
572 
573  self.his_partitions = []
574 
575  for i_had_partition in range(0,self.nPartitions):
576  self.his_partitions.append(ROOT.TH1F("GainTTHad"+self.ext[i_had_partition],name+" for "+self.name[i_had_partition],nbins,minimum,maximum))
577 
578  for i_had_partition in range(0,self.nPartitions):
579  self.his_partitions[i_had_partition].GetXaxis().SetTitle(XaxisTitle)
580  self.his_partitions[i_had_partition].GetYaxis().SetTitle(YaxisTitle)
581 

Member Function Documentation

◆ Fill()

def PlotCalibrationGains.HadPartitionPlots.Fill (   self,
  eta_bin,
  gain 
)

Definition at line 599 of file PlotCalibrationGains.py.

599  def Fill(self,eta_bin,gain):
600 
601  partition=self.get_partition_number(eta_bin)
602 
603  if partition > 0:
604  self.his_partitions[0].Fill(gain)
605  self.his_partitions[partition].Fill(gain)
606  else:
607  print ("Warning in HadPartitionPlots, nonexisting partition!" )
608 
609 

◆ get_partition_number()

def PlotCalibrationGains.HadPartitionPlots.get_partition_number (   self,
  eta_bin 
)

Definition at line 582 of file PlotCalibrationGains.py.

582  def get_partition_number(self,eta_bin):
583 
584  indhad = -1
585  if ( -9 <= eta_bin and eta_bin <= 8):
586  indhad = 1
587  elif ((eta_bin>8 and eta_bin<=14) or (eta_bin>=-15 and eta_bin<-9)):
588 # elif ((eta_bin>8 and eta_bin<14) or (eta_bin>-15 and eta_bin<-9)): # cut out overlap
589  indhad = 2
590  elif ((eta_bin>14 and eta_bin<=24) or (eta_bin>=-25 and eta_bin<-15)):
591  indhad = 3
592  elif ((eta_bin>24 and eta_bin<=31) or (eta_bin>=-32 and eta_bin<-25)):
593  indhad = 4
594  elif ((eta_bin>31) or (eta_bin<-32)):
595  indhad = 5
596 
597  return indhad
598 

Member Data Documentation

◆ ext

PlotCalibrationGains.HadPartitionPlots.ext

Definition at line 570 of file PlotCalibrationGains.py.

◆ his_partitions

PlotCalibrationGains.HadPartitionPlots.his_partitions

Definition at line 573 of file PlotCalibrationGains.py.

◆ name

PlotCalibrationGains.HadPartitionPlots.name

Definition at line 571 of file PlotCalibrationGains.py.

◆ nPartitions

PlotCalibrationGains.HadPartitionPlots.nPartitions

Definition at line 569 of file PlotCalibrationGains.py.


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