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 9 of file PndHypStrip.h.

Constructor & Destructor Documentation

◆ PndHypStrip() [1/2]

PndHypStrip::PndHypStrip ( )
inline

Definition at line 11 of file PndHypStrip.h.

11  : fnumber(-1), fcharge(-1.0)
12  // _fe = -1;
13  {
14  }

◆ PndHypStrip() [2/2]

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

Definition at line 17 of file PndHypStrip.h.

18  : // _detName = detName;
19  // _fe = fe;
20  fnumber(nr), fcharge(charge)
21  // _index = 0;
22  // _detID = 0;
23  // _trackID = 0;
24  {
25  }

Member Function Documentation

◆ GetCharge()

double PndHypStrip::GetCharge ( ) const
inline

Definition at line 34 of file PndHypStrip.h.

34 { return fcharge; }

◆ GetIndex()

int PndHypStrip::GetIndex ( ) const
inline

Definition at line 33 of file PndHypStrip.h.

33 { return fnumber; }

◆ SetCharge()

void PndHypStrip::SetCharge ( Double_t  charge)
inline

Definition at line 28 of file PndHypStrip.h.

28 { fcharge = charge; }

◆ SetIndex()

void PndHypStrip::SetIndex ( Int_t  nr)
inline

Definition at line 27 of file PndHypStrip.h.

27 { fnumber = nr; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 38 of file PndHypStrip.h.

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

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