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

List of all members.

Public Member Functions

def initTagList
def check
def SaveRecData

Detailed Description

Add AD Reconstruction Info to UserData

Definition at line 11 of file ADRecData.py.


Member Function Documentation

def TaggingExample::ADRecData::ADRecData::initTagList (   self)

Definition at line 15 of file ADRecData.py.

00015                          :   
00016         self.addTag('Dummy', ''
00017             ).addData('AdSimple', '/Event/UserData/AD/ADRecData/AdSimple'
00018             ).addInt('t_sec', 't_nsec', 'triggerType', 'detID'
00019             ).addFloat('energy', 'x', 'y', 'z')
00020 
def TaggingExample::ADRecData::ADRecData::check (   self,
  evt 
)

Definition at line 22 of file ADRecData.py.

00023                         :
00024         ADTag = evt['/Event/UserTag/Detector/AD']
00025         if not ADTag:
00026             return False
00027         
00028         recHdr = evt['/Event/Rec/AdSimple']
00029         if not recHdr:
00030             self.warning('cannot find recHdr')
00031             return
00032         self.SaveRecData(recHdr)            
00033 
00034         self.tagIt('Dummy')

def TaggingExample::ADRecData::ADRecData::SaveRecData (   self,
  recHdr 
)
Save Recon Info to UserData

Definition at line 36 of file ADRecData.py.

00037                                  :
00038         '''Save Recon Info to UserData'''
00039 
00040         result = recHdr.recTrigger()
00041         self.getTag('Dummy').getData('AdSimple'
00042             ).set("energy", result.energy()/units.MeV
00043             ).set("x", result.position().x()/units.mm
00044             ).set("y", result.position().y()/units.mm
00045             ).set("z", result.position().z()/units.mm
00046             ).set("t_sec", recHdr.timeStamp().GetSec()
00047             ).set("t_nsec", recHdr.timeStamp().GetNanoSec()
00048             ).set("triggerType", result.triggerType()
00049             ).set("detID", result.detector().detectorId())
               

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:29 for TaggingExample by doxygen 1.7.4