All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRTTiming.h
Go to the documentation of this file.
1 #ifndef CRT_TIMING_H
2 #define CRT_TIMING_H
3 
4 #include <TTree.h>
5 
6 #include <vector>
7 #include <utility>
8 #include <map>
9 
10 //#include "./CRTRawTree.h"
11 //#include "./CRTPreProcessTree.h"
12 
15 
16 using std::map;
17 using std::vector;
18 using std::pair;
19 using std::make_pair;
20 
21 namespace icarus {
22  namespace crt {
23  class CRTTiming;
24  }
25 }
26 
28 
29  public:
30  explicit CRTTiming(CRTPreProcessTree &raw);
31  explicit CRTTiming(CRTRawTree &raw);
32  void TimeOrder();
33  const map<size_t,size_t>* GetRawToOrderedMap();
34  const map<size_t,size_t>* GetOrderedToRawMap();
35  void DumpSortedTimes(size_t nmax);
36  void DumpRawTimes(size_t nmax);
37 
38  private:
39  const CRTRawTree* fRaw;
41  map<size_t,size_t> fRawToOrdered;
42  map<size_t,size_t> fOrderedToRaw;
43  bool fHasSort;
44  char fType;
45  size_t fNEntries;
46 };
47 
48 #endif
map< size_t, size_t > fRawToOrdered
Definition: CRTTiming.h:41
CRTTiming(CRTPreProcessTree &raw)
Definition: CRTTiming.cc:10
const map< size_t, size_t > * GetRawToOrderedMap()
Definition: CRTTiming.cc:51
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
map< size_t, size_t > fOrderedToRaw
Definition: CRTTiming.h:42
void DumpRawTimes(size_t nmax)
Definition: CRTTiming.cc:75
void DumpSortedTimes(size_t nmax)
Definition: CRTTiming.cc:65
const CRTPreProcessTree * fPre
Definition: CRTTiming.h:40
const CRTRawTree * fRaw
Definition: CRTTiming.h:39
process_name crt
const map< size_t, size_t > * GetOrderedToRawMap()
Definition: CRTTiming.cc:58