FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PndHypDigiStrip Class Reference

#include <PndHypDigiStrip.h>

Inheritance diagram for PndHypDigiStrip:
PndHypDigi

Public Member Functions

 PndHypDigiStrip ()
 
 PndHypDigiStrip (Int_t index, Int_t detID, TString detName, Int_t fe, Int_t chan, Double_t charge)
 
 ~PndHypDigiStrip ()
 
Int_t GetChannel () const
 
Bool_t operator== (const PndHypDigiStrip &d2) const
 
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
 

Private Member Functions

 ClassDef (PndHypDigiStrip, 2)
 

Private Attributes

Int_t fChannel
 

Detailed Description

MvdDigiStrip.h
Author
R.Kliemt r.kli.nosp@m.emt@.nosp@m.physi.nosp@m.k.tu.nosp@m.-dres.nosp@m.den..nosp@m.de

++ An addition to the MvdHit which only stores the backcalculated 3d-space point this class stores the fired strips

Definition at line 24 of file PndHypDigiStrip.h.

Constructor & Destructor Documentation

PndHypDigiStrip::PndHypDigiStrip ( )

Definition at line 4 of file PndHypDigiStrip.cxx.

4  :
5  fChannel(-1)
6 {
7  //fIndex = -1;
8 }
PndHypDigiStrip::PndHypDigiStrip ( Int_t  index,
Int_t  detID,
TString  detName,
Int_t  fe,
Int_t  chan,
Double_t  charge 
)

Definition at line 10 of file PndHypDigiStrip.cxx.

10  :
11  PndHypDigi(index,detID,detName,fe,charge),
12  fChannel(chan)
13 {
14 }
int fe
Definition: anaLmdDigi.C:67
PndHypDigiStrip::~PndHypDigiStrip ( )
inline

Definition at line 29 of file PndHypDigiStrip.h.

29 {};

Member Function Documentation

void PndHypDigi::AddCharge ( double  charge)
inlineinherited

Definition at line 56 of file PndHypDigi.h.

References PndHypDigi::fCharge.

56 {fCharge += charge;}
Double_t fCharge
Definition: PndHypDigi.h:65
void PndHypDigi::AddIndex ( int  index)
inlineinherited

Definition at line 55 of file PndHypDigi.h.

References PndHypDigi::fIndex.

55 {fIndex.push_back(index);}
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:62
PndHypDigiStrip::ClassDef ( PndHypDigiStrip  ,
 
)
private
PndHypDigi::ClassDef ( PndHypDigi  ,
 
)
protectedinherited
Int_t PndHypDigiStrip::GetChannel ( ) const
inline

Definition at line 35 of file PndHypDigiStrip.h.

References fChannel.

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

35 { return fChannel; }
Double_t PndHypDigi::GetCharge ( ) const
inlineinherited

Definition at line 50 of file PndHypDigi.h.

References PndHypDigi::fCharge.

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

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

Definition at line 51 of file PndHypDigi.h.

References PndHypDigi::fDetID.

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

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

Definition at line 49 of file PndHypDigi.h.

References PndHypDigi::fDetName.

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

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

Definition at line 48 of file PndHypDigi.h.

References PndHypDigi::fFE.

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

48 { return fFE;}
Int_t fFE
Definition: PndHypDigi.h:66
Int_t PndHypDigi::GetIndex ( int  i = 0) const
inlineinherited

Definition at line 53 of file PndHypDigi.h.

References PndHypDigi::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
inlineinherited

Definition at line 52 of file PndHypDigi.h.

References PndHypDigi::fIndex.

52 { return fIndex;}
std::vector< Int_t > fIndex
Definition: PndHypDigi.h:62
Bool_t PndHypDigiStrip::operator== ( const PndHypDigiStrip d2) const

Definition at line 25 of file PndHypDigiStrip.cxx.

References fChannel, PndHypDigi::fCharge, PndHypDigi::fDetID, PndHypDigi::fDetName, PndHypDigi::fFE, GetChannel(), PndHypDigi::GetCharge(), PndHypDigi::GetDetID(), PndHypDigi::GetDetName(), and PndHypDigi::GetFE().

26  {
27  return ( //fIndex==d2.GetIndex()
28  fDetID==d2.GetDetID()
29  && fDetName==d2.GetDetName()
30  && fFE==d2.GetFE()
31  && fChannel==d2.GetChannel()
32  && fCharge==d2.GetCharge()
33  // && fMCID==d2.GetMCID()
34  );
35  }
TString GetDetName() const
Definition: PndHypDigi.h:49
Int_t GetChannel() const
Int_t fDetID
Definition: PndHypDigi.h:63
Int_t GetFE() const
Definition: PndHypDigi.h:48
Int_t fFE
Definition: PndHypDigi.h:66
Int_t GetDetID() const
Definition: PndHypDigi.h:51
TString fDetName
Definition: PndHypDigi.h:64
Double_t fCharge
Definition: PndHypDigi.h:65
Double_t GetCharge() const
Definition: PndHypDigi.h:50
virtual void PndHypDigi::print ( )
inlinevirtualinherited

Definition at line 58 of file PndHypDigi.h.

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

Member Data Documentation

Int_t PndHypDigiStrip::fChannel
private

Definition at line 59 of file PndHypDigiStrip.h.

Referenced by GetChannel(), and operator==().

Double_t PndHypDigi::fCharge
protectedinherited

Definition at line 65 of file PndHypDigi.h.

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

Int_t PndHypDigi::fDetID
protectedinherited

Definition at line 63 of file PndHypDigi.h.

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

TString PndHypDigi::fDetName
protectedinherited

Definition at line 64 of file PndHypDigi.h.

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

Int_t PndHypDigi::fFE
protectedinherited

Definition at line 66 of file PndHypDigi.h.

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

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

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