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

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 516 of file PlotCalibrationGains.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 518 of file PlotCalibrationGains.py.

518  def __init__(self,name,nbins=40,minimum=0.,maximum=2.,XaxisTitle="",YaxisTitle=""):
519 
520  self.nPartitions=5
521  self.ext = ["all","00_15","15_25","25_32","32_50"]
522  self.name = ["all","EMB","EMEC outer","EMEC Inner","FCAL 1"]
523 
524 
525  self.his_partitions = []
526 
527  for i_em_partition in range(0,self.nPartitions):
528  self.his_partitions.append(ROOT.TH1F("GainTTEm"+self.ext[i_em_partition],name+" for "+self.name[i_em_partition],nbins,minimum,maximum))
529 
530  for i_em_partition in range(0,self.nPartitions):
531  self.his_partitions[i_em_partition].GetXaxis().SetTitle(XaxisTitle)
532  self.his_partitions[i_em_partition].GetYaxis().SetTitle(YaxisTitle)
533 
534 
535 

Member Function Documentation

◆ Fill()

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

Definition at line 554 of file PlotCalibrationGains.py.

554  def Fill(self,eta_bin,gain):
555 
556  partition=self.get_partition_number(eta_bin)
557 
558  if partition > 0:
559  self.his_partitions[0].Fill(gain)
560  self.his_partitions[partition].Fill(gain)
561  else:
562  print ("Warning in EmPartitionPlots, nonexisting partition!" )
563 
564 

◆ get_partition_number()

def PlotCalibrationGains.EmPartitionPlots.get_partition_number (   self,
  eta_bin 
)

Definition at line 536 of file PlotCalibrationGains.py.

536  def get_partition_number(self,eta_bin):
537 
538  indem = -1
539  if ( -9 <= eta_bin and eta_bin <= 8):
540  indem = 1
541  elif ((eta_bin>8 and eta_bin<=14) or (eta_bin>=-15 and eta_bin<-9)):
542 # elif ((eta_bin>8 and eta_bin<14) or (eta_bin>-15 and eta_bin<-9)): # cut out overlap
543  indem = 1
544  elif ((eta_bin>14 and eta_bin<=24) or (eta_bin>=-25 and eta_bin<-15)):
545  indem = 2
546  elif ((eta_bin>24 and eta_bin<=31) or (eta_bin>=-32 and eta_bin<-25)):
547  indem = 3
548  elif ((eta_bin>31) or (eta_bin<-32)):
549  indem = 4
550 
551  return indem
552 
553 

Member Data Documentation

◆ ext

PlotCalibrationGains.EmPartitionPlots.ext

Definition at line 521 of file PlotCalibrationGains.py.

◆ his_partitions

PlotCalibrationGains.EmPartitionPlots.his_partitions

Definition at line 525 of file PlotCalibrationGains.py.

◆ name

PlotCalibrationGains.EmPartitionPlots.name

Definition at line 522 of file PlotCalibrationGains.py.

◆ nPartitions

PlotCalibrationGains.EmPartitionPlots.nPartitions

Definition at line 520 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