PandaRoot
PndTrkSkewHitList.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
18 #ifndef PNDTRKSKEWHITLIST_H
19 #define PNDTRKSKEWHITLIST_H 1
20 
21 #include "TVector3.h"
22 #include "PndTrkSkewHit.h"
23 #include "FairHit.h"
24 
25 #include "TClonesArray.h"
26 
27 #include <iostream>
28 
29 #define MAXNOFHITS 1000 // CHECK consistency
30 
31 class PndTrkSkewHitList : public TObject {
32 
33  public:
36 
39 
40  // CHECK private?
41  void AddHit(PndTrkSkewHit *shit);
42  void AddHit(PndTrkSkewHit shit);
43  void AddHit(PndTrkHit *shit);
44  PndTrkSkewHit *GetHit(int index);
45 
46  void Reset();
47  void Clear(Option_t *opt = "");
48 
49  inline Int_t GetNofHits() { return fHitList.GetEntriesFast(); }
50 
51  void Print();
52  void Draw(Color_t color = kBlack);
53 
54  protected:
55  TClonesArray fHitList;
56 
58 };
59 
60 #endif
void Clear(Option_t *opt="")
void AddHit(PndTrkSkewHit *shit)
TClonesArray fHitList
PndTrkSkewHit * GetHit(int index)
PndTrkSkewHitList & operator=(const PndTrkSkewHitList &hlist)
ClassDef(PndTrkSkewHitList, 1)
void Draw(Color_t color=kBlack)