00001 #include "math.h"
00002
00003 #include "HltEvent/HltRaw.h"
00004 #include "HltEvent/HltInf.h"
00005
00006 #include <iostream>
00007 #include <fstream>
00008 #include <vector>
00009
00010 using namespace std;
00015 int main (int argc, char** argv)
00016 {
00017 std::cout<< "npar=" << argc <<std::endl;
00018 for(int i=0;i<argc;i++){
00019 std::cout<< "p("<<i<<")="<< *argv << std::endl;
00020 }
00021 Identifier id;
00022
00023 HltRaw* hltRaw = new HltRaw(id);
00024 std::cout << " HLT Raw CLID = " << hltRaw->clID() << std::endl;
00025 delete hltRaw;
00026
00027 HltRawCol* hltRawCol = new HltRawCol();
00028 std::cout << " HLT Raw collection CLID = " << hltRawCol->clID() << std::endl;
00029 delete hltRawCol;
00030
00031 HltInf* hltInf = new HltInf();
00032 std::cout << " HLT Inf CLID = " << hltInf->clID() << std::endl;
00033 std::cout << *hltInf << std::endl;
00034
00035
00036 DstHltInf* dstHltInf = new DstHltInf(8,3,134543,30203,3.243);
00037 std::cout << " Dst HLT Inf CLID = " << dstHltInf->clID() << std::endl;
00038 std::cout << *dstHltInf << std::endl;
00039
00040
00041 float x=124.45;
00042 hltInf->push_mdc((uint32_t)1324);
00043 hltInf->push_mdc(x);
00044 hltInf->push_emc((uint32_t)13);
00045 hltInf->push_emc((uint32_t)413);
00046 hltInf->push_con((uint32_t)1);
00047 hltInf->print();
00048 hltInf->setEventType(16);
00049 hltInf->print();
00050 delete hltInf;
00051 hltInf= dynamic_cast<HltInf*>(dstHltInf);
00052
00053
00054 dstHltInf = new HltInf(8,3,134543,30203,3.243);
00055 dstHltInf->print();
00056 delete dstHltInf;
00057
00058 return 1;
00059 }