PandaRoot
PndHypStrip Class Reference

#include <PndHypStrip.h>

Public Member Functions

 PndHypStrip ()
 
 PndHypStrip (Int_t nr, Double_t charge)
 
void SetIndex (Int_t nr)
 
void SetCharge (Double_t charge)
 
int GetIndex () const
 
double GetCharge () const
 

Friends

std::ostream & operator<< (std::ostream &out, const PndHypStrip &strip)
 

Detailed Description

Definition at line 21 of file PndHypStrip.h.

Constructor & Destructor Documentation

◆ PndHypStrip() [1/2]

PndHypStrip::PndHypStrip ( )
inline

Definition at line 23 of file PndHypStrip.h.

23  : fnumber(-1), fcharge(-1.0)
24  // _fe = -1;
25  {
26  }

◆ PndHypStrip() [2/2]

PndHypStrip::PndHypStrip ( Int_t  nr,
Double_t  charge 
)
inline

Definition at line 29 of file PndHypStrip.h.

30  : // _detName = detName;
31  // _fe = fe;
32  fnumber(nr), fcharge(charge)
33  // _index = 0;
34  // _detID = 0;
35  // _trackID = 0;
36  {
37  }

Member Function Documentation

◆ GetCharge()

double PndHypStrip::GetCharge ( ) const
inline

Definition at line 46 of file PndHypStrip.h.

46 { return fcharge; }

◆ GetIndex()

int PndHypStrip::GetIndex ( ) const
inline

Definition at line 45 of file PndHypStrip.h.

45 { return fnumber; }

◆ SetCharge()

void PndHypStrip::SetCharge ( Double_t  charge)
inline

Definition at line 40 of file PndHypStrip.h.

40 { fcharge = charge; }

◆ SetIndex()

void PndHypStrip::SetIndex ( Int_t  nr)
inline

Definition at line 39 of file PndHypStrip.h.

39 { fnumber = nr; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const PndHypStrip strip 
)
friend

Definition at line 50 of file PndHypStrip.h.

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  }
int GetIndex() const
Definition: PndHypStrip.h:45
double GetCharge() const
Definition: PndHypStrip.h:46

The documentation for this class was generated from the following file: