-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathCRTTiming.h
More file actions
48 lines (38 loc) · 935 Bytes
/
CRTTiming.h
File metadata and controls
48 lines (38 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef CRT_TIMING_H
#define CRT_TIMING_H
#include <TTree.h>
#include <vector>
#include <utility>
#include <map>
//#include "./CRTRawTree.h"
//#include "./CRTPreProcessTree.h"
#include "icaruscode/CRT/CRTDecoder/CRTRawTree.h"
#include "icaruscode/CRT/CRTDecoder/CRTPreProcessTree.h"
using std::map;
using std::vector;
using std::pair;
using std::make_pair;
namespace icarus {
namespace crt {
class CRTTiming;
}
}
class icarus::crt::CRTTiming {
public:
explicit CRTTiming(CRTPreProcessTree &raw);
explicit CRTTiming(CRTRawTree &raw);
void TimeOrder();
const map<size_t,size_t>* GetRawToOrderedMap();
const map<size_t,size_t>* GetOrderedToRawMap();
void DumpSortedTimes(size_t nmax);
void DumpRawTimes(size_t nmax);
private:
const CRTRawTree* fRaw;
const CRTPreProcessTree* fPre;
map<size_t,size_t> fRawToOrdered;
map<size_t,size_t> fOrderedToRaw;
bool fHasSort;
char fType;
size_t fNEntries;
};
#endif