PandaRoot
PndTrkClusterList.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 
21 #ifndef PNDTRKCLUSTERLIST_H
22 #define PNDTRKCLUSTERLIST_H 1
23 
24 #include "TVector3.h"
25 #include "PndTrkCluster.h"
26 
27 class TClonesArray;
28 class PndTrkClusterList : public TObject {
29 
30  public:
32  // copy ctor
36 
37  void AddCluster(PndTrkCluster *cluster);
38  void DeleteCluster(Int_t index);
39  void Reset();
40  void Clear(Option_t *opt = "");
41 
42  inline Int_t GetNofClusters() { return fClusterList.GetEntriesFast(); }
43 
44  PndTrkCluster *GetCluster(Int_t index) { return (PndTrkCluster *)fClusterList[index]; }
45 
46  /* void ReplaceCluster(Int_t index, PndTrkCluster *cluster); */
47 
48  protected:
49  TClonesArray fClusterList;
50  // TObjArray clusterlist;
51  // std::vector< PndTrkCluster > clusterlist;
52 
54 };
55 
56 #endif
TClonesArray fClusterList
ClassDef(PndTrkClusterList, 1)
void AddCluster(PndTrkCluster *cluster)
PndTrkClusterList & operator=(const PndTrkClusterList &clist)
void Clear(Option_t *opt="")
void DeleteCluster(Int_t index)
PndTrkCluster * GetCluster(Int_t index)