/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
Ge68PositionStats::PositionStatsAlg Class Reference
Inheritance diagram for Ge68PositionStats::PositionStatsAlg:
Inheritance graph
[legend]
Collaboration diagram for Ge68PositionStats::PositionStatsAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 cableSvc

Detailed Description

Definition at line 39 of file Ge68PositionStats.py.


Constructor & Destructor Documentation

def Ge68PositionStats::PositionStatsAlg::__init__ (   self,
  name 
)

Definition at line 41 of file Ge68PositionStats.py.

00042                            :
00043         DybPythonAlg.__init__(self,name)
00044         return


Member Function Documentation

def Ge68PositionStats::PositionStatsAlg::initialize (   self)

Definition at line 45 of file Ge68PositionStats.py.

00046                         :
00047         status = DybPythonAlg.initialize(self)
00048         if status.isFailure(): return status
00049         self.info("initializing")
00050 
00051         self.cableSvc = self.svc('ICableSvc','CableSvc')
00052         if self.cableSvc == None:
00053             self.error("Failed to get CableSvc")
00054             return FAILURE
00055 
00056         hist = TH2F("reconZvsX",
00057                     "Reconstructed Z position vs. X position",
00058                     200,x1,x2,
00059                     200,z1,z2)
00060         hist.GetXaxis().SetTitle("X position")
00061         hist.GetYaxis().SetTitle("Z position")
00062         self.stats["/file0/position/reconZvsX"] = hist
00063 
00064         hist = TH2F("reconZvsY",
00065                     "Reconstructed Z position vs. Y position",
00066                     200,y1,y2,
00067                     200,z1,z2)
00068         hist.GetXaxis().SetTitle("Y position")
00069         hist.GetYaxis().SetTitle("Z position")
00070         self.stats["/file0/position/reconZvsY"] = hist
00071 
00072         hist = TH2F("reconYvsX",
00073                     "Reconstructed Y position vs. X position",
00074                     200,x1,x2,
00075                     200,y1,y2)
00076         hist.GetXaxis().SetTitle("X position")
00077         hist.GetYaxis().SetTitle("Y position")
00078         self.stats["/file0/position/reconYvsX"] = hist
00079 
00080 
00081         hist = TH2F("reconZvsR",
00082                     "Reconstructed Z position vs. R position",
00083                     200,0.0,r2,
00084                     200,z1,z2)
00085         hist.GetXaxis().SetTitle("R position")
00086         hist.GetYaxis().SetTitle("Z position")
00087         self.stats["/file0/position/reconZvsR"] = hist
00088 
00089         return SUCCESS

def Ge68PositionStats::PositionStatsAlg::execute (   self)

Definition at line 90 of file Ge68PositionStats.py.

00091                      :
00092         self.info("executing")
00093         
00094         evt = self.evtSvc()
00095 
00096         # Calibrated Readout Data
00097         recHdr = evt["/Event/Rec/RecHeader"]
00098         if recHdr == None:
00099             self.error("Failed to get RecHeader")
00100             return FAILURE
00101         recResults = recHdr.recResults()
00102         recTrigger = recResults["AdSimple"]
00103         if recTrigger.positionStatus() == ReconStatus.kGood:
00104             reconPosition = recTrigger.position()
00105             recPositionR=sqrt(reconPosition.y()**2+reconPosition.x()**2)
00106             recPositionPhi=atan2(reconPosition.y(),reconPosition.x())
00107             #PositionDiff=sqrt((reconPosition.y()-yGenPosition)**2+(reconPosition.x()-xGenPosition)**2+(reconPosition.z()-zGenPosition)**2)
00108             self.stats["/file0/position/reconZvsX"].Fill(
00109                                                        reconPosition.x(),
00110                                                        reconPosition.z() )
00111             self.stats["/file0/position/reconZvsY"].Fill(
00112                                                        reconPosition.y(),
00113                                                        reconPosition.z() )
00114             self.stats["/file0/position/reconYvsX"].Fill(
00115                                                        reconPosition.x(),
00116                                                        reconPosition.y() )
00117             self.stats["/file0/position/reconZvsR"].Fill(
00118                                                        recPositionR,
00119                                                        reconPosition.z() )
00120             
00121         return SUCCESS
        
def Ge68PositionStats::PositionStatsAlg::finalize (   self)

Definition at line 122 of file Ge68PositionStats.py.

00123                       :
00124         self.info("finalizing")
00125         status = DybPythonAlg.finalize(self)
00126         return status
00127 


Member Data Documentation

Definition at line 45 of file Ge68PositionStats.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:54:38 for Calibration by doxygen 1.7.4