00001 #include "cafe/StatGWeight.hpp" 00002 #include "cafe/Stat.hpp" 00003 00004 using namespace std ; 00005 00006 namespace cafe { 00007 00008 StatGWeight::StatGWeight(const char *name) : cafe::Processor(name) { } 00009 00010 bool StatGWeight::processEvent(cafe::Event &event) 00011 { 00012 //get pointer to statistics collector 00013 StatPointer stat ; 00014 event.get("StatPointer", stat) ; 00015 stat.calculateGlobalWeight() ; 00016 return true ; 00017 }; 00018 } 00019 ClassImp(cafe::StatGWeight) ; 00020
1.3.4