FairRoot/PandaRoot
PndTrkSkewHitList.h
Go to the documentation of this file.
1 
6 #ifndef PNDTRKSKEWHITLIST_H
7 #define PNDTRKSKEWHITLIST_H 1
8 
9 #include "TVector3.h"
10 #include "PndTrkSkewHit.h"
11 #include "FairHit.h"
12 
13 #include "TClonesArray.h"
14 
15 #include <iostream>
16 
17 #define MAXNOFHITS 1000 // CHECK consistency
18 
19 class PndTrkSkewHitList : public TObject
20 {
21 
22  public:
23 
26 
29 
30 
31 
32 
33  // CHECK private?
34  void AddHit(PndTrkSkewHit *shit);
35  void AddHit(PndTrkSkewHit shit);
36  void AddHit(PndTrkHit *shit);
37  PndTrkSkewHit *GetHit(int index);
38 
39  void Reset();
40  void Clear(Option_t* opt = "");
41 
42  inline Int_t GetNofHits() { return fHitList.GetEntriesFast(); }
43 
44  void Print();
45  void Draw(Color_t color = kBlack);
46 
47  protected:
48 
49  TClonesArray fHitList;
50 
52 };
53 
54 
55 #endif
PndTrkSkewHit * GetHit(int index)
void Clear(Option_t *opt="")
void AddHit(PndTrkSkewHit *shit)
TClonesArray fHitList
ClassDef(PndTrkSkewHitList, 1)
void Draw(Color_t color=kBlack)
PndTrkSkewHitList & operator=(const PndTrkSkewHitList &hlist)