-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTStarJetPicoDefinitions.h
92 lines (66 loc) · 2.72 KB
/
TStarJetPicoDefinitions.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef __TSTARJETPICODEFINITIONS__HH
#define __TSTARJETPICODEFINITIONS__HH
#include <TObject.h>
#include <iostream>
// used for V0 cuts
#define __STARJETPICO_K0_PID 310
#define __STARJETPICO_LAMBDA_PID 3122
#define __STARJETPICO_ANTILAMBDA_PID -3122
#define __STARJETPICO_FALSE_RETURN_PID -1
#define __STARJETPICO_MASS_K0 0.497648
#define __STARJETPICO_MASS_LAMBDA 1.115683
// used in Reader
#define __STARJETPICO_ELECTRON_PID 11
#define __STARJETPICO_MASS_ELECTRON 0.000511
#define _NUMBER_OF_EVENT_FEATURES 7
class TStarJetPicoDefinitions : public TObject
{
public:
enum EVENT_FEATURES
{
_EVENT_WEIGHT = 0, // this is for x-section weighting
_EVENT_MEDIAN_PT = 1, // from fj for example
_EVENT_MEDIAN_PT_4VECT = 2,
_EVENT_SIGMA = 3,
_EVENT_SIGMA_4VECT = 4,
_EVENT_MEAN_AREA = 5,
_EVENT_MEAN_AREA_4VECT = 6
};
static Int_t DebugLevel() {return gDebugLevel;}
static void SetDebugLevel(Int_t level)
{
gDebugLevel = level;
}
private:
TStarJetPicoDefinitions() : TObject()
{
;
}
virtual ~TStarJetPicoDefinitions()
{
;
}
static Int_t gDebugLevel;
ClassDef(TStarJetPicoDefinitions, 0)
};
#ifndef PICONODEBUG
#define __DEBUG(level, message) {if (level <= TStarJetPicoDefinitions::DebugLevel()) { std::cout << "[d] " << "[" << level << "] " << "[" << ClassName() << "::" << __FUNCTION__ << "] " << this->GetTitle() << ": " << message << std::endl;}}
#define __INFO(message) {std::cout << "[i] " << "[" << ClassName() << "::" << __FUNCTION__ << "] " << this->GetTitle() << ": " << message << std::endl;}
#define __ERROR(message) {std::cerr << "[e] " << "[" << ClassName() << "::" << __FUNCTION__ << "] " << this->GetTitle() << ": " << message << std::endl;}
#define __WARNING(message) {std::cout << "[w] " << "[" << ClassName() << "::" << __FUNCTION__ << "] " << this->GetTitle() << ": " << message << std::endl;}
#define __DEBUG_FUNCTION(level, message) {if (level <= TStarJetPicoDefinitions::DebugLevel()) { std::cout << "[d] " << "[" << level << "] " << "[" << __FUNCTION__ << "] " << message << std::endl;}}
#define __INFO_FUNCTION(message) {std::cout << "[i] [" << __FUNCTION__ << "] " << message << std::endl;}
#define __ERROR_FUNCTION(message) {std::cerr << "[e] [" << __FUNCTION__ << "] " << message << std::endl;}
#define __WARNING_FUNCTION(message) {std::cout << "[w] [" << __FUNCTION__ << "] " << message << std::endl;}
#endif
#ifdef PICONODEBUG
#define __DEBUG(level, message)
#define __INFO(message)
#define __ERROR(message)
#define __WARNING(message)
#define __DEBUG_FUNCTION(level, message)
#define __INFO_FUNCTION(message)
#define __ERROR_FUNCTION(message)
#define __WARNING_FUNCTION(message)
#endif
#endif