PandaRoot
PndHypStrip.h
Go to the documentation of this file.
1 #ifndef _PNDHYPSTRIP_HH
2 #define _PNDHYPSTRIP_HH
3 
4 #include "PndHypHit.h"
5 #include "FairGeoVector.h"
6 #include <iostream>
7 #include <vector>
8 
9 class PndHypStrip {
10  public:
11  PndHypStrip() : fnumber(-1), fcharge(-1.0)
12  // _fe = -1;
13  {
14  }
15 
16  // PndHypStrip(const std::string& detName, int fe, int nr, double charge){
17  PndHypStrip(Int_t nr, Double_t charge)
18  : // _detName = detName;
19  // _fe = fe;
20  fnumber(nr), fcharge(charge)
21  // _index = 0;
22  // _detID = 0;
23  // _trackID = 0;
24  {
25  }
26 
27  void SetIndex(Int_t nr) { fnumber = nr; }
28  void SetCharge(Double_t charge) { fcharge = charge; }
29  // void SetDetName(const std::string& detName) {_detName = detName;}
30  // void SetFE (int fe) {_fe = fe;}
31  // void SetIndex (int fe) {_fe = fe;}
32 
33  int GetIndex() const { return fnumber; }
34  double GetCharge() const { return fcharge; }
35  // std::string GetDetName() const {return _detName;}
36  // int GetFE() const {return _fe;}
37 
38  friend std::ostream &operator<<(std::ostream &out, const PndHypStrip &strip)
39  {
40  /*
41  out << "Detector: " << strip.GetDetName() << " FE: " <<
42  strip.GetFE() << " Strip Nr.: " << strip.GetChannel() << " "
43  << " Charge: " << strip.GetCharge();
44  */
45  out << " Strip Nr.: " << strip.GetIndex() << " "
46  << " Charge: " << strip.GetCharge();
47 
48  return out;
49  }
50 
51  private:
52  // int _fe;
53  Int_t fnumber;
54  Double_t fcharge;
55  // int _index;
56  // int _detID;
57  // int _trackID;
58 
59  // std::string _detName;
60 };
61 
62 #endif // fMVDSTRIP_HH
friend std::ostream & operator<<(std::ostream &out, const PndHypStrip &strip)
Definition: PndHypStrip.h:38
PndHypStrip(Int_t nr, Double_t charge)
Definition: PndHypStrip.h:17
int GetIndex() const
Definition: PndHypStrip.h:33
double GetCharge() const
Definition: PndHypStrip.h:34
void SetCharge(Double_t charge)
Definition: PndHypStrip.h:28
void SetIndex(Int_t nr)
Definition: PndHypStrip.h:27