Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardata
test
RecoObjects
TrackTest.cc
Go to the documentation of this file.
1
//
2
// File: TrackTest.cxx
3
//
4
// Purpose: Single source executable with tests for track classes
5
//
6
7
#include <iostream>
8
#include <cassert>
9
#include "
lardata/RecoObjects/KTrack.h
"
10
#include "
lardata/RecoObjects/KETrack.h
"
11
#include "
lardata/RecoObjects/KFitTrack.h
"
12
13
int
main
()
14
{
15
// Make sure assert is enabled.
16
17
bool
assert_flag =
false
;
18
assert((assert_flag =
true
, assert_flag));
19
if
( ! assert_flag ) {
20
std::cerr <<
"Assert is disabled"
<<
std::endl
;
21
return
1;
22
}
23
24
// Make some tracks.
25
26
trkf::KTrack
trk
;
27
trkf::KETrack
tre;
28
trkf::KFitTrack
trf;
29
30
// Some simple tests.
31
32
assert(!trk.
isValid
());
33
assert(trf.
getStat
() ==
trkf::KFitTrack::INVALID
);
34
35
// Done (success).
36
37
std::cout <<
"TrackTest: All tests passed."
<<
std::endl
;
38
39
return
0;
40
}
main
int main()
Definition:
TrackTest.cc:13
trkf::KFitTrack::INVALID
Definition:
KFitTrack.h:42
trk
Definition:
TrackContainmentAlg.hh:22
trkf::KETrack
Definition:
KETrack.h:29
trkf::KTrack
Definition:
KTrack.h:32
trkf::KFitTrack
Definition:
KFitTrack.h:36
KETrack.h
Basic Kalman filter track class, with error.
KFitTrack.h
Basic Kalman filter track class, with fit information.
KTrack.h
Basic Kalman filter track class, without error.
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
trkf::KTrack::isValid
bool isValid() const
Test if track is valid.
Definition:
KTrack.cxx:91
trkf::KFitTrack::getStat
FitStatus getStat() const
Fit status.
Definition:
KFitTrack.h:68
Generated by
1.8.11