PandaRoot
PndTrkConformalHitList.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 PNDTRKCONFORMALHITLIST_H
19 #define PNDTRKCONFORMALHITLIST_H 1
20 
21 #include "TVector3.h"
22 #include "PndTrkConformalHit.h"
24 #include "FairHit.h"
25 
26 #include "TClonesArray.h"
27 
28 #include <iostream>
29 /* #include <cmath> */
30 /* #include <vector> */
31 /* #include <iterator> */
32 /* #include <algorithm> */
33 
34 #define MAXNOFHITS 1000 // CHECK consistency
35 
36 // class TObjArray;
37 class PndTrkConformalHitList : public TObject {
38 
39  public:
43 
46 
47  // CHECK private?
48  void AddHit(PndTrkConformalHit *chit);
49  PndTrkConformalHit *GetHit(int index);
50 
51  void Reset();
52  void Clear(Option_t *opt = "");
53 
54  void SetConformalTransform(PndTrkConformalTransform *conformal) { fConformal = conformal; }
56  inline Int_t GetNofHits() { return fHitList.GetEntriesFast(); }
57 
58  void Print();
59  void Draw(Color_t color = kBlack);
60 
61  protected:
62  /* std::vector<PndTrkConformalHit *> hitlist; */
64  TClonesArray fHitList;
65 
67 };
68 
69 #endif
PndTrkConformalHitList & operator=(const PndTrkConformalHitList &hlist)
void AddHit(PndTrkConformalHit *chit)
ClassDef(PndTrkConformalHitList, 1)
PndTrkConformalTransform * fConformal
PndTrkConformalTransform * GetConformalTransform()
void SetConformalTransform(PndTrkConformalTransform *conformal)
PndTrkConformalHit * GetHit(int index)
void Clear(Option_t *opt="")
void Draw(Color_t color=kBlack)