FairRoot/PandaRoot
PndSdsDigiTopix4Header.h
Go to the documentation of this file.
1 // --------------------------------------------------------
2 // ---- PndSdsDigiTopix4Header header file ---
3 // ---- Created 21.11.14 by S.Esch ---
4 // --------------------------------------------------------
5 
11 #ifndef PndSdsDigiTopix4Header_H
12 #define PndSdsDigiTopix4Header_H
13 
14 #include "PndSdsDigiPixel.h"
15 #include "PndDetectorList.h"
16 
17 #include "TObject.h"
18 #include "TString.h"
19 #include <iostream>
20 #include <vector>
21 
22 
23 class PndSdsDigiTopix4Header : public TObject
24 {
26  {
27  out << "PndSdsDigiTopix4Header : Frame Count" << digi.GetFrameCount()
28  << " FE: "<< digi.GetFE()
29  << " Chip Address " << digi.GetChipAddress()
30  << " Error Correction Code "<< digi.GetECC()
31  << " Frame Count Independent "<< digi.GetFrameCountIndependent()
32  << std::endl;
33 
34  return out;
35  }
36 
37  public :
39  PndSdsDigiTopix4Header(UInt_t framecount, Int_t fe, UInt_t chipaddress, UInt_t ecc, UInt_t framecountindependent, Int_t deltaframecount, UInt_t numberofevents, UInt_t numberofeventsinframe);
40 
42 
44  SetFE(pix.GetFE());
46  SetECC(pix.GetECC());
51  return *this;
52  }
53 
54  UInt_t GetFrameCount() const { return fFrameCount;}
55  UInt_t GetFE() const { return fFE;}
56  UInt_t GetChipAddress() const { return fChipAddress;}
57  UInt_t GetECC() const { return fECC;}
59  Int_t GetDeltaFrameCount() const { return fDeltaFrameCount;}
60  UInt_t GetNumberOfEvents() const { return fNumberOfEvents;}
61  UInt_t GetNumberOfEventsInFrame() const { return fNumberOfEvents;}
62 
63  void SetFrameCount(UInt_t fc) { fFrameCount = fc;}
64  void SetFE(Int_t fe) { fFE = fe;}
65  void SetChipAddress(UInt_t ca) { fChipAddress = ca;}
66  void SetECC(UInt_t ecc) { fECC = ecc;}
68  void SetDeltaFrameCount(Int_t dfc) { fDeltaFrameCount = dfc;}
69  void SetNumberOfEvents(UInt_t noe) { fNumberOfEvents = noe;}
71 
73 
74  void Print() {
75  std::cout << *this;
76  }
77 
78 
79  private :
80  UInt_t fFrameCount;
81  Int_t fFE;
82  UInt_t fChipAddress;
83  UInt_t fECC;
88 
90 };
91 
92 #endif
void SetNumberOfEvents(UInt_t noe)
TClonesArray * digi
UInt_t GetFrameCountIndependent() const
void SetNumberOfEventsInFrame(UInt_t noe)
friend std::ostream & operator<<(std::ostream &out, PndSdsDigiTopix4Header &digi)
ClassDef(PndSdsDigiTopix4Header, 1)
void SetDeltaFrameCount(Int_t dfc)
UInt_t GetNumberOfEventsInFrame() const
TFile * out
Definition: reco_muo.C:20
Data class to store the header of topix4 frames.
void SetFrameCountIndependent(UInt_t fc)
PndSdsDigiTopix4Header & operator=(const PndSdsDigiTopix4Header &pix)
int fe
Definition: anaLmdDigi.C:67