CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
checkClID.cxx
Go to the documentation of this file.
1#include "math.h"
2//#include "stdio.h"
3#include "HltEvent/HltRaw.h"
4#include "HltEvent/HltInf.h"
5
6#include <iostream>
7#include <fstream>
8#include <vector>
9
10using namespace std;
11/**
12 * The main application
13 */
14
15int main (int argc, char** argv)
16{
17 std::cout<< "npar=" << argc <<std::endl;
18 for(int i=0;i<argc;i++){
19 std::cout<< "p("<<i<<")="<< *argv << std::endl;
20 }
21 Identifier id;
22
23 HltRaw* hltRaw = new HltRaw(id);
24 std::cout << " HLT Raw CLID = " << hltRaw->clID() << std::endl;
25 delete hltRaw;
26
27 HltRawCol* hltRawCol = new HltRawCol();
28 std::cout << " HLT Raw collection CLID = " << hltRawCol->clID() << std::endl;
29 delete hltRawCol;
30
31 HltInf* hltInf = new HltInf();
32 std::cout << " HLT Inf CLID = " << hltInf->clID() << std::endl;
33 std::cout << *hltInf << std::endl;
34
35
36 DstHltInf* dstHltInf = new DstHltInf(8,3,134543,30203,3.243);
37 std::cout << " Dst HLT Inf CLID = " << dstHltInf->clID() << std::endl;
38 std::cout << *dstHltInf << std::endl;
39
40 //hltInf->setEventType(16);
41 float x=124.45;
42 hltInf->push_mdc((uint32_t)1324);
43 hltInf->push_mdc(x);
44 hltInf->push_emc((uint32_t)13);
45 hltInf->push_emc((uint32_t)413);
46 hltInf->push_con((uint32_t)1);
47 hltInf->print();
48 hltInf->setEventType(16);
49 hltInf->print();
50 delete hltInf;
51 hltInf= dynamic_cast<HltInf*>(dstHltInf);
52 //hltInf->print();
53 //delete hltInf;
54 dstHltInf = new HltInf(8,3,134543,30203,3.243);
55 dstHltInf->print();
56 delete dstHltInf;
57
58 return 1;
59}
Double_t x[10]
ObjectVector< HltRaw > HltRawCol
Definition HltRaw.h:35
virtual const CLID & clID() const
Definition DstHltInf.h:27
virtual void print() const
Definition DstHltInf.h:81
void setEventType(const unsigned int i)
Definition DstHltInf.h:30
virtual void print() const
Definition HltInf.cxx:127
virtual void push_mdc(uint32_t data)
Definition HltInf.h:31
virtual const CLID & clID() const
Definition HltInf.h:18
virtual void push_con(uint32_t data)
Definition HltInf.h:36
virtual void push_emc(uint32_t data)
Definition HltInf.h:34
virtual const CLID & clID() const
Definition HltRaw.h:28
int main()