Definition at line 517 of file PlotCalibrationGains.py.
◆ __init__()
def PlotCalibrationGains.EmPartitionPlots.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
nbins = 40 , |
|
|
|
minimum = 0. , |
|
|
|
maximum = 2. , |
|
|
|
XaxisTitle = "" , |
|
|
|
YaxisTitle = "" |
|
) |
| |
Definition at line 519 of file PlotCalibrationGains.py.
519 def __init__(self,name,nbins=40,minimum=0.,maximum=2.,XaxisTitle="",YaxisTitle=""):
522 self.ext = [
"all",
"00_15",
"15_25",
"25_32",
"32_50"]
523 self.name = [
"all",
"EMB",
"EMEC outer",
"EMEC Inner",
"FCAL 1"]
526 EmPartitionPlots.Counter += 1
527 self.his_partitions = []
529 for i_em_partition
in range(0,self.nPartitions):
530 hname = (
"GainTTEm_%d"%EmPartitionPlots.Counter) + self.ext[i_em_partition]
531 htitle = name+
" for "+self.name[i_em_partition]
532 self.his_partitions.
append(ROOT.TH1F(hname,htitle,nbins,minimum,maximum))
◆ Fill()
def PlotCalibrationGains.EmPartitionPlots.Fill |
( |
|
self, |
|
|
|
eta_bin, |
|
|
|
gain |
|
) |
| |
Definition at line 553 of file PlotCalibrationGains.py.
553 def Fill(self,eta_bin,gain):
554 partition=self.get_partition_number(eta_bin)
557 self.his_partitions[0].Fill(gain)
558 self.his_partitions[partition].Fill(gain)
560 print (
"Warning in EmPartitionPlots, nonexisting partition!" )
◆ get_partition_number()
def PlotCalibrationGains.EmPartitionPlots.get_partition_number |
( |
|
self, |
|
|
|
eta_bin |
|
) |
| |
Definition at line 537 of file PlotCalibrationGains.py.
537 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)):
◆ Counter
PlotCalibrationGains.EmPartitionPlots.Counter |
|
static |
◆ 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: