PandaRoot
PndSdsClusterStrip.h
Go to the documentation of this file.
1 /*
2  * PndSdsClusterStrip.h
3  *
4  * Created on: Dec 15, 2009
5  * Author: stockmanns, kliemt, michel
6  */
7 
8 #ifndef PNDSDSCLUSTERSTRIP_H_
9 #define PNDSDSCLUSTERSTRIP_H_
10 
11 #include "PndSdsCluster.h"
12 
14 
15  friend std::ostream &operator<<(std::ostream &out, PndSdsClusterStrip &cl)
16  {
17  std::vector<Int_t> list = cl.GetClusterList();
18  out << "Hits in Cluster:" << std::endl;
19  for (UInt_t i = 0; i < list.size(); i++)
20  out << list[i] << std::endl;
21  out << std::endl;
22  return out;
23  }
24 
25  public:
27  PndSdsClusterStrip(Int_t DigiType, std::vector<Int_t> list) : fSide(SensorSide::kTOP) { SetClusterList(DigiType, list); };
28  virtual ~PndSdsClusterStrip();
29 
30  void SetClusterList(Int_t DigiType, std::vector<Int_t> list, Int_t fileId = -1, Int_t eventId = -1)
31  {
32  fClusterList = list;
33  SetLinks(FairMultiLinkedData(DigiType, list, fileId, eventId));
34  }
35 
36  SensorSide GetSensorSide() const { return fSide; }
37  void SetSensorSide(SensorSide s) { fSide = s; }
38 
39  private:
40  SensorSide fSide;
41 
42  ClassDef(PndSdsClusterStrip, 1);
43 };
44 
45 #endif /* PNDSDSCLUSTERSTRIP_H_ */
std::vector< Int_t > GetClusterList() const
Definition: PndSdsCluster.h:37
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:18
PndSdsClusterStrip(Int_t DigiType, std::vector< Int_t > list)
unsigned int i
Definition: P4_F32vec4.h:21
virtual ~PndSdsClusterStrip()
SensorSide GetSensorSide() const
void SetClusterList(Int_t DigiType, std::vector< Int_t > list, Int_t fileId=-1, Int_t eventId=-1)
SensorSide
void SetSensorSide(SensorSide s)
std::vector< Int_t > fClusterList
Definition: PndSdsCluster.h:46
friend std::ostream & operator<<(std::ostream &out, PndSdsClusterStrip &cl)