FairRoot/PandaRoot
PndHypDigiStrip.cxx
Go to the documentation of this file.
1 #include "PndHypDigiStrip.h"
2 #include "PndHypDigi.h"
3 
5  fChannel(-1)
6 {
7  //fIndex = -1;
8 }
9 
10 PndHypDigiStrip::PndHypDigiStrip(Int_t index, Int_t detID, TString detName, Int_t fe, Int_t chan, Double_t charge):
11  PndHypDigi(index,detID,detName,fe,charge),
12  fChannel(chan)
13 {
14 }
15 
16 // const void PndHypDigiStrip::print(){
17 // // std::cout << *((PndHypStrip*)this) << std::endl;
18 // }
19 
20 // Bool_t const HasNeighbour(const PndHypDigiStrip& d2)
21 // {
22 // return true; // Dummy so far
23 // }
24 
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  }
36 
TString GetDetName() const
Definition: PndHypDigi.h:49
Int_t GetChannel() const
Double_t
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
int fe
Definition: anaLmdDigi.C:67
ClassImp(PndAnaContFact)
Double_t fCharge
Definition: PndHypDigi.h:65
Base class for Digi information.
Definition: PndHypDigi.h:23
Bool_t operator==(const PndHypDigiStrip &d2) const
Double_t GetCharge() const
Definition: PndHypDigi.h:50