-
Notifications
You must be signed in to change notification settings - Fork 0
/
Utils.h
44 lines (39 loc) · 1.06 KB
/
Utils.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
// Copyright (c) 2013 Patrick Huck
#ifndef STROOT_BESCOCKTAIL_UTILS_H_
#define STROOT_BESCOCKTAIL_UTILS_H_
#include <string>
#include <map>
#include <Rtypes.h>
class Utils {
private:
static std::map<std::string, int> createColorMap() {
std::map<std::string, int> m;
m["pion"] = 1;
m["eta"] = kMagenta;
m["etap"] = kYellow+2;
m["omega"] = kGreen+3;
m["phi"] = kCyan-3;
m["jpsi"] = kMagenta+2;
m["ccbar"] = kOrange+7;
return m;
}
public:
Utils();
virtual ~Utils() {}
static double emass;
static double emass2;
static double twoPi;
static double threePi;
static double alpha;
static double mMin;
static double ptMin;
static double ptMax;
static int nBins;
static int nBinsPt;
static double mMax;
static std::map<std::string, int> mColorMap;
static void printInfo(const int&, const int& div = 100);
static const char* getOutFileName(
const std::string&, const double&, const std::string& suffix = "");
};
#endif // STROOT_BESCOCKTAIL_UTILS_H_