BmnRoot
Loading...
Searching...
No Matches
CbmL1MCPoint.h
Go to the documentation of this file.
1/*
2 *====================================================================
3 *
4 * CBM Level 1 Reconstruction
5 *
6 * Authors: I.Kisel, S.Gorbunov
7 *
8 * e-mail : ikisel@kip.uni-heidelberg.de
9 *
10 *====================================================================
11 *
12 * L1 Monte Carlo information
13 *
14 *====================================================================
15 */
16
17#ifndef CbmL1MCPoint_H
18#define CbmL1MCPoint_H
19
20#include <vector>
21using std::vector;
22
24{
26x(0), y(0), z(0), px(0), py(0), pz(0),
27xIn(0), yIn(0), zIn(0), pxIn(0), pyIn(0), pzIn(0),
28xOut(0), yOut(0), zOut(0), pxOut(0), pyOut(0), pzOut(0),
29p(0), q(0), mass(0),
30pdg(0), ID(0), mother_ID(0),
31iStation(0), pointId(-1), hitIds()
32 {}
33
34 double x, y, z, px, py, pz;
35 double xIn, yIn, zIn, pxIn, pyIn, pzIn;
37 double p, q, mass;
41
42 static bool compareIDz( const CbmL1MCPoint &a, const CbmL1MCPoint &b )
43 {
44 return ( a.ID < b.ID ) || ( ( a.ID == b.ID ) && (a.z < b.z) );
45 }
46
47 static bool pcompareIDz( const CbmL1MCPoint *a, const CbmL1MCPoint *b )
48 {
49 return ( a->ID < b->ID ) || ( ( a->ID == b->ID ) && (a->z < b->z) );
50 }
51
52 vector<int> hitIds; // indices of CbmL1StsHits in L1->vStsHits array
53};
54
55#endif
vector< int > hitIds
static bool compareIDz(const CbmL1MCPoint &a, const CbmL1MCPoint &b)
static bool pcompareIDz(const CbmL1MCPoint *a, const CbmL1MCPoint *b)