PandaRoot
PndSdsClusterStrip.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 /*
14  * PndSdsClusterStrip.h
15  *
16  * Created on: Dec 15, 2009
17  * Author: stockmanns, kliemt, michel
18  */
19 
20 #ifndef PNDSDSCLUSTERSTRIP_H_
21 #define PNDSDSCLUSTERSTRIP_H_
22 
23 #include "PndSdsCluster.h"
24 
26 
27  friend std::ostream &operator<<(std::ostream &out, PndSdsClusterStrip &cl)
28  {
29  std::vector<Int_t> list = cl.GetClusterList();
30  out << "Hits in Cluster:" << std::endl;
31  for (UInt_t i = 0; i < list.size(); i++)
32  out << list[i] << std::endl;
33  out << std::endl;
34  return out;
35  }
36 
37  public:
39  PndSdsClusterStrip(Int_t DigiType, std::vector<Int_t> list) : fSide(SensorSide::kTOP) { SetClusterList(DigiType, list); };
40  virtual ~PndSdsClusterStrip();
41 
42  void SetClusterList(Int_t DigiType, std::vector<Int_t> list, Int_t fileId = -1, Int_t eventId = -1)
43  {
44  fClusterList = list;
45  SetLinks(FairMultiLinkedData(DigiType, list, fileId, eventId));
46  }
47 
48  SensorSide GetSensorSide() const { return fSide; }
49  void SetSensorSide(SensorSide s) { fSide = s; }
50 
51  private:
52  SensorSide fSide;
53 
54  ClassDef(PndSdsClusterStrip, 1);
55 };
56 
57 #endif /* PNDSDSCLUSTERSTRIP_H_ */
std::vector< Int_t > GetClusterList() const
Definition: PndSdsCluster.h:49
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:30
PndSdsClusterStrip(Int_t DigiType, std::vector< Int_t > list)
unsigned int i
Definition: P4_F32vec4.h:33
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:58
friend std::ostream & operator<<(std::ostream &out, PndSdsClusterStrip &cl)