BmnRoot
Loading...
Searching...
No Matches
BmnDaqBuffer.h
Go to the documentation of this file.
1
7#ifndef BMNDAQBUFFER_H
8#define BMNDAQBUFFER_H 1
9
10#include <map>
11#include <string>
12#include <vector>
13
14#include "BmnDigi.h"
15
34{
35 public:
36
39
40
44 Double_t GetFirstTime() const;
45
46
51 Double_t GetFirstTime(Int_t iDet) const;
52
53
57 Double_t GetLastTime() const;
58
59
64 Double_t GetLastTime(Int_t iDet) const;
65
66
71 BmnDigi* GetNextData(Int_t iDet);
72
73
82 BmnDigi* GetNextData(Int_t iDet, Double_t time);
83
84
88 Int_t GetSize() const;
89
90
95 Int_t GetSize(Int_t det) const;
96
97
101 void InsertData(BmnDigi* digi);
102
103
107 static BmnDaqBuffer* Instance();
108
109
111 void PrintStatus() const;
112
113
115 std::string ToString() const;
116
117
118 private:
119
120
122 std::multimap<Double_t, BmnDigi*> fData[kNOFDETS];
123
124
126 static BmnDaqBuffer* fgInstance;
127
128
132 BmnDaqBuffer();
133
134
136 BmnDaqBuffer(const BmnDaqBuffer&) = delete;
137
138
140 BmnDaqBuffer& operator=(const BmnDaqBuffer&) = delete;
141};
142
143#endif /* BMNDAQBUFFER_H */
@ kNOFDETS
Singleton buffer class for BMN raw data.
BmnDigi * GetNextData(Int_t iDet)
Pointer to next raw data object for a given detector.
Double_t GetFirstTime() const
Double_t GetLastTime() const
std::string ToString() const
static BmnDaqBuffer * Instance()
void InsertData(BmnDigi *digi)
Int_t GetSize() const
void PrintStatus() const
Base class for persistent representation of digital information.
Definition BmnDigi.h:44