CMS 3D CMS Logo

HitCollection.h
Go to the documentation of this file.
1 /****************************************************************************
2 * Authors:
3 * Jan Kašpar (jan.kaspar@gmail.com)
4 ****************************************************************************/
5 
6 #ifndef CalibPPS_AlignmentRelative_HitCollection_h
7 #define CalibPPS_AlignmentRelative_HitCollection_h
8 
9 #include <vector>
10 
11 //----------------------------------------------------------------------------------------------------
12 
13 struct Hit {
15  unsigned int id;
16 
18  unsigned int dirIdx;
19 
21  double position;
22 
24  double sigma;
25 
27  double z;
28 
29  Hit(unsigned int _id = 0, unsigned int _dirIdx = 0, double _pos = 0, double _sig = 0, double _z = 0)
30  : id(_id), dirIdx(_dirIdx), position(_pos), sigma(_sig), z(_z) {}
31 };
32 
33 //----------------------------------------------------------------------------------------------------
34 
35 typedef std::vector<Hit> HitCollection;
36 
37 //----------------------------------------------------------------------------------------------------
38 
39 #endif
double sigma
measurement position; mm
Definition: HitCollection.h:24
double z
global z - AlignmentGeometry::z0, mm
Definition: HitCollection.h:27
Hit(unsigned int _id=0, unsigned int _dirIdx=0, double _pos=0, double _sig=0, double _z=0)
Definition: HitCollection.h:29
double position
measurement position; mm
Definition: HitCollection.h:21
unsigned int id
sensor id
Definition: HitCollection.h:15
unsigned int dirIdx
index of read-out direction (valid are: 1 or 2)
Definition: HitCollection.h:18
std::vector< Hit > HitCollection
Definition: HitCollection.h:35