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

List of all members.

Public Member Functions

def __init__
def initTagList
def check

Public Attributes

 location
 ADTagNames
 inputHeaders

Detailed Description

Definition at line 17 of file mlRecADETWindowTag.py.


Constructor & Destructor Documentation

def Tagger::ETWindowTagger::mlRecADETWindowTag::mlRecADETWindowTag::__init__ (   self,
  name 
)

Definition at line 20 of file mlRecADETWindowTag.py.

00021                             :
00022         UserTaggingAlg.__init__(self, name)
00023         self.location = "/Event/Rec/AdMLRec"
            

Member Function Documentation

def Tagger::ETWindowTagger::mlRecADETWindowTag::mlRecADETWindowTag::initTagList (   self)

Definition at line 25 of file mlRecADETWindowTag.py.

00026                          :
00027         self.ADTagNames = { 
00028             gbl.DetectorId.kAD1 : 'AD1',
00029             gbl.DetectorId.kAD2 : 'AD2',
00030             gbl.DetectorId.kAD3 : 'AD3',
00031             gbl.DetectorId.kAD4 : 'AD4',
00032         }
00033         self.inputHeaders = {}
00034         
00035         # initialize AD ETWindow Tags
00036         # initialize inputHeaders to hold the recHeaders
00037         for tagName in self.ADTagNames.values():
00038             self.addTag(tagName , '/Event/Tag/mlRecETWindow/'+tagName+'ETWindowTag'
00039                 ).setBaseHeader(self.location)
00040             self.inputHeaders[tagName] = []
        
def Tagger::ETWindowTagger::mlRecADETWindowTag::mlRecADETWindowTag::check (   self,
  evt 
)

Definition at line 42 of file mlRecADETWindowTag.py.

00043                         :
00044         calibHdr = evt['/Event/Calib/CalibReadoutHeader']
00045         if not calibHdr:
00046             self.info('cannot find header at /Event/Calib/CalibReadoutHeader')
00047 
00048             tagHdr = {}
00049             for tagName in self.ADTagNames.values():
00050                 tagHdr[tagName] = evt['/Event/Tag/ETWindow/'+tagName+'ETWindowTag']
00051                 if tagHdr[tagName]:
00052                     myTag = self.getTag(tagName)
00053                     myTag.setInputHeaders(self.inputHeaders[tagName])
00054                     myTag.tagIt()
00055                     self.inputHeaders[tagName] = []
00056             return SUCCESS
00057                     
00058         mlRecHdr = evt['/Event/Rec/AdMLRec']
00059         if not mlRecHdr:
00060             self.warning('cannot find header at ' + self.location)
00061             return FAILURE
00062         detectorId = mlRecHdr.context().GetDetId()
00063         tagName = self.ADTagNames[detectorId]
00064         self.inputHeaders[tagName].append(mlRecHdr)
00065 
        

Member Data Documentation

Definition at line 20 of file mlRecADETWindowTag.py.

Definition at line 25 of file mlRecADETWindowTag.py.

Definition at line 25 of file mlRecADETWindowTag.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:18 for Tagger by doxygen 1.7.4