ForwardTracking  1.10.0
IEndcapHit.h
1 #ifndef IEndcapHit_h
2 #define IEndcapHit_h
3 
4 #include <iostream>
5 
6 #include "EVENT/TrackerHit.h"
7 #include "lcio.h"
8 
9 #include "KiTrack/IHit.h"
10 
11 #include "SectorSystemEndcap.h"
12 
13 using namespace lcio;
14 
15 namespace KiTrackMarlin{
16 
17 
22  class IEndcapHit : public IHit{
23 
24 
25  public:
26 
27 
28  TrackerHit* getTrackerHit() { return _trackerHit; };
29 
30 
31  int getTheta() { return _theta; }
32  unsigned getPhi() { return _phi; }
33 
34 
35  //void setLayer( unsigned layer ){ _layer = layer; calculateSector();}
36  //void setPhi( unsigned phi ){ _phi = phi; calculateSector();}
37  //void setTheta( unsigned theta ){ _theta = theta; calculateSector();}
38  void setLayer( unsigned layer ){ _layer = layer; }
39  void setPhi( unsigned phi ){ _phi = phi; }
40  void setTheta( unsigned theta ){ _theta = theta; }
41 
42 
43  virtual const ISectorSystem* getSectorSystem() const { return _sectorSystemEndcap; };
44 
45  protected:
46 
47  TrackerHit* _trackerHit;
48 
49 
50  int _layer;
51  int _phi;
52  int _theta;
53 
54  const SectorSystemEndcap* _sectorSystemEndcap;
55 
59  //void calculateSector(){ _sector = _sectorSystemEndcap->getSector( _layer, _phi, _theta ); }
60 
61  };
62 
63 }
64 
65 
66 #endif
67 
An interface for a hit for the ILD using an lcio TrackerHit as basis.
Definition: IEndcapHit.h:22
A Sector System class for the Forward Tracking Disks FTD in the ILD.
Definition: SectorSystemEndcap.h:29