Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
test_trk.cc File Reference

Go to the source code of this file.

Functions

void test_dummy ()
 
int main ()
 

Function Documentation

◆ test_dummy()

void test_dummy ( )

Definition at line 5 of file test_trk.cc.

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}
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

◆ main()

int main ( )

Definition at line 25 of file test_trk.cc.

26{
27 test_dummy();
28 return 0;
29}
void test_dummy()
Definition test_trk.cc:5