FairRoot/PandaRoot
PndSdsDigiTopix4.h
Go to the documentation of this file.
1 // --------------------------------------------------------
2 // ---- PndSdsDigiTopix4 header file ---
3 // ---- Created 19.6.06 by T.Stockmanns ---
4 // --------------------------------------------------------
5 
13 #ifndef PndSdsDigiTopix4_H
14 #define PndSdsDigiTopix4_H
15 
16 #include "PndSdsDigiPixel.h"
17 #include "PndDetectorList.h"
18 
19 #include "TObject.h"
20 #include "TString.h"
21 #include <iostream>
22 #include <vector>
23 
24 
26  {
28  out << "PndSdsDigiTopix4 in Sensor: " << digi.GetSensorID() << " FE: "
29  << digi.GetFE() << " Col/Row " << digi.GetPixelColumn() << "/" << digi.GetPixelRow()
30  << " charge " << digi.GetCharge() << " e"
31  << " timestamp "<< digi.GetTimeStamp()
32  << " leadingEdge " << digi.GetLeadingEdge() << " trailingEdge " << digi.GetTrailingEdge()
33  << " frameCount " << digi.GetFrameCount() << std::endl;
34 
35  //out << std::endl;
36 
37  return out;
38  }
39 
40  public : PndSdsDigiTopix4();
41  PndSdsDigiTopix4(std::vector<Int_t> index, Int_t detID, Int_t sensorID, Int_t fe, Int_t col, Int_t row, UInt_t leadingEdge, UInt_t trailingEdge, UInt_t frameCount, Double_t timeStamp, UInt_t hitcountcorrect, UInt_t hitCounterIndependent, Double_t timeStampIndependent);
42 
43  UInt_t GetLeadingEdge() const { return fLeadingEdge;}
44  UInt_t GetTrailingEdge() const { return fTrailingEdge;}
45  UInt_t GetFrameCount() const { return fFrameCount;}
48  UInt_t GetHitCountCorrect() const {return fHitCountCorrect;}
49 
50  void SetLeadingEdge(UInt_t le) { fLeadingEdge = le;}
51  void SetTrailingEdge(UInt_t te) { fTrailingEdge = te;}
52  void SetFrameCount(UInt_t fc) { fFrameCount = fc;}
53  void SetHitCountIndependent(UInt_t hci) { fHitCountIndependent = hci;}
55  void SetHitCountCorrect(UInt_t hcc) { fHitCountCorrect = hcc;}
56 
58 
59  void Print() {
60  std::cout << *this;
61  }
62 
63 
65  if (this != &pix){
66  this->PndSdsDigiPixel::operator=(pix);
67  }
74  return *this;
75  }
76 
77  template<class Archive>
78  void serialize(Archive & ar, const unsigned int version)
79  {
80  ar & boost::serialization::base_object<PndSdsDigiPixel>(*this);
81  ar & fLeadingEdge;
82  ar & fTrailingEdge;
83  ar & fFrameCount;
84  }
85 
86  private :
87  #ifndef __CINT__ // for BOOST serialization
89 
90  #endif // for BOOST serialization
91  UInt_t fLeadingEdge;
92  UInt_t fTrailingEdge;
93  UInt_t fFrameCount;
97 
99  };
100 
101 #endif
int row
Definition: anaLmdDigi.C:67
Int_t GetPixelRow() const
TClonesArray * digi
Int_t GetSensorID() const
Definition: PndSdsDigi.h:59
void SetTrailingEdge(UInt_t te)
PndSdsDigiPixel & operator=(const PndSdsDigiPixel &pix)
Data class to store the digi output of a pixel module.
Int_t GetPixelColumn() const
int col
Definition: anaLmdDigi.C:67
Double_t GetCharge() const
Definition: PndSdsDigi.h:60
Int_t GetFE() const
Definition: PndSdsDigi.h:57
void SetLeadingEdge(UInt_t le)
UInt_t GetFrameCount() const
void serialize(Archive &ar, const unsigned int version)
Double_t fTimeStampIndependent
UInt_t GetLeadingEdge() const
UInt_t GetTrailingEdge() const
friend class boost::serialization::access
Double_t
ClassDef(PndSdsDigiTopix4, 3)
TFile * out
Definition: reco_muo.C:20
void SetFrameCount(UInt_t fc)
friend std::ostream & operator<<(std::ostream &out, PndSdsDigiTopix4 &digi)
UInt_t GetHitCountIndependent() const
void SetHitCountCorrect(UInt_t hcc)
int fe
Definition: anaLmdDigi.C:67
Double_t GetTimeStampIndependent() const
void SetHitCountIndependent(UInt_t hci)
Data class to store the digi output of a pixel module.
void SetTimeStampIndependent(Double_t tsi)
PndSdsDigiTopix4 & operator=(const PndSdsDigiTopix4 &pix)
UInt_t GetHitCountCorrect() const