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