KiTrackMarlin  1.9.0
IFTDHit.h
1 #ifndef IFTDHit_h
2 #define IFTDHit_h
3 
4 
5 #include "EVENT/TrackerHit.h"
6 #include "lcio.h"
7 
8 #include "KiTrack/IHit.h"
9 
10 #include "ILDImpl/SectorSystemFTD.h"
11 
12 using namespace lcio;
13 
14 namespace KiTrackMarlin{
15 
16 
21  class IFTDHit : public IHit{
22 
23 
24  public:
25 
26 
27  TrackerHit* getTrackerHit() { return _trackerHit; };
28 
29 
30  int getSide() { return _side; }
31  unsigned getModule() { return _module; }
32  unsigned getSensor() { return _sensor; }
33 
34  void setSide( int side ){ _side = side; calculateSector();}
35  void setLayer( unsigned layer ){ _layer = layer; calculateSector();}
36  void setModule( unsigned module ){ _module = module; calculateSector();}
37  void setSensor( unsigned sensor ){ _layer = sensor; calculateSector();}
38 
39 
40 
41  virtual const ISectorSystem* getSectorSystem() const { return _sectorSystemFTD; };
42 
43  protected:
44 
45  TrackerHit* _trackerHit;
46 
47 
48  int _side;
49  unsigned _layer;
50  unsigned _module;
51  unsigned _sensor;
52 
53  const SectorSystemFTD* _sectorSystemFTD;
54 
57  void calculateSector(){ _sector = _sectorSystemFTD->getSector( _side, _layer , _module , _sensor ); }
58 
59  };
60 
61 }
62 
63 
64 #endif
65 
A Sector System class for the Forward Tracking Disks FTD in the ILD.
Definition: SectorSystemFTD.h:27
void calculateSector()
Calculates and sets the sector number.
Definition: IFTDHit.h:57
An interface for a hit for the ILD using an lcio TrackerHit as basis.
Definition: IFTDHit.h:21