PandaRoot
PndHypDigi Class Reference

Base class for Digi information. More...

#include <PndHypDigi.h>

Inheritance diagram for PndHypDigi:
PndHypDigiStrip

Public Member Functions

 PndHypDigi ()
 
 PndHypDigi (Int_t index, Int_t detID, TString detName, Int_t fe, Double_t charge)
 
virtual ~PndHypDigi ()
 
Int_t GetFE () const
 
TString GetDetName () const
 
Double_t GetCharge () const
 
Int_t GetDetID () const
 
std::vector< Int_t > GetIndices () const
 
Int_t GetIndex (int i=0) const
 
void AddIndex (int index)
 
void AddCharge (double charge)
 
virtual void print ()
 

Protected Member Functions

 ClassDef (PndHypDigi, 1)
 

Protected Attributes

std::vector< Int_t > fIndex
 
Int_t fDetID
 
TString fDetName
 
Double_t fCharge
 
Int_t fFE
 

Friends

std::ostream & operator<< (std::ostream &out, PndHypDigi &digi)
 

Detailed Description

Base class for Digi information.

MvdDigi.h

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 22 of file PndHypDigi.h.

Constructor & Destructor Documentation

◆ PndHypDigi() [1/2]

PndHypDigi::PndHypDigi ( )

◆ PndHypDigi() [2/2]

PndHypDigi::PndHypDigi ( Int_t  index,
Int_t  detID,
TString  detName,
Int_t  fe,
Double_t  charge 
)

constructor

Parameters
indexposition of PndHypMCPoint in TClonesArray
detIDdetector ID (not used for MVD)
detNamegeoH->GetID(gGeoManager->GetPath()) information
fefront end ID
chargedeposited charge in electrons

◆ ~PndHypDigi()

virtual PndHypDigi::~PndHypDigi ( )
inlinevirtual

Definition at line 46 of file PndHypDigi.h.

46 {};

Member Function Documentation

◆ AddCharge()

void PndHypDigi::AddCharge ( double  charge)
inline

Definition at line 56 of file PndHypDigi.h.

References fCharge.

56 { fCharge += charge; }
Double_t fCharge
Definition: PndHypDigi.h:64

◆ AddIndex()

void PndHypDigi::AddIndex ( int  index)
inline

Definition at line 55 of file PndHypDigi.h.

References fIndex.

55 { fIndex.push_back(index); }
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:61

◆ ClassDef()

PndHypDigi::ClassDef ( PndHypDigi  ,
 
)
protected

◆ GetCharge()

Double_t PndHypDigi::GetCharge ( ) const
inline

Definition at line 50 of file PndHypDigi.h.

References fCharge.

50 { return fCharge; }
Double_t fCharge
Definition: PndHypDigi.h:64

◆ GetDetID()

Int_t PndHypDigi::GetDetID ( ) const
inline

Definition at line 51 of file PndHypDigi.h.

References fDetID.

51 { return fDetID; }
Int_t fDetID
Definition: PndHypDigi.h:62

◆ GetDetName()

TString PndHypDigi::GetDetName ( ) const
inline

Definition at line 49 of file PndHypDigi.h.

References fDetName.

49 { return fDetName; }
TString fDetName
Definition: PndHypDigi.h:63

◆ GetFE()

Int_t PndHypDigi::GetFE ( ) const
inline

Definition at line 48 of file PndHypDigi.h.

References fFE.

48 { return fFE; }
Int_t fFE
Definition: PndHypDigi.h:65

◆ GetIndex()

Int_t PndHypDigi::GetIndex ( int  i = 0) const
inline

Definition at line 53 of file PndHypDigi.h.

References fIndex, and i.

53 { return fIndex[i]; }
unsigned int i
Definition: P4_F32vec4.h:21
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:61

◆ GetIndices()

std::vector<Int_t> PndHypDigi::GetIndices ( ) const
inline

Definition at line 52 of file PndHypDigi.h.

References fIndex.

52 { return fIndex; }
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:61

◆ print()

virtual void PndHypDigi::print ( )
inlinevirtual

Definition at line 58 of file PndHypDigi.h.

58 { std::cout << *this; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndHypDigi digi 
)
friend

Definition at line 24 of file PndHypDigi.h.

25  {
26  out << "Hyp Digi in: " << digi.GetDetName() << " FE: " << digi.GetFE() << " "
27  << " charge " << digi.GetCharge() << " e";
28  std::vector<Int_t> indices = digi.GetIndices();
29  for (unsigned int i = 0; i < indices.size(); i++) {
30  std::cout << digi.GetIndex(i) << " " << std::endl;
31  }
32  return out;
33  }
std::vector< Int_t > GetIndices() const
Definition: PndHypDigi.h:52
unsigned int i
Definition: P4_F32vec4.h:21
Double_t GetCharge() const
Definition: PndHypDigi.h:50
TString GetDetName() const
Definition: PndHypDigi.h:49
Int_t GetFE() const
Definition: PndHypDigi.h:48
Int_t GetIndex(int i=0) const
Definition: PndHypDigi.h:53

Member Data Documentation

◆ fCharge

Double_t PndHypDigi::fCharge
protected

Definition at line 64 of file PndHypDigi.h.

Referenced by AddCharge(), and GetCharge().

◆ fDetID

Int_t PndHypDigi::fDetID
protected

Definition at line 62 of file PndHypDigi.h.

Referenced by GetDetID().

◆ fDetName

TString PndHypDigi::fDetName
protected

Definition at line 63 of file PndHypDigi.h.

Referenced by GetDetName().

◆ fFE

Int_t PndHypDigi::fFE
protected

Definition at line 65 of file PndHypDigi.h.

Referenced by GetFE().

◆ fIndex

std::vector<Int_t> PndHypDigi::fIndex
protected

Definition at line 61 of file PndHypDigi.h.

Referenced by AddIndex(), GetIndex(), and GetIndices().


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