FairRoot/PandaRoot
PndSdsDigiPixelMCInfo.h
Go to the documentation of this file.
1 /*
2  * PndSdsDigiPixelMCInfo.h
3  *
4  * Created on: Oct 25, 2010
5  * Author: esch
6  * brief class to save additional information for a digi
7  *
8  *
9  */
10 
11 
12 #ifndef PNDSDSDIGIPIXELMCINFO_H_
13 #define PNDSDSDIGIPIXELMCINFO_H_
14 
15 #include "PndSdsDigiPixel.h"
16 
18 
20  out << "PndSdsDigiPixelMCInfo in: " << digi.GetSensorID() << " FE: "
21  << digi.GetFE() << " Col/Row " << digi.GetPixelColumn() << "/" << digi.GetPixelRow()
22  << " charge " << digi.GetCharge() << " e"
23  << " timestamp "<< digi.GetTimeStamp()
24  << ", from Point(s) ";
25  std::vector<Int_t>indices = digi.GetIndices();
26  for (unsigned int i = 0; i < indices.size(); i++){
27  std::cout << indices[i] << " ";
28  }
29 
30  out << " MCCharge: " << digi.GetMCCharge() << " AddNoise: " << digi.GetAddNoise() << " TimeWalk: " << digi.GetTimeWalk() << " TimeWalkCorrection: " << digi.GetTimeWalkCorrection();
31  std::cout << std::endl;
32 
33  return out;
34  }
35 public:
37  PndSdsDigiPixelMCInfo(std::vector<Int_t> index, Int_t detID, Int_t sensorID, Int_t fe, Int_t col, Int_t row, Double_t totcharge, Double_t timeStamp, Double_t chargewonoise, Double_t addnoise, Double_t timewalk, Double_t timewalkcorrection, Double_t tof, Double_t digicharge);
38  virtual ~PndSdsDigiPixelMCInfo();
39 
40  void SetMCCharge(Double_t charge) {fMCCharge = charge;}
42 
43  void SetAddNoise(Double_t charge) {fAddNoise = charge;}
45 
46  void SetTimeWalk(Double_t timewalk) {fTimeWalk = timewalk;}
48 
49  void SetTimeWalkCorrection(Double_t timewalkcorrection) {fTimeWalkCorrection = timewalkcorrection;}
51 
52  void SetTof(Double_t tof) {fTof = tof;}
53  Double_t GetTof() {return fTof;}
54 
55  void SetDigiCharge(Double_t digicharge) {fDigiCharge = digicharge;}
57 
58 private:
59  Double_t fMCCharge; // MC Charge in a Pixel w/o gaussian noise
60  Double_t fAddNoise; // gaussian noise for a pixel
64  Double_t fDigiCharge; // MC Charge in a Pixel with gaussian noise
65 
67 
68 };
69 
70 #endif /* PNDSDSDIGIPIXELMCINFO_H_ */
int row
Definition: anaLmdDigi.C:67
Int_t GetPixelRow() const
TClonesArray * digi
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
Int_t i
Definition: run_full.C:25
Int_t GetPixelColumn() const
friend std::ostream & operator<<(std::ostream &out, PndSdsDigiPixelMCInfo &digi)
int col
Definition: anaLmdDigi.C:67
Double_t GetCharge() const
Definition: PndSdsDigi.h:60
void SetTof(Double_t tof)
Int_t GetFE() const
Definition: PndSdsDigi.h:57
void SetDigiCharge(Double_t digicharge)
void SetAddNoise(Double_t charge)
Double_t
TFile * out
Definition: reco_muo.C:20
void SetTimeWalkCorrection(Double_t timewalkcorrection)
void SetTimeWalk(Double_t timewalk)
std::vector< Int_t > GetIndices() const
Definition: PndSdsDigi.h:62
ClassDef(PndSdsDigiPixelMCInfo, 2)
int fe
Definition: anaLmdDigi.C:67
void SetMCCharge(Double_t charge)
Data class to store the digi output of a pixel module.