FairRoot/PandaRoot
PndSdsCluster.h
Go to the documentation of this file.
1 #ifndef PNDSDSCLUSTER_H
2 #define PNDSDSCLUSTER_H
3 
4 //#include "FairMultiLinkedData.h"
5 #include "PndDetectorList.h" // contains SensorSide enumeration
6 #include "FairMultiLinkedData_Interface.h"
7 #include "TObject.h"
8 #include <vector>
9 #include <iostream>
10 
11 
19 class PndSdsCluster : public FairMultiLinkedData_Interface
20 {
21 
23  std::vector<Int_t> list = cl.GetClusterList();
24  out << "Hits in Cluster: (" ;
25  for (UInt_t i = 0; i<list.size();i++)
26  out << list[i] << " ";
27  out << ")" << std::endl;
28 
29  return out;
30  }
31 
32 public :
35  PndSdsCluster(std::vector<Int_t> list);
36 
37  virtual void SetClusterList(Int_t DigiType, std::vector<Int_t> list, Int_t fileId, Int_t eventId) = 0;
38  std::vector<Int_t> GetClusterList() const {return fClusterList;}
39  Int_t GetClusterSize() const {return fClusterList.size();}
40  Int_t GetDigiIndex(Int_t i) const {return fClusterList[i];}
41 
42  bool DigiBelongsToCluster(Int_t digiIndex);
43 
44  virtual void Print();
45 
46 protected :
47  std::vector<Int_t> fClusterList;
48 
49 
51 
52 };
53 
54 #endif
friend std::ostream & operator<<(std::ostream &out, PndSdsCluster &cl)
Definition: PndSdsCluster.h:22
std::vector< Int_t > GetClusterList() const
Definition: PndSdsCluster.h:38
Int_t GetClusterSize() const
Definition: PndSdsCluster.h:39
Int_t i
Definition: run_full.C:25
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:19
virtual void SetClusterList(Int_t DigiType, std::vector< Int_t > list, Int_t fileId, Int_t eventId)=0
ClassDef(PndSdsCluster, 2)
Int_t GetDigiIndex(Int_t i) const
Definition: PndSdsCluster.h:40
TFile * out
Definition: reco_muo.C:20
virtual void Print()
bool DigiBelongsToCluster(Int_t digiIndex)
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:47