FairRoot/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 
11 {
12 public :
14  fnumber(-1),
15  fcharge(-1.0)
16 // _fe = -1;
17  {}
18 
19 // PndHypStrip(const std::string& detName, int fe, int nr, double charge){
20  PndHypStrip(Int_t nr, Double_t charge):
21 // _detName = detName;
22 // _fe = fe;
23  fnumber(nr),
24  fcharge(charge)
25 // _index = 0;
26 // _detID = 0;
27 // _trackID = 0;
28  {
29  }
30 
31  void SetIndex(Int_t nr) {fnumber = nr;}
32  void SetCharge(Double_t charge) {fcharge = charge;}
33 // void SetDetName(const std::string& detName) {_detName = detName;}
34 // void SetFE (int fe) {_fe = fe;}
35 // void SetIndex (int fe) {_fe = fe;}
36 
37  int GetIndex() const {return fnumber;}
38  double GetCharge() const {return fcharge;}
39 // std::string GetDetName() const {return _detName;}
40 // int GetFE() const {return _fe;}
41 
43  {
44  /*
45  out << "Detector: " << strip.GetDetName() << " FE: " <<
46  strip.GetFE() << " Strip Nr.: " << strip.GetChannel() << " "
47  << " Charge: " << strip.GetCharge();
48  */
49  out << " Strip Nr.: " << strip.GetIndex() << " "
50  << " Charge: " << strip.GetCharge();
51 
52  return out;
53  }
54 
55 
56  private :
57 // int _fe;
58  Int_t fnumber;
60 // int _index;
61 // int _detID;
62 // int _trackID;
63 
64 // std::string _detName;
65 };
66 
67 #endif //fMVDSTRIP_HH
Int_t fnumber
Definition: PndHypStrip.h:58
friend std::ostream & operator<<(std::ostream &out, const PndHypStrip &strip)
Definition: PndHypStrip.h:42
PndHypStrip(Int_t nr, Double_t charge)
Definition: PndHypStrip.h:20
Double_t
TFile * out
Definition: reco_muo.C:20
Double_t fcharge
Definition: PndHypStrip.h:59
void SetCharge(Double_t charge)
Definition: PndHypStrip.h:32
double GetCharge() const
Definition: PndHypStrip.h:38
void SetIndex(Int_t nr)
Definition: PndHypStrip.h:31
int GetIndex() const
Definition: PndHypStrip.h:37