mEmcGeaEventPAM.C

Go to the documentation of this file.
00001 /* Automatically generated.  Do not edit. */
00002 #include "mEmcGeaEventModule.h"
00003 #include "mEmcGeaEvent.h"
00004 #include "PHIODataNode.h"
00005 
00006 #include "headerWrapper.h"
00007 
00008 typedef PHIODataNode<headerWrapper> headerNode_t;
00009 
00010 #include "dEmcEventWrapper.h"
00011 
00012 typedef PHIODataNode<dEmcEventWrapper> dEmcEventNode_t;
00013 
00014 PHBoolean
00015 mEmcGeaEventModule::callPAM(PHPointerList<PHNode> &nl) {
00016   long result;
00017 
00018   TABLE_HEAD_ST t1;
00019   HEADER_ST *d1;
00020   TABLE_HEAD_ST t2;
00021   DEMCEVENT_ST *d2;
00022 
00023   headerNode_t* n1 = static_cast<headerNode_t*>(nl[0]);
00024   dEmcEventNode_t* n2 = static_cast<dEmcEventNode_t*>(nl[1]);
00025 
00026   t1 = n1->getData()->TableHeader();
00027   d1 = n1->getData()->TableData();
00028   t2 = n2->getData()->TableHeader();
00029   d2 = n2->getData()->TableData();
00030 
00031   result = memcgeaevent_(
00032     &t1, d1,
00033     &t2, d2                              );
00034 
00035   n1->getData()->SetRowCount(t1.nok);
00036   n2->getData()->SetRowCount(t2.nok);
00037 
00038   if (result == 1) {
00039     return True;
00040   } else {
00041     return False;
00042   }
00043 }