-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheventlist.h
71 lines (60 loc) · 1.44 KB
/
eventlist.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// .
// ..: P. Chang, [email protected]
#ifndef eventlist_cc
#define eventlist_cc
// C/C++
#include <algorithm>
#include <fstream>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
#include <stdarg.h>
#include <functional>
#include <cmath>
#include <sstream>
// ROOT
#include "TBenchmark.h"
#include "TBits.h"
#include "TChain.h"
#include "TFile.h"
#include "TTree.h"
#include "TBranch.h"
#include "TLeaf.h"
#include "TH1.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TChainElement.h"
#include "TTreeCache.h"
#include "TTreePerfStats.h"
#include "TStopwatch.h"
#include "TSystem.h"
#include "TString.h"
#include "TLorentzVector.h"
#include "Math/LorentzVector.h"
#include "stringutil.h"
#include "printutil.h"
//#define MAP std::unordered_map
//#define STRING std::string
#define MAP std::map
#define STRING TString
using namespace std;
namespace RooUtil
{
///////////////////////////////////////////////////////////////////////////////////////////////
// Event List class
///////////////////////////////////////////////////////////////////////////////////////////////
class EventList
{
public:
std::vector<std::vector<int>> event_list;
EventList();
EventList( TString filename, TString delim=":" );
~EventList();
void load( TString, TString=":" );
bool has( int, int, int );
};
}
#endif