Definition at line 565 of file PlotCalibrationGains.py.
◆ __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=""):
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"]
573 self.his_partitions = []
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))
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)
◆ Fill()
def PlotCalibrationGains.HadPartitionPlots.Fill |
( |
|
self, |
|
|
|
eta_bin, |
|
|
|
gain |
|
) |
| |
Definition at line 599 of file PlotCalibrationGains.py.
599 def Fill(self,eta_bin,gain):
601 partition=self.get_partition_number(eta_bin)
604 self.his_partitions[0].Fill(gain)
605 self.his_partitions[partition].Fill(gain)
607 print (
"Warning in HadPartitionPlots, nonexisting partition!" )
◆ 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):
585 if ( -9 <= eta_bin
and eta_bin <= 8):
587 elif ((eta_bin>8
and eta_bin<=14)
or (eta_bin>=-15
and eta_bin<-9)):
590 elif ((eta_bin>14
and eta_bin<=24)
or (eta_bin>=-25
and eta_bin<-15)):
592 elif ((eta_bin>24
and eta_bin<=31)
or (eta_bin>=-32
and eta_bin<-25)):
594 elif ((eta_bin>31)
or (eta_bin<-32)):
◆ ext
PlotCalibrationGains.HadPartitionPlots.ext |
◆ his_partitions
PlotCalibrationGains.HadPartitionPlots.his_partitions |
◆ name
PlotCalibrationGains.HadPartitionPlots.name |
◆ nPartitions
PlotCalibrationGains.HadPartitionPlots.nPartitions |
The documentation for this class was generated from the following file: