Skip to content

Commit b9b7d7d

Browse files
JiYuanjingYuanjing JiYuanjing Ji
authored
[PWGDQ] Add MC proton definitions (#12662)
Co-authored-by: Yuanjing Ji <yji@lxbk0905.gsi.de> Co-authored-by: Yuanjing Ji <yji@lxbk1130.gsi.de>
1 parent ec4928c commit b9b7d7d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

PWGDQ/Core/MCSignalLibrary.cxx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,33 @@ MCSignal* o2::aod::dqmcsignals::GetMCSignal(const char* name)
8787
signal = new MCSignal(name, "Primary Kaons", {prong}, {-1}); // define the signal using the full constructor
8888
return signal;
8989
}
90+
if (!nameStr.compare("proton")) {
91+
MCProng prong(1, {2212}, {true}, {false}, {0}, {0}, {false});
92+
signal = new MCSignal(name, "proton", {prong}, {-1});
93+
return signal;
94+
}
9095
if (!nameStr.compare("protonPrimary")) {
9196
MCProng prong(1, {2212}, {true}, {false}, {0}, {0}, {false}); // define 1-generation prong using the full constructor
9297
prong.SetSourceBit(0, MCProng::kPhysicalPrimary); // set source to be ALICE primary particles
9398
signal = new MCSignal(name, "Primary Proton", {prong}, {-1}); // define the signal using the full constructor
9499
return signal;
95100
}
101+
if (!nameStr.compare("protonFromTransport")) {
102+
MCProng prong(1, {2212}, {true}, {false}, {0}, {0}, {false});
103+
prong.SetSourceBit(0, MCProng::kProducedInTransport);
104+
signal = new MCSignal(name, "ProtonFromTransport", {prong}, {-1});
105+
return signal;
106+
}
107+
if (!nameStr.compare("protonFromLambda0")) {
108+
MCProng prong(2, {2212, 3122}, {true, true}, {false, false}, {0, 0}, {0, 0}, {false, false});
109+
signal = new MCSignal(name, "Proton from Lambda0 decays", {prong}, {-1});
110+
return signal;
111+
}
112+
if (!nameStr.compare("protonFromSigmaPlus")) {
113+
MCProng prong(2, {2212, 3222}, {true, true}, {false, false}, {0, 0}, {0, 0}, {false, false});
114+
signal = new MCSignal(name, "Proton from Sigma+ decays", {prong}, {-1});
115+
return signal;
116+
}
96117
if (!nameStr.compare("phiMeson")) {
97118
MCProng prong(1, {333}, {true}, {false}, {0}, {0}, {false}); // define 1-generation prong using the full constructor
98119
signal = new MCSignal(name, "phi meson", {prong}, {-1}); // define the signal using the full constructor

0 commit comments

Comments
 (0)