Line | |
---|
1 | /** |
---|
2 | * John Idarraga <idarraga@cern.ch> |
---|
3 | */ |
---|
4 | |
---|
5 | |
---|
6 | #include "AllPix_Frames_WriteToEntuple.h" |
---|
7 | #include "allpix_dm.h" |
---|
8 | |
---|
9 | #include "TString.h" |
---|
10 | |
---|
11 | #include <vector> |
---|
12 | #include <map> |
---|
13 | |
---|
14 | using namespace std; |
---|
15 | |
---|
16 | namespace eudaq { |
---|
17 | |
---|
18 | class mdm { |
---|
19 | |
---|
20 | public: |
---|
21 | |
---|
22 | mdm(); |
---|
23 | ~mdm(){}; |
---|
24 | |
---|
25 | int getndet(){return m_nOfDetectors;}; |
---|
26 | void dofill(int, int, int, int, int); |
---|
27 | void writetontuple(int, int); |
---|
28 | bool isInitialized(){return m_initialized;}; |
---|
29 | void init(vector<int>, TString, int, int); |
---|
30 | map<int, int> getDetIdToIndexMap(){return m_detIdToIndex;}; |
---|
31 | int * getDetIdToIndexArray(){return m_detIdToIndexArray;}; |
---|
32 | //void clearframe(int fId){m_frames[m_detIdToIndex[fId]]->CleanUpMatrix();}; |
---|
33 | |
---|
34 | private: |
---|
35 | |
---|
36 | int m_nOfDetectors; |
---|
37 | TString m_dataset; |
---|
38 | // map index in frames handler to det Id |
---|
39 | map<int, int> m_detIdToIndex; // key is the id --> value is the index |
---|
40 | // copy of previous map in C-style array for limitations with serialization |
---|
41 | int * m_detIdToIndexArray; |
---|
42 | |
---|
43 | TString m_tempdir; |
---|
44 | FramesHandler ** m_frames; |
---|
45 | bool m_initialized; |
---|
46 | |
---|
47 | }; |
---|
48 | |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.