Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
test_trk.cc
Go to the documentation of this file.
1#include <cassert>
4
6{
7 // Default track
8 Trk trk;
9 assert(trk.is_dummy() == true);
10
11 // Dummy DST track
13 assert(trk.is_dummy() == true);
14
15 // Old dummy track
16 trk.id = 0;
17 trk.rec_type = 0;
18 assert(trk.is_dummy() == true);
19
20 // Good track
22 assert(trk.is_dummy() == false);
23}
24
25int main()
26{
27 test_dummy();
28 return 0;
29}
static const int JPP_RECONSTRUCTION_TYPE
ile KM3NeT Data Definitions v3.6.5 https://git.km3net.de/common/km3net-dataformat
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition Trk.hh:15
int id
track identifier
Definition Trk.hh:16
bool is_dummy()
Test if the track is a dummy one.
Definition Trk.hh:179
int rec_type
identifier of the fitting algorithm/chain/strategy, see km3net-dataformat/definitions/reconstruction....
Definition Trk.hh:25
void test_dummy()
Definition test_trk.cc:5
int main()
Definition test_trk.cc:25
Auxiliary methods for selection of reconstructed tracks.