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

List of all members.

Public Member Functions

def __init__
def initTagList
def check
def SaveAmCData

Public Attributes

 runStartTime
 isSimulation

Detailed Description

Definition at line 24 of file AmCData.py.


Constructor & Destructor Documentation

def CalibrationTagging::AmCData::AmCData::__init__ (   self,
  name 
)

Definition at line 27 of file AmCData.py.

00028                             :
00029         UserTaggingAlg.__init__(self, name)
00030         
00031         self.runStartTime = None
00032         self.isSimulation = False


Member Function Documentation

def CalibrationTagging::AmCData::AmCData::initTagList (   self)

Definition at line 34 of file AmCData.py.

00034                          :        
00035         myTag = self.addTag('/Event/Tag/Calib/AmC', '').setBaseHeader('/Events/Rec/AdSimple')
00036         myData = myTag.addData('/Event/Tag/Calib/AmC' , '/Event/Data/Calib/AmC')
00037         myData.addFloat('ePrompt' , 'xPrompt' , 'yPrompt' , 'zPrompt' ,
00038                         'eDelayed', 'xDelayed', 'yDelayed', 'zDelayed', 'deltaT_us')
00039         
def CalibrationTagging::AmCData::AmCData::check (   self,
  evt 
)

Definition at line 41 of file AmCData.py.

00041                         :                
00042 
00043         tagHeader = evt['/Event/Tag/Calib/AmC']  # '/Event/Tag/Calib/AmC' == tagPath
00044         if not tagHeader:
00045           return
00046         
00047         myData = self.getTag('/Event/Tag/Calib/AmC').getData('/Event/Tag/Calib/AmC')
00048         self.SaveAmCData(myData, tagHeader)
00049         self.tagIt('/Event/Tag/Calib/AmC')
00050         return SUCCESS
00051     
def CalibrationTagging::AmCData::AmCData::SaveAmCData (   self,
  myData,
  tagHeader 
)
Keyword arguments:
    myData -- the Data object defined in UserTagging.Models
    tagHeader -- the AD coincidence UserTag object

Definition at line 53 of file AmCData.py.

00054                                             :
00055         '''
00056         Keyword arguments:
00057             myData -- the Data object defined in UserTagging.Models
00058             tagHeader -- the AD coincidence UserTag object
00059         '''
00060 
00061         savedRecHdrs = tagHeader.inputHeaders()
00062         promptRecHdr = savedRecHdrs[0]
00063         delayedRecHdr = savedRecHdrs[1]
00064 
00065         # Don't process SAB data
00066         #if(promptRecHdr.context().GetSite() == Site.kSAB):
00067         #    return
00068 
00069         if promptRecHdr == None:
00070           print 'promptRecHdr == None'
00071           return FAILURE
00072         if delayedRecHdr == None:
00073           print 'delayedRecHdr == None'
00074           return FAILURE
00075 
00076         promptRecResult = promptRecHdr.recTrigger()
00077         delayedRecResult = delayedRecHdr.recTrigger()
00078 
00079         # Position-related info
00080         pRecPosStat = promptRecResult.positionStatus()
00081         pRecX = promptRecResult.position().x()
00082         pRecY = promptRecResult.position().y()
00083         pRecZ = promptRecResult.position().z()
00084         myData.set('xPrompt',pRecX)
00085         myData.set('yPrompt',pRecY)
00086         myData.set('zPrompt',pRecZ)
00087         dRecPosStat = delayedRecResult.positionStatus()
00088         dRecX = delayedRecResult.position().x()
00089         dRecY = delayedRecResult.position().y()
00090         dRecZ = delayedRecResult.position().z()
00091         myData.set('xDelayed',dRecX)
00092         myData.set('yDelayed',dRecY)
00093         myData.set('zDelayed',dRecZ)
00094 
00095         # Energy-related info
00096         pRecEStat = promptRecResult.energyStatus()
00097         pRecE = promptRecResult.energy()
00098         pRecE *= 184./160.
00099         myData.set('ePrompt',pRecE)
00100         dRecEStat = delayedRecResult.energyStatus()
00101         dRecE = delayedRecResult.energy()
00102         dRecE *= 184./160.
00103         myData.set('eDelayed',dRecE)
00104     
00105         # Time-related info
00106         deltaT = gbl.TimeStamp( delayedRecResult.triggerTime() )
00107         deltaT.Subtract( promptRecResult.triggerTime() )
00108         myData.set('deltaT_us',deltaT.GetSeconds() * 1e6)
00109 
00110         # Calibstats
00111 #        nPERMS = calibStats.get('nPERMS').value()
00112 #        Co60Data.set('nPERMS_co60',nPERMS)
00113 #        nPESum = calibStats.get('nPESum').value()
00114 #        Co60Data.set('nPESum_co60',nPESum)
        

Member Data Documentation

Definition at line 27 of file AmCData.py.

Definition at line 27 of file AmCData.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 10:10:08 for CalibrationTagging by doxygen 1.7.4