ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/Tools/tools.h
Revision: 1.1
Committed: Sun Aug 29 18:25:19 2010 UTC (14 years, 8 months ago) by fgolf
Content type: text/plain
Branch: MAIN
Log Message:
some tools useful for a variety of studies

File Contents

# Content
1 // -*- C++ -*-
2
3 #ifndef TOOLS_H
4 #define TOOLS_H
5
6 #include "TH1F.h"
7 #include "TH2F.h"
8 #include "TH3F.h"
9 #include "TVector3.h"
10 #include <algorithm>
11 #include <vector>
12 #include <set>
13 #include "Math/VectorUtil.h"
14
15 using std::vector;
16
17 struct DorkyEventIdentifier {
18 // this is a workaround for not having unique event id's in MC
19 DorkyEventIdentifier (class CMS2 &cms2);
20 DorkyEventIdentifier (unsigned long int r, unsigned long int e, unsigned long int l);
21 unsigned long int run, event, lumi_section;
22 float trks_d0;
23 float trks_pt, trks_eta, trks_phi;
24 bool operator < (const DorkyEventIdentifier &) const;
25 bool operator == (const DorkyEventIdentifier &) const;
26 };
27
28 extern std::set<DorkyEventIdentifier> already_seen;
29
30 bool is_duplicate (const DorkyEventIdentifier &id);
31
32 void saveHist(const char* filename, const char* pat="*");
33
34 extern class TDirectory *histo_directory;
35 #endif