-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigBeamE.cpp
More file actions
48 lines (37 loc) · 925 Bytes
/
ConfigBeamE.cpp
File metadata and controls
48 lines (37 loc) · 925 Bytes
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
//
// Created by alons on 14/08/2024.
//
#ifndef CONFIG_BEAM_E_CPP
#define CONFIG_BEAM_E_CPP
#include <iomanip>
#include <string>
#include "TString.h"
using namespace std;
string ConfigBeamE(const double &BeamE) {
string be;
if (BeamE == 10.6) {
be = "10600MeV";
} else if (BeamE == 5.98636) {
be = "5986MeV";
} else if (BeamE == 4.02962) {
be = "4029MeV";
} else if (BeamE == 2.07052) {
be = "2070MeV";
}
return be;
}
TString ConfigBeamE(const double &BeamE, TString OutputFileNamePrefix) {
TString opfnPrefix, be;
if (BeamE == 10.6) {
be = "_10600MeV";
} else if (BeamE == 5.98636) {
be = "_5986MeV";
} else if (BeamE == 4.02962) {
be = "_4029MeV";
} else if (BeamE == 2.07052) {
be = "_2070MeV";
}
opfnPrefix = OutputFileNamePrefix + be;
return opfnPrefix;
}
#endif // CONFIG_BEAM_E_CPP