/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 | Public Attributes
RollingGainAuto::CalibTree::CalibTree Class Reference

List of all members.

Public Member Functions

def __init__
def reset
def fill
def close

Public Attributes

 Frame
 Time
 Site
 Detector
 Board
 Channel
 Ring
 Column
 Wall
 Spot
 Inward
 Spe
 SpeErr
 SpeSigma
 Ped
 PedErr
 Nhit
 Chi2ndf
 FitStat
 Status
 DarkRate
 DarkRateErr
 ElecRate
 ElecRateErr
 RefSpe
 RefSpeSigma
 f
 t

Detailed Description

Definition at line 9 of file CalibTree.py.


Constructor & Destructor Documentation

def RollingGainAuto::CalibTree::CalibTree::__init__ (   self,
  filename 
)

Definition at line 10 of file CalibTree.py.

00011                                :
00012         # Create these variables
00013         self.Frame = array('i',[0])
00014         
00015         self.Time = array('d',[0])
00016         self.Site = array('i',[0])
00017         self.Detector = array('i',[0])
00018         self.Board = array('i',[0])
00019         self.Channel = array('i',[0])
00020         self.Ring = array('i',[0])
00021         self.Column = array('i',[0])
00022         self.Wall = array('i',[0])
00023         self.Spot = array('i',[0])
00024         self.Inward = array('i',[0])
00025         self.Spe = array('d',[0])
00026         self.SpeErr = array('d',[0])
00027         self.SpeSigma = array('d',[0])
00028         self.Ped = array('d',[0])
00029         self.PedErr = array('d',[0])
00030         self.Nhit = array('i',[0])
00031         self.Chi2ndf = array('d',[0])
00032         self.FitStat = array('i',[0])
00033         self.Status = array('i',[0])
00034         self.DarkRate = array('d',[0])
00035         self.DarkRateErr = array('d',[0])
00036         self.ElecRate = array('d',[0])
00037         self.ElecRateErr = array('d',[0])
00038 
00039         # For comparison purpose
00040         self.RefSpe = array('d',[0])
00041         self.RefSpeSigma = array('d',[0])
00042                         
00043         # Reset to invalid values
00044         self.reset()
00045         # Create a TTree to hold all useful variables
00046         self.f = TFile( filename, 'RECREATE' )
00047         self.t = TTree("t","Calibration results")
00048 
00049         self.t.Branch( 'Frame',    self.Frame,   'Frame/I'   )
00050         
00051         self.t.Branch( 'Time',     self.Time,    'Time/D'    )
00052                                                                                                          
00053         self.t.Branch( 'Site',     self.Site,    'Site/I'    )
00054         self.t.Branch( 'Detector', self.Detector,'Detector/I')
00055                                                                                                          
00056         self.t.Branch( 'Board',    self.Board,   'Board/I'   )
00057         self.t.Branch( 'Channel',  self.Channel, 'Channel/I' )
00058                                                                                  
00059         self.t.Branch( 'Ring',     self.Ring,    'Ring/I'    )
00060         self.t.Branch( 'Column',   self.Column,  'Column/I'  )
00061         self.t.Branch( 'Wall',     self.Wall,    'Wall/I'    )
00062         self.t.Branch( 'Spot',     self.Spot,    'Spot/I'    )
00063         self.t.Branch( 'Inward',   self.Inward,  'Inward/I'  )
00064                                                                                                          
00065         self.t.Branch( 'Ped',      self.Ped,     'Ped/D'     )
00066         self.t.Branch( 'PedErr',   self.PedErr,  'PedErr/D'  )
00067                                                                                  
00068         self.t.Branch( 'Spe',      self.Spe,     'Spe/D'     )
00069         self.t.Branch( 'SpeErr',   self.SpeErr,  'SpeErr/D'  )
00070         self.t.Branch( 'SpeSigma', self.SpeSigma,'SpeSigma/D')
00071 
00072         self.t.Branch( 'Nhit',     self.Nhit,    'Nhit/I'    )
00073         self.t.Branch( 'Chi2ndf',  self.Chi2ndf, 'Chi2ndf/D' )
00074         self.t.Branch( 'FitStat',  self.FitStat, 'FitStat/I' )
00075         self.t.Branch( 'Status',  self.Status, 'Status/I' )
00076 
00077         self.t.Branch( 'DarkRate',      self.DarkRate,     'DarkRate/D'     )
00078         self.t.Branch( 'DarkRateErr',   self.DarkRateErr,  'DarkRateErr/D'  )
00079         self.t.Branch( 'ElecRate',      self.ElecRate,     'ElecRate/D'     )
00080         self.t.Branch( 'ElecRateErr',   self.ElecRateErr,  'ElecRateErr/D'  )
00081 
00082         # Reference
00083         self.t.Branch( 'RefSpe',      self.RefSpe,     'RefSpe/D'     )
00084         self.t.Branch( 'RefSpeSigma', self.RefSpeSigma,'RefSpeSigma/D')
00085                                 
    

Member Function Documentation

def RollingGainAuto::CalibTree::CalibTree::reset (   self)

Definition at line 86 of file CalibTree.py.

00087                    :
00088         invalid = -20                  # This is the invalid value
00089         self.Frame[0]= invalid
00090         self.Time[0] = invalid
00091         self.Site[0] = invalid
00092         self.Detector[0] = invalid                
00093         self.Board[0] = invalid
00094         self.Channel[0] = invalid
00095         self.Ring[0] = invalid
00096         self.Column[0] = invalid
00097         self.Wall[0] = invalid
00098         self.Spot[0] = invalid
00099         self.Inward[0] = invalid
00100         self.Spe[0] = invalid
00101         self.SpeErr[0] = invalid
00102         self.SpeSigma[0] = invalid
00103         self.Ped[0] = invalid
00104         self.PedErr[0] = invalid
00105         self.Nhit[0] = invalid
00106         self.Chi2ndf[0] = invalid
00107         self.FitStat[0] = invalid
00108         self.Status[0] = invalid
00109         self.DarkRate[0] = invalid
00110         self.DarkRateErr[0] = invalid
00111         self.ElecRate[0] = invalid
00112         self.ElecRateErr[0] = invalid
00113 
00114         # Reference
00115         self.RefSpe[0] = invalid
00116         self.RefSpeSigma[0] = invalid

def RollingGainAuto::CalibTree::CalibTree::fill (   self)

Definition at line 117 of file CalibTree.py.

00118                   :
00119         self.t.Fill()

def RollingGainAuto::CalibTree::CalibTree::close (   self)

Definition at line 120 of file CalibTree.py.

00121                    :
00122         self.f = self.t.GetCurrentFile()
00123         self.f.Write()
00124         self.f.Close()


Member Data Documentation

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.

Definition at line 10 of file CalibTree.py.


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:59:50 for RollingGainAuto by doxygen 1.7.4