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
Hit
Definition: HitCollection.h:12
Hit::z
double z
global z - AlignmentGeometry::z0, mm
Definition: HitCollection.h:28
Hit::sigma
double sigma
measurement position; mm
Definition: HitCollection.h:25
Hit::position
double position
measurement position; mm
Definition: HitCollection.h:22
Hit::id
unsigned int id
sensor id
Definition: HitCollection.h:16
Hit::Hit
Hit(unsigned int _id=0, unsigned int _dirIdx=0, double _pos=0, double _sig=0, double _z=0)
Definition: HitCollection.h:30
HitCollection
std::vector< Hit > HitCollection
Definition: HitCollection.h:34
Hit::dirIdx
unsigned int dirIdx
index of read-out direction (valid are: 1 or 2)
Definition: HitCollection.h:19