FairRoot/PandaRoot
Public Member Functions | Private Attributes | Friends | List of all members
PndSdsPixel Class Reference

#include <PndSdsPixel.h>

Public Member Functions

 PndSdsPixel ()
 
 PndSdsPixel (Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t charge, int index=-1)
 
void SetCol (Int_t col)
 
void SetRow (Int_t row)
 
void SetCharge (Double_t charge)
 
void SetSensorID (Int_t sensorID)
 
void SetFE (Int_t fe)
 
void SetAddNoise (Double_t addnoise)
 
Int_t GetCol () const
 
Int_t GetRow () const
 
Double_t GetCharge () const
 
Int_t GetSensorID () const
 
Int_t GetFE () const
 
std::vector< int > GetMCIndex ()
 
int GetFirstMCIndex ()
 
Double_t GetAddNoise () const
 
void AddCharge (Double_t charge)
 
void AddMCIndex (int i)
 

Private Attributes

Int_t fFe
 
Int_t fCol
 
Int_t fRow
 
Double_t fCharge
 
Int_t fSensorID
 
std::vector< int > fMCIndex
 List of indices of the corresponding MC hits. More...
 
Double_t fAddNoise
 

Friends

std::ostreamoperator<< (std::ostream &out, PndSdsPixel pixel)
 

Detailed Description

Definition at line 9 of file PndSdsPixel.h.

Constructor & Destructor Documentation

PndSdsPixel::PndSdsPixel ( )
inline

Definition at line 12 of file PndSdsPixel.h.

12  :
13  fFe(-1),
14  fCol(-1),
15  fRow(-1),
16  fCharge(-1.0),
17  fSensorID(-1),
18  fMCIndex(),
19  fAddNoise(0.)
20  {};
Double_t fAddNoise
Definition: PndSdsPixel.h:72
Double_t fCharge
Definition: PndSdsPixel.h:69
Int_t fCol
Definition: PndSdsPixel.h:67
Int_t fSensorID
Definition: PndSdsPixel.h:70
std::vector< int > fMCIndex
List of indices of the corresponding MC hits.
Definition: PndSdsPixel.h:71
Int_t fRow
Definition: PndSdsPixel.h:68
PndSdsPixel::PndSdsPixel ( Int_t  sensorID,
Int_t  fe,
Int_t  col,
Int_t  row,
Double_t  charge,
int  index = -1 
)
inline

Definition at line 22 of file PndSdsPixel.h.

References fMCIndex.

22  :
23  fFe(fe),
24  fCol(col),
25  fRow(row),
26  fCharge(charge),
27  fSensorID(sensorID),
28  fMCIndex(),
29  fAddNoise(0.)
30  {
31  if (index >= 0) fMCIndex.push_back(index);
32  };
Double_t fAddNoise
Definition: PndSdsPixel.h:72
Double_t fCharge
Definition: PndSdsPixel.h:69
int row
Definition: anaLmdDigi.C:67
int col
Definition: anaLmdDigi.C:67
Int_t fCol
Definition: PndSdsPixel.h:67
Int_t fSensorID
Definition: PndSdsPixel.h:70
std::vector< int > fMCIndex
List of indices of the corresponding MC hits.
Definition: PndSdsPixel.h:71
Int_t fRow
Definition: PndSdsPixel.h:68
int fe
Definition: anaLmdDigi.C:67

Member Function Documentation

void PndSdsPixel::AddCharge ( Double_t  charge)
inline

Definition at line 54 of file PndSdsPixel.h.

References fCharge.

54 {fCharge+= charge;};
Double_t fCharge
Definition: PndSdsPixel.h:69
void PndSdsPixel::AddMCIndex ( int  i)
inline

Definition at line 55 of file PndSdsPixel.h.

References fMCIndex.

Referenced by PndSdsHybridHitProducer::AddHit().

55 {fMCIndex.push_back(i);};
Int_t i
Definition: run_full.C:25
std::vector< int > fMCIndex
List of indices of the corresponding MC hits.
Definition: PndSdsPixel.h:71
Double_t PndSdsPixel::GetAddNoise ( ) const
inline

Definition at line 52 of file PndSdsPixel.h.

References fAddNoise.

52 {return fAddNoise;};
Double_t fAddNoise
Definition: PndSdsPixel.h:72
Double_t PndSdsPixel::GetCharge ( ) const
inline

Definition at line 43 of file PndSdsPixel.h.

References fCharge.

Referenced by PndSdsHybridHitProducer::AddHit().

43 {return fCharge;};
Double_t fCharge
Definition: PndSdsPixel.h:69
Int_t PndSdsPixel::GetCol ( ) const
inline

Definition at line 41 of file PndSdsPixel.h.

References fCol.

Referenced by PndSdsHybridHitProducer::AddHit(), PndSdsCalcPixel::CalcPixel(), and PndSdsCalcPixel::GetPixels().

41 {return fCol;};
Int_t fCol
Definition: PndSdsPixel.h:67
Int_t PndSdsPixel::GetFE ( ) const
inline

Definition at line 45 of file PndSdsPixel.h.

References fFe.

Referenced by PndSdsHybridHitProducer::AddHit().

45 {return fFe;};
int PndSdsPixel::GetFirstMCIndex ( )
inline

Definition at line 47 of file PndSdsPixel.h.

References fMCIndex.

47  {
48  if (fMCIndex.size() > 0)
49  return fMCIndex[0];
50  return -2;
51  };
std::vector< int > fMCIndex
List of indices of the corresponding MC hits.
Definition: PndSdsPixel.h:71
std::vector<int> PndSdsPixel::GetMCIndex ( )
inline

Definition at line 46 of file PndSdsPixel.h.

References fMCIndex.

46 {return fMCIndex;};
std::vector< int > fMCIndex
List of indices of the corresponding MC hits.
Definition: PndSdsPixel.h:71
Int_t PndSdsPixel::GetRow ( ) const
inline

Definition at line 42 of file PndSdsPixel.h.

References fRow.

Referenced by PndSdsHybridHitProducer::AddHit(), PndSdsCalcPixel::CalcPixel(), and PndSdsCalcPixel::GetPixels().

42 {return fRow;};
Int_t fRow
Definition: PndSdsPixel.h:68
Int_t PndSdsPixel::GetSensorID ( ) const
inline

Definition at line 44 of file PndSdsPixel.h.

References fSensorID.

Referenced by PndSdsHybridHitProducer::AddHit().

44 {return fSensorID;};
Int_t fSensorID
Definition: PndSdsPixel.h:70
void PndSdsPixel::SetAddNoise ( Double_t  addnoise)
inline

Definition at line 39 of file PndSdsPixel.h.

References fAddNoise.

Referenced by PndSdsCalcFePixel::CalcFEHits().

39 {fAddNoise=addnoise;};
Double_t fAddNoise
Definition: PndSdsPixel.h:72
void PndSdsPixel::SetCharge ( Double_t  charge)
inline

Definition at line 36 of file PndSdsPixel.h.

References fCharge.

Referenced by PndSdsCalcPixel::CalcPixel(), PndSdsCalcPixel::GetPixels(), and PndSdsCalcPixelDif::InjectPixelCharge().

36 {fCharge = charge;};
Double_t fCharge
Definition: PndSdsPixel.h:69
void PndSdsPixel::SetCol ( Int_t  col)
inline

Definition at line 34 of file PndSdsPixel.h.

References col, and fCol.

Referenced by PndSdsCalcPixel::CalcStartPixel(), PndSdsCalcPixel::GetPixels(), and PndSdsCalcPixelDif::InjectPixelCharge().

34 {fCol = col;};
int col
Definition: anaLmdDigi.C:67
Int_t fCol
Definition: PndSdsPixel.h:67
void PndSdsPixel::SetFE ( Int_t  fe)
inline

Definition at line 38 of file PndSdsPixel.h.

References fe, and fFe.

38 {fFe = fe;};
int fe
Definition: anaLmdDigi.C:67
void PndSdsPixel::SetRow ( Int_t  row)
inline

Definition at line 35 of file PndSdsPixel.h.

References fRow, and row.

Referenced by PndSdsCalcPixel::CalcStartPixel(), PndSdsCalcPixel::GetPixels(), and PndSdsCalcPixelDif::InjectPixelCharge().

35 {fRow = row;};
int row
Definition: anaLmdDigi.C:67
Int_t fRow
Definition: PndSdsPixel.h:68
void PndSdsPixel::SetSensorID ( Int_t  sensorID)
inline

Definition at line 37 of file PndSdsPixel.h.

References fSensorID.

37 {fSensorID = sensorID;};
Int_t fSensorID
Definition: PndSdsPixel.h:70

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream out,
PndSdsPixel  pixel 
)
friend

Definition at line 57 of file PndSdsPixel.h.

58  {
59  out << "Detector: " << pixel.GetSensorID() << " FE: " << pixel.GetFE() << " Pixel (C/R): " << pixel.GetCol() << " " << pixel.GetRow()
60  << " Charge: " << pixel.GetCharge() << " from MCHit: " << pixel.GetFirstMCIndex();
61  return out;
62  };
Int_t GetSensorID() const
Definition: PndSdsPixel.h:44
Int_t GetCol() const
Definition: PndSdsPixel.h:41
Int_t GetFE() const
Definition: PndSdsPixel.h:45
int GetFirstMCIndex()
Definition: PndSdsPixel.h:47
Int_t GetRow() const
Definition: PndSdsPixel.h:42
TFile * out
Definition: reco_muo.C:20
Double_t GetCharge() const
Definition: PndSdsPixel.h:43

Member Data Documentation

Double_t PndSdsPixel::fAddNoise
private

Definition at line 72 of file PndSdsPixel.h.

Referenced by GetAddNoise(), and SetAddNoise().

Double_t PndSdsPixel::fCharge
private

Definition at line 69 of file PndSdsPixel.h.

Referenced by AddCharge(), GetCharge(), and SetCharge().

Int_t PndSdsPixel::fCol
private

Definition at line 67 of file PndSdsPixel.h.

Referenced by GetCol(), and SetCol().

Int_t PndSdsPixel::fFe
private

Definition at line 62 of file PndSdsPixel.h.

Referenced by GetFE(), and SetFE().

std::vector<int> PndSdsPixel::fMCIndex
private

List of indices of the corresponding MC hits.

Definition at line 71 of file PndSdsPixel.h.

Referenced by AddMCIndex(), GetFirstMCIndex(), GetMCIndex(), and PndSdsPixel().

Int_t PndSdsPixel::fRow
private

Definition at line 68 of file PndSdsPixel.h.

Referenced by GetRow(), and SetRow().

Int_t PndSdsPixel::fSensorID
private

Definition at line 70 of file PndSdsPixel.h.

Referenced by GetSensorID(), and SetSensorID().


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