FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
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::ostreamoperator<< (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 23 of file PndHypDigi.h.

Constructor & Destructor Documentation

PndHypDigi::PndHypDigi ( )

Definition at line 3 of file PndHypDigi.cxx.

3  :
4  fIndex(),
5  fDetID(-1),
6  fDetName(""),
7  fCharge(-1),
8  fFE(0)
9 {
10 }
Int_t fDetID
Definition: PndHypDigi.h:63
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:62
Int_t fFE
Definition: PndHypDigi.h:66
TString fDetName
Definition: PndHypDigi.h:64
Double_t fCharge
Definition: PndHypDigi.h:65
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

Definition at line 12 of file PndHypDigi.cxx.

References fIndex.

12  :
13  fIndex(),
14  fDetID(detID),
15  fDetName(detName),
16  fCharge(charge),
17  fFE(fe)
18 {
19  fIndex.push_back(index);
20 }
Int_t fDetID
Definition: PndHypDigi.h:63
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:62
Int_t fFE
Definition: PndHypDigi.h:66
TString fDetName
Definition: PndHypDigi.h:64
int fe
Definition: anaLmdDigi.C:67
Double_t fCharge
Definition: PndHypDigi.h:65
virtual PndHypDigi::~PndHypDigi ( )
inlinevirtual

Definition at line 46 of file PndHypDigi.h.

46 {};

Member Function Documentation

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:65
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:62
PndHypDigi::ClassDef ( PndHypDigi  ,
 
)
protected
Double_t PndHypDigi::GetCharge ( ) const
inline

Definition at line 50 of file PndHypDigi.h.

References fCharge.

Referenced by PndHypStripClusterTask::Exec(), and PndHypDigiStrip::operator==().

50 { return fCharge; }
Double_t fCharge
Definition: PndHypDigi.h:65
Int_t PndHypDigi::GetDetID ( ) const
inline

Definition at line 51 of file PndHypDigi.h.

References fDetID.

Referenced by PndHypStripClusterTask::Exec(), and PndHypDigiStrip::operator==().

51 { return fDetID;}
Int_t fDetID
Definition: PndHypDigi.h:63
TString PndHypDigi::GetDetName ( ) const
inline

Definition at line 49 of file PndHypDigi.h.

References fDetName.

Referenced by PndHypStripClusterTask::Exec(), and PndHypDigiStrip::operator==().

49 { return fDetName; }
TString fDetName
Definition: PndHypDigi.h:64
Int_t PndHypDigi::GetFE ( ) const
inline

Definition at line 48 of file PndHypDigi.h.

References fFE.

Referenced by PndHypStripClusterTask::Exec(), and PndHypDigiStrip::operator==().

48 { return fFE;}
Int_t fFE
Definition: PndHypDigi.h:66
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];}
Int_t i
Definition: run_full.C:25
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:62
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:62
virtual void PndHypDigi::print ( )
inlinevirtual

Definition at line 58 of file PndHypDigi.h.

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

Friends And Related Function Documentation

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

Definition at line 26 of file PndHypDigi.h.

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

Member Data Documentation

Double_t PndHypDigi::fCharge
protected

Definition at line 65 of file PndHypDigi.h.

Referenced by AddCharge(), GetCharge(), and PndHypDigiStrip::operator==().

Int_t PndHypDigi::fDetID
protected

Definition at line 63 of file PndHypDigi.h.

Referenced by GetDetID(), and PndHypDigiStrip::operator==().

TString PndHypDigi::fDetName
protected

Definition at line 64 of file PndHypDigi.h.

Referenced by GetDetName(), and PndHypDigiStrip::operator==().

Int_t PndHypDigi::fFE
protected

Definition at line 66 of file PndHypDigi.h.

Referenced by GetFE(), and PndHypDigiStrip::operator==().

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

Definition at line 62 of file PndHypDigi.h.

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


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