Definition at line 516 of file PlotCalibrationGains.py.
◆ __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=""):
521 self.ext = [
"all",
"00_15",
"15_25",
"25_32",
"32_50"]
522 self.name = [
"all",
"EMB",
"EMEC outer",
"EMEC Inner",
"FCAL 1"]
525 self.his_partitions = []
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))
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)
◆ Fill()
def PlotCalibrationGains.EmPartitionPlots.Fill |
( |
|
self, |
|
|
|
eta_bin, |
|
|
|
gain |
|
) |
| |
Definition at line 554 of file PlotCalibrationGains.py.
554 def Fill(self,eta_bin,gain):
556 partition=self.get_partition_number(eta_bin)
559 self.his_partitions[0].Fill(gain)
560 self.his_partitions[partition].Fill(gain)
562 print (
"Warning in EmPartitionPlots, nonexisting partition!" )
◆ 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):
539 if ( -9 <= eta_bin
and eta_bin <= 8):
541 elif ((eta_bin>8
and eta_bin<=14)
or (eta_bin>=-15
and eta_bin<-9)):
544 elif ((eta_bin>14
and eta_bin<=24)
or (eta_bin>=-25
and eta_bin<-15)):
546 elif ((eta_bin>24
and eta_bin<=31)
or (eta_bin>=-32
and eta_bin<-25)):
548 elif ((eta_bin>31)
or (eta_bin<-32)):
◆ ext
PlotCalibrationGains.EmPartitionPlots.ext |
◆ his_partitions
PlotCalibrationGains.EmPartitionPlots.his_partitions |
◆ name
PlotCalibrationGains.EmPartitionPlots.name |
◆ nPartitions
PlotCalibrationGains.EmPartitionPlots.nPartitions |
The documentation for this class was generated from the following file: