"MarlinReco"  1.32.0
VXDClusterParameters.h
1 #ifndef VXDClusterParameters_h
2 #define VXDClusterParameters_h 1
3 
4 #include "lcio.h"
5 #include "LCRTRelations.h"
6 #include "gear/GEAR.h"
7 
17 
18 public:
19 
24  VXDClusterParameters(const gear::Vector3D& localPos,
25  const gear::Vector3D& a, const gear::Vector3D& b,
26  int lay,int lad) ;
27 
28 
29  gear::Vector3D getClusterPosition() {return _localPos ; }
30  gear::Vector3D getClusterAxisA() {return _cluAxisA ; }
31  gear::Vector3D getClusterAxisB() {return _cluAxisB ; }
32 
33  int getLayerId() { return _layerId ; }
34  int getLadderId() { return _ladderId ; }
35 
36 
37 
41  bool isPointInClusterEllipse(const gear::Vector3D& pos) ;
42 
43 protected:
44 
46  _localPos(0,0,0),
47  _cluAxisA(0,0,0),
48  _cluAxisB(0,0,0),
49  _layerId (-1) ,
50  _ladderId(-1) {
51  }
52 
53  gear::Vector3D _localPos{}; // position of hit on ladder
54  gear::Vector3D _cluAxisA{};
55  gear::Vector3D _cluAxisB{};
56  int _layerId{};
57  int _ladderId{};
58 } ;
59 
60 
61 
62 
65 struct ClusterParams: public lcio::LCOwnedExtension< ClusterParams, VXDClusterParameters > {};
66 
67 #endif
68 
69 
70 
======= VXDClusterParameters ========== Holds cluster parameters for a VXD hit - to be attached at ...
Definition: VXDClusterParameters.h:16
Allows to use VXDClusterParameters as runtime extension object.
Definition: VXDClusterParameters.h:65
bool isPointInClusterEllipse(const gear::Vector3D &pos)
True, if the 2D projection to the ladder surface of the given position is within the ellipse defined ...