PandaRoot
PndSdsStrip.h
Go to the documentation of this file.
1 #ifndef fSDSSTRIP_HH
2 #define fSDSSTRIP_HH
3 
4 #include "FairGeoVector.h"
5 #include <iostream>
6 #include <vector>
7 
9 
14 class PndSdsStrip {
15  public:
16  PndSdsStrip() : fNumber(-1), fCharge(-1.0) {}
17 
18  PndSdsStrip(Int_t nr, Double_t charge) : fNumber(nr), fCharge(charge) {}
19 
20  void SetIndex(Int_t nr) { fNumber = nr; }
21  void SetCharge(Double_t charge) { fCharge = charge; }
22 
23  Int_t GetIndex() const { return fNumber; }
24  Double_t GetCharge() const { return fCharge; }
25 
26  friend std::ostream &operator<<(std::ostream &out, const PndSdsStrip &strip)
27  {
28  out << " Strip Nr.: " << strip.GetIndex() << " "
29  << " Charge: " << strip.GetCharge();
30  return out;
31  }
32 
33  private:
34  Int_t fNumber;
35  Double_t fCharge;
36 };
37 
38 #endif // fSDSSTRIP_HH
void SetCharge(Double_t charge)
Definition: PndSdsStrip.h:21
friend std::ostream & operator<<(std::ostream &out, const PndSdsStrip &strip)
Definition: PndSdsStrip.h:26
Class representing strips on wafer-scale.
Definition: PndSdsStrip.h:14
Double_t GetCharge() const
Definition: PndSdsStrip.h:24
Int_t GetIndex() const
Definition: PndSdsStrip.h:23
PndSdsStrip(Int_t nr, Double_t charge)
Definition: PndSdsStrip.h:18
void SetIndex(Int_t nr)
Definition: PndSdsStrip.h:20