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{
19};
20
21
22enum class ELmvmSrc : int
23{
24 Signal = 0,
25 Bg = 1,
26 Pi0 = 2,
27 Gamma = 3,
28 Eta = 4,
30};
31
32
33enum class ELmvmAnaStep : int
34{
35 Mc = 0,
36 Acc = 1,
37 Reco = 2,
39 ElId = 4,
43 StCut = 8,
44 RtCut = 9,
45 TtCut = 10,
46 PtCut = 11,
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
59};
60
61enum class ELmvmSignal : int
62{
63 Inmed = 0,
64 Qgp = 1,
65 Omega = 2,
66 Phi = 3,
68};
69
71 public:
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
80 public:
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
89 public:
91 LmvmDataFastSim(double px, double py, double pz, int nEv, std::string plutoName)
92 : fPx(px)
93 , fPy(py)
94 , fPz(pz)
95 , fEventNumber(nEv)
96 , fPluto(plutoName)
97 {
98 }
99 double fPx = 0.;
100 double fPy = 0.;
101 double fPz = 0.;
102 int fEventNumber = -1.; // needed?
103 std::string fPluto = ""; // for UrQMD: "urqmd", for PLUTO: pluto name
104};
105
107 public:
109 LmvmDrawMinvData(TH1D* h, Color_t fillColor, Color_t lineColor, int lineWidth, Style_t fillStyle,
110 const std::string& legend)
111 : fH(h)
112 , fFillColor(fillColor)
113 , fLineColor(lineColor)
114 , fLineWidth(lineWidth)
115 , fFillStyle(fillStyle)
116 , fLegend(legend)
117 {
118 }
119
120 TH1D* fH = nullptr;
121 Color_t fFillColor = 0;
122 Color_t fLineColor = 0;
123 int fLineWidth = 0;
124 Style_t fFillStyle = -1;
125 std::string fLegend = "";
126};
127
129 public:
131 LmvmSBgResultData(double sBgRatio, double signallEff, double fitMean, double fitSigma)
132 : fSBgRatio(sBgRatio)
133 , fSignallEff(signallEff)
134 , fFitMean(fitMean)
135 , fFitSigma(fitSigma)
136 {
137 }
138 double fSBgRatio = 0.;
139 double fSignallEff = 0.;
140 double fFitMean = 0.;
141 double fFitSigma = 0;
142};
143
145 public:
147 LmvmLegend(TH1D* h, const char* name, Option_t* opt) : fH(h), fName(name), fOpt(opt) {}
148 TH1D* fH = nullptr;
149 const char* fName = "";
150 Option_t* fOpt = "l";
151};
152
153#endif
ELmvmSrc
Definition LmvmDef.h:23
@ Signal
Definition LmvmDef.h:24
@ Gamma
Definition LmvmDef.h:27
@ Undefined
Definition LmvmDef.h:29
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
LmvmDataFastSim(double px, double py, double pz, int nEv, std::string plutoName)
Definition LmvmDef.h:91
std::string fPluto
Definition LmvmDef.h:103
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:121
LmvmDrawMinvData(TH1D *h, Color_t fillColor, Color_t lineColor, int lineWidth, Style_t fillStyle, const std::string &legend)
Definition LmvmDef.h:109
Color_t fLineColor
Definition LmvmDef.h:122
std::string fLegend
Definition LmvmDef.h:125
Style_t fFillStyle
Definition LmvmDef.h:124
Option_t * fOpt
Definition LmvmDef.h:150
const char * fName
Definition LmvmDef.h:149
LmvmLegend(TH1D *h, const char *name, Option_t *opt)
Definition LmvmDef.h:147
TH1D * fH
Definition LmvmDef.h:148
LmvmSBgResultData(double sBgRatio, double signallEff, double fitMean, double fitSigma)
Definition LmvmDef.h:131
double fSignallEff
Definition LmvmDef.h:139