8 #ifndef PNDMVDREADINTOPIX4TBDATA_H_ 9 #define PNDMVDREADINTOPIX4TBDATA_H_ 58 std::cout <<
"number of entires " << fileName.size() << std::endl;
59 for (
int i = 0;
i < fileName.size();
i++) {
60 std::cout <<
i <<
" " << fileName[
i] << std::endl;
62 fFileNames = fileName;
67 std::vector<std::string> names;
68 names.push_back(fileName);
74 Bool_t
ReadInData(std::vector<std::vector<PndSdsDigiTopix4>> &data);
78 std::vector<std::vector<PndSdsDigiTopix4>>
AnalyzeData(std::vector<ULong64_t> &rawData, Double_t clockFrequency);
92 void SetFE(Int_t val) { fFE = val; }
121 std::vector<std::string> fFileNames;
122 std::ifstream *fFileHandle;
123 Double_t fClockFrequency;
124 Double_t fTimeStampCorrection;
126 std::vector<int> fStatusValues;
128 UInt_t fOldFrameCount;
129 UInt_t fOldAllHeaderCount;
131 UInt_t fSuperFrameCount;
132 UInt_t fNonSequentialFC;
133 UInt_t fHammingLossFrameCount;
134 UInt_t fCRCLossFrameCount;
136 UInt_t fTotalHitCount;
137 UInt_t fPreFrameLossHitCount;
138 UInt_t fHammingLossHitCount;
139 UInt_t fCRCLossHitCount;
140 UInt_t fCorrectHitCount;
143 UInt_t fNFilteredHits;
149 Bool_t fHeaderPresent;
150 Bool_t fTrailerPresent;
152 UInt_t fDoubleHeader;
153 UInt_t fDoubleTrailer;
155 UInt_t fTotalHeaderCount;
156 UInt_t fTotalTrailerCount;
158 UInt_t fTotalFrameCount;
159 UInt_t fCorrectFrameCount;
165 std::vector<ULong64_t> fToPixFrame;
UInt_t GetNonSequenctialFC() const
std::vector< std::vector< PndSdsDigiTopix4 > > AnalyzeData(std::vector< ULong64_t > &rawData, Double_t clockFrequency)
Data class to store the digi output of a pixel module.
UInt_t GetDoubleTrailer() const
PndMvdReadInToPix4TBData()
Bool_t HitToFilter(PndSdsDigiTopix4 &hit)
UInt_t GetHammingLossFrameCount() const
UInt_t GetCorrectFrameCount() const
UInt_t GetPreFrameLossHitCount() const
UInt_t GetCorrectHitCount() const
Int_t GetDeltaFrameCount()
std::vector< int > GetStatusValues() const
UInt_t GetCRCLossHitCount() const
void SetVerbose(Int_t val)
UInt_t GetCRCLossFrameCount() const
UInt_t GetHammingLossHitCount() const
PndSdsDigiTopix4 ProcessData(ULong64_t &data, ToPix4::frameHeader &header, Double_t &clockFrequency)
Bool_t ReadInData(std::vector< std::vector< PndSdsDigiTopix4 >> &data)
UInt_t GetTotalHitCount() const
UInt_t GetDoubleHeader() const
void SetTimeStampCorrection(Double_t val)
virtual ~PndMvdReadInToPix4TBData()
Base interface class for data storage and manipulation. Compatible with IO classes from MRF Suite...
UInt_t GetTotalHeaderCount() const
void SetClockFrequency(Double_t val)
std::vector< PndSdsDigiTopix4 > AnalyzeToPixFrame(Double_t clockFrequency)
UInt_t GetTotalTrailerCount() const
virtual Bool_t ReadInDataFromFile(TMrfData_8b *&data)
void SetFileName(std::vector< std::string > fileName)
bool BuildFrame(ULong64_t &rawData)
UInt_t GetTotalFrameCount() const
void SetFilter(Bool_t val)
bool CheckDataIntegrity(std::vector< ULong64_t > topix4Frame)
void SetFileName(std::string fileName)
UInt_t GetSuperFrameCount() const