BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/test/test.cxx
Go to the documentation of this file.
1
#include <iostream>
2
#include <dlfcn.h>
3
#include "MdcTrkRecon/MdcSegPatterns.h"
4
5
int
main
() {
6
using
std::cout;
7
using
std::cerr;
8
9
cout <<
"C++ dlopen demo\n\n"
;
10
11
// open the library
12
cout <<
"Opening MdcTrkRecon.so...\n"
;
13
void
* handle = dlopen(
"../rh73_gcc32/libMdcTrkRecon.so"
, RTLD_LAZY);
14
15
if
(!handle) {
16
cerr <<
"Cannot open library: "
<< dlerror() <<
'\n'
;
17
return
1;
18
}
19
20
MdcSegPatterns
pat(
true
);
21
for
(
int
j=0;j<20;j++)std::cout<<pat.
patt3
[j]<<
" "
<<j<<std::endl;
22
for
(
int
i=0;i<256;i++){
23
std::cout<<pat.
npatt4
[i]<<
" "
<<pat.
npatt3
[i]<<
" "
<<i<<std::endl;
24
}
25
/* // load the symbol
26
cout << "Loading symbol hello...\n";
27
typedef void (*hello_t)();
28
hello_t hello = (hello_t) dlsym(handle, "hello");
29
if (!hello) {
30
cerr << "Cannot load symbol 'hello': " << dlerror() <<
31
'\n';
32
dlclose(handle);
33
return 1;
34
}
35
36
// use it to do the calculation
37
cout << "Calling hello...\n";
38
hello();
39
*/
40
// close the library
41
cout <<
"Closing library...\n"
;
42
dlclose(handle);
43
}
44
main
int main()
Definition:
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/test/test.cxx:5
MdcSegPatterns
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcSegPatterns.h:36
MdcSegPatterns::patt3
unsigned patt3[20]
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcSegPatterns.h:39
MdcSegPatterns::npatt4
int npatt4[256]
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcSegPatterns.h:40
MdcSegPatterns::npatt3
int npatt3[256]
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcSegPatterns.h:41
source
Reconstruction
MdcPatRec
MdcTrkRecon
MdcTrkRecon-00-03-48
test
test.cxx
Generated by
1.9.6