/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
DrawGe68EnergySub::DrawEnergyFigsAlg Class Reference
Inheritance diagram for DrawGe68EnergySub::DrawEnergyFigsAlg:
Inheritance graph
[legend]
Collaboration diagram for DrawGe68EnergySub::DrawEnergyFigsAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Detailed Description

Definition at line 24 of file DrawGe68EnergySub.py.


Constructor & Destructor Documentation

def DrawGe68EnergySub::DrawEnergyFigsAlg::__init__ (   self,
  name 
)

Definition at line 26 of file DrawGe68EnergySub.py.

00027                            :
00028         DybPythonAlg.__init__(self,name)
00029         return


Member Function Documentation

def DrawGe68EnergySub::DrawEnergyFigsAlg::initialize (   self)

Definition at line 30 of file DrawGe68EnergySub.py.

00031                         :
00032         status = DybPythonAlg.initialize(self)
00033         if status.isFailure(): return status
00034         self.info("initializing")
00035 
00036         return SUCCESS

def DrawGe68EnergySub::DrawEnergyFigsAlg::execute (   self)

Definition at line 37 of file DrawGe68EnergySub.py.

00038                      :
00039         self.info("executing")
00040         
00041         return SUCCESS
        
def DrawGe68EnergySub::DrawEnergyFigsAlg::finalize (   self)

Definition at line 42 of file DrawGe68EnergySub.py.

00043                       :
00044         self.info("finalizing")
00045 
00046         canvas = TCanvas()
00047 
00048 
00049         hist=self.stats["/file0/energy/reconEnergy"]
00050         histnosrc=self.stats["/file1/energy/reconEnergy"]
00051 
00052         hist.Sumw2()
00053         histnosrc.Sumw2()
00054 
00055         histfinal=hist.Clone()
00056         histfinal.SetName("nobgEnergyFit")
00057         histfinal.Add(histnosrc,-0.057)
00058 
00059 
00060         peak2 = TF1("m1","gaus",0.8,1.5)
00061         total = TF1("mtotal", "gaus(0) + gaus(3)", 0, 1.5)
00062         histfinal.Fit(peak2,"R")
00063         canvas.SaveAs("nobgEnergyFit1.png")
00064 
00065         histclone=histfinal.Clone()
00066         for iBin in range(0,250):
00067           prevContent = histfinal.GetBinContent(iBin)
00068           prevContent -= peak2.Eval(histfinal.GetBinCenter(iBin))
00069           histclone.SetBinContent(iBin,prevContent)
00070         histfinal = histclone
00071         histfinal.Draw()
00072         histfinal.Fit("gaus","","",0.0,0.85)
00073 
00074         canvas.SaveAs("nobgEnergyFit2.png")
00075 
00076 
00077         
00078         status = DybPythonAlg.finalize(self)
00079         return status
00080 


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:54:38 for Calibration by doxygen 1.7.4