FairRoot/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 
8 
10 
16 {
17 public :
19  fNumber(-1),
20  fCharge(-1.0)
21  { }
22 
23  PndSdsStrip(Int_t nr, Double_t charge):
24  fNumber(nr),
25  fCharge(charge)
26  {}
27 
28  void SetIndex(Int_t nr) {fNumber = nr;}
29  void SetCharge(Double_t charge) {fCharge = charge;}
30 
31  Int_t GetIndex() const {return fNumber;}
32  Double_t GetCharge() const {return fCharge;}
33 
35  {
36  out << " Strip Nr.: " << strip.GetIndex() << " "
37  << " Charge: " << strip.GetCharge();
38  return out;
39  }
40 
41  private :
42  Int_t fNumber;
44 };
45 
46 #endif //fSDSSTRIP_HH
void SetCharge(Double_t charge)
Definition: PndSdsStrip.h:29
friend std::ostream & operator<<(std::ostream &out, const PndSdsStrip &strip)
Definition: PndSdsStrip.h:34
Class representing strips on wafer-scale.
Definition: PndSdsStrip.h:15
Double_t
TFile * out
Definition: reco_muo.C:20
PndSdsStrip(Int_t nr, Double_t charge)
Definition: PndSdsStrip.h:23
Double_t fCharge
Definition: PndSdsStrip.h:43
void SetIndex(Int_t nr)
Definition: PndSdsStrip.h:28
Double_t GetCharge() const
Definition: PndSdsStrip.h:32
Int_t GetIndex() const
Definition: PndSdsStrip.h:31
Int_t fNumber
Definition: PndSdsStrip.h:42