BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
checkClID.cxx File Reference
#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)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

The main application

Definition at line 15 of file checkClID.cxx.

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:76
void setEventType(const unsigned int i)
Definition: DstHltInf.h:30
Definition: HltInf.h:16
virtual void print() const
Definition: HltInf.cxx:118
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:35
virtual void push_emc(uint32_t data)
Definition: HltInf.h:33
Definition: HltRaw.h:15
virtual const CLID & clID() const
Definition: HltRaw.h:28