00001 #include "ezdst.h"
00002 #include <iostream>
00003 #include "emcClusterContainer.h"
00004 #include "emcTowerContainer.h"
00005 #include "emcObjectFillerManager.h"
00006
00007
00008 int process_event(DstContent* dst)
00009 {
00010 static bool first = true;
00011
00012 emcTowerContainer* tc = static_cast<emcTowerContainer*>
00013 (dst->getClass("emcTowerContainer"));
00014
00015 if (tc)
00016 {
00017 if ( first )
00018 {
00019 tc->identify();
00020 }
00021 tc->print(std::cout,1);
00022 }
00023
00024 emcClusterContainer* cc = static_cast<emcClusterContainer*>
00025 (dst->getClass("emcClusterContainer"));
00026
00027 if (cc)
00028 {
00029 if ( first )
00030 {
00031 cc->identify();
00032 }
00033 cc->print();
00034 }
00035
00036 first = false;
00037
00038 return 0;
00039 }