PandaRoot
PndMdtCluster.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 
13 #ifndef PNDMDTCLUSTER_HH
14 #define PNDMDTCLUSTER_HH
15 
16 #include "FairMultiLinkedData_Interface.h"
17 #include <vector>
18 
19 class PndMdtCluster : public FairMultiLinkedData_Interface {
20 
21  public:
22  PndMdtCluster();
23  PndMdtCluster(std::vector<Int_t> list);
24 
25  virtual ~PndMdtCluster();
26 
27  void SetClusterList(std::vector<Int_t> list) { fDigiList = list; };
28  std::vector<Int_t> GetDigiList() const { return fDigiList; }
29  Int_t GetClusterSize() const { return fDigiList.size(); }
30  Int_t GetDigiIndex(Int_t i) const { return fDigiList[i]; }
31 
32  Bool_t DigiBelongsToCluster(Int_t digiIndex);
33 
35  virtual void Print(const Option_t *opt = nullptr);
36 
38  Short_t GetNDigis() const { return fDigiList.size(); }
39  const std::vector<Int_t> &GetDigiList() { return fDigiList; }
40 
41  private:
42  std::vector<Int_t> fDigiList; // List of MdtDigi indices
43 
44  ClassDef(PndMdtCluster, 1);
45 };
46 
47 #endif
const std::vector< Int_t > & GetDigiList()
Definition: PndMdtCluster.h:39
std::vector< Int_t > GetDigiList() const
Definition: PndMdtCluster.h:28
unsigned int i
Definition: P4_F32vec4.h:33
Bool_t DigiBelongsToCluster(Int_t digiIndex)
void SetClusterList(std::vector< Int_t > list)
Definition: PndMdtCluster.h:27
Int_t GetDigiIndex(Int_t i) const
Definition: PndMdtCluster.h:30
virtual ~PndMdtCluster()
virtual void Print(const Option_t *opt=nullptr)
Short_t GetNDigis() const
Definition: PndMdtCluster.h:38
Int_t GetClusterSize() const
Definition: PndMdtCluster.h:29