#include "math.h"
#include "HltEvent/HltRaw.h"
#include "HltEvent/HltInf.h"
#include <iostream>
#include <fstream>
#include <vector>
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
The main application
Definition at line 15 of file checkClID.cxx.
References DstHltInf::clID(), HltInf::clID(), HltRaw::clID(), EventModel::Hlt::DstHltInf, EventModel::Hlt::HltInf, EventModel::Hlt::HltRawCol, genRecEmupikp::i, HltInf::print(), HltInf::push_con(), HltInf::push_emc(), HltInf::push_mdc(), DstHltInf::setEventType(), and x.
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 //hltInf->setEventType(16); 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 //hltInf->print(); 00053 //delete hltInf; 00054 dstHltInf = new HltInf(8,3,134543,30203,3.243); 00055 dstHltInf->print(); 00056 delete dstHltInf; 00057 00058 return 1; 00059 }