CbmRoot
Loading...
Searching...
No Matches
LmvmDef.h
Go to the documentation of this file.
1/* Copyright (C) 2021 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev [committer] */
4
5#ifndef LMVM_DEF_H
6#define LMVM_DEF_H
7
8#include "Rtypes.h"
9
10#include <string>
11
12class TH1D;
13
14enum class ELmvmTopologyCut : int
15{
16 ST,
17 RT,
18 TT
19};
20
21
22enum class ELmvmSrc : int
23{
24 Signal = 0,
25 Bg = 1,
26 Pi0 = 2,
27 Gamma = 3,
28 Eta = 4,
29 Undefined = 5
30};
31
32
33enum class ELmvmAnaStep : int
34{
35 Mc = 0,
36 Acc = 1,
37 Reco = 2,
38 Chi2Prim = 3,
39 ElId = 4,
40 GammaCut = 5,
41 Mvd1Cut = 6,
42 Mvd2Cut = 7,
43 StCut = 8,
44 RtCut = 9,
45 TtCut = 10,
46 PtCut = 11,
47 Undefined = 12
48};
49
50enum class ELmvmBgPairSrc : int
51{
52 GG = 0, // gamma-gamma
53 PP = 1, // pi0-pi0
54 OO = 2, // other-other
55 GP = 3, // gamma-pi0
56 GO = 4, // gamma-other
57 PO = 5, // pi0-other
58 Undefined = 6
59};
60
61enum class ELmvmSignal : int
62{
63 Inmed = 0,
64 Qgp = 1,
65 Omega = 2,
66 Phi = 3,
67 OmegaD = 4
68};
69
71public:
73 LmvmDataXYInd(double x, double y, int ind) : fX(x), fY(y), fInd(ind) {}
74 double fX = 0.;
75 double fY = 0.;
76 int fInd = 0;
77};
78
80public:
82 LmvmDataAngMomInd(double angle, double mom, int ind) : fAngle(angle), fMom(mom), fInd(ind) {}
83 double fAngle = 0.;
84 double fMom = 0.;
85 int fInd = 0;
86};
87
89public:
91 LmvmDrawMinvData(TH1D* h, Color_t fillColor, Color_t lineColor, int lineWidth, Style_t fillStyle,
92 const std::string& legend)
93 : fH(h)
94 , fFillColor(fillColor)
95 , fLineColor(lineColor)
96 , fLineWidth(lineWidth)
97 , fFillStyle(fillStyle)
98 , fLegend(legend)
99 {
100 }
101
102 TH1D* fH = nullptr;
103 Color_t fFillColor = 0;
104 Color_t fLineColor = 0;
105 int fLineWidth = 0;
106 Style_t fFillStyle = -1;
107 std::string fLegend = "";
108};
109
111public:
113 LmvmSBgResultData(double sBgRatio, double signallEff, double fitMean, double fitSigma)
114 : fSBgRatio(sBgRatio)
115 , fSignallEff(signallEff)
116 , fFitMean(fitMean)
117 , fFitSigma(fitSigma)
118 {
119 }
120 double fSBgRatio = 0.;
121 double fSignallEff = 0.;
122 double fFitMean = 0.;
123 double fFitSigma = 0;
124};
125
127public:
129 LmvmLegend(TH1D* h, const char* name, Option_t* opt) : fH(h), fName(name), fOpt(opt) {}
130 TH1D* fH = nullptr;
131 const char* fName = "";
132 Option_t* fOpt = "l";
133};
134
135#endif
ELmvmSrc
Definition LmvmDef.h:23
ELmvmBgPairSrc
Definition LmvmDef.h:51
ELmvmSignal
Definition LmvmDef.h:62
ELmvmAnaStep
Definition LmvmDef.h:34
ELmvmTopologyCut
Definition LmvmDef.h:15
Data class with information on a STS local track.
LmvmDataAngMomInd(double angle, double mom, int ind)
Definition LmvmDef.h:82
double fX
Definition LmvmDef.h:74
LmvmDataXYInd(double x, double y, int ind)
Definition LmvmDef.h:73
double fY
Definition LmvmDef.h:75
Color_t fFillColor
Definition LmvmDef.h:103
LmvmDrawMinvData(TH1D *h, Color_t fillColor, Color_t lineColor, int lineWidth, Style_t fillStyle, const std::string &legend)
Definition LmvmDef.h:91
Color_t fLineColor
Definition LmvmDef.h:104
std::string fLegend
Definition LmvmDef.h:107
Style_t fFillStyle
Definition LmvmDef.h:106
Option_t * fOpt
Definition LmvmDef.h:132
const char * fName
Definition LmvmDef.h:131
LmvmLegend(TH1D *h, const char *name, Option_t *opt)
Definition LmvmDef.h:129
TH1D * fH
Definition LmvmDef.h:130
LmvmSBgResultData(double sBgRatio, double signallEff, double fitMean, double fitSigma)
Definition LmvmDef.h:113
double fSignallEff
Definition LmvmDef.h:121