Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hd_ana.cc
Go to the documentation of this file.
1
// Author: David Lawrence June 25, 2004
2
//
3
//
4
// hd_ana.cc
5
//
6
7
#include "
DANA/DApplication.h
"
8
using namespace
std;
9
10
void
Usage
(JApplication &app);
11
12
13
//-----------
14
// main
15
//-----------
16
int
main
(
int
narg,
char
*argv[])
17
{
18
// Instantiate an event loop object
19
DApplication
app(narg, argv);
20
21
if
(narg<=1)
Usage
(app);
22
23
// Run though all events, calling our event processor's methods
24
app.Run(NULL, 1);
25
26
if
( app.GetExitCode() ) cerr <<
"Exit code: "
<< app.GetExitCode() << endl;
27
return
app.GetExitCode();
28
}
29
30
//-----------
31
// Usage
32
//-----------
33
void
Usage
(JApplication &app)
34
{
35
cout<<endl;
36
cout<<
"Usage:"
<<endl;
37
cout<<
" hd_ana [options] source1 source2 source3 ..."
<<endl;
38
cout<<endl;
39
app.Usage();
40
cout<<endl;
41
42
exit(0);
43
}
44
DApplication
Definition:
DApplication.h:33
DApplication.h
Usage
void Usage(JApplication &app)
Definition:
hd_ana.cc:33
main
int main(int argc, char *argv[])
Definition:
gendoc.cc:6
programs
Analysis
hd_ana
hd_ana.cc
Generated on Fri Jul 26 2019 14:01:53 for Hall-D Software by
1.8.5