Skip to content

Commit 1567c10

Browse files
committed
Added some eff histograms
1 parent bbe2239 commit 1567c10

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/netchargeFluctuations.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ struct NetchargeFluctuations {
884884
int sign = 0;
885885
auto* pd = pdgService->GetParticle(pid);
886886
if (pd != nullptr) {
887-
sign = pd->Charge() / 3;
887+
sign = static_cast<int>(pd->Charge() / 3.0);
888888
}
889889
if (sign == 0) {
890890
continue;
@@ -1187,7 +1187,7 @@ struct NetchargeFluctuations {
11871187
auto sign = 0;
11881188
auto* pd = pdgService->GetParticle(pid);
11891189
if (pd != nullptr) {
1190-
sign = pd->Charge() / 3;
1190+
sign = static_cast<int>(pd->Charge() / 3.0);
11911191
}
11921192
if (sign == 0) {
11931193
continue;
@@ -1331,7 +1331,7 @@ struct NetchargeFluctuations {
13311331
auto sign = 0;
13321332
auto* pd = pdgService->GetParticle(pid);
13331333
if (pd != nullptr) {
1334-
sign = pd->Charge() / 3;
1334+
sign = static_cast<int>(pd->Charge() / 3.0);
13351335
}
13361336
if (sign == 0) {
13371337
continue;
@@ -1408,7 +1408,7 @@ struct NetchargeFluctuations {
14081408
auto sign = 0;
14091409
auto* pd = pdgService->GetParticle(pid);
14101410
if (pd != nullptr) {
1411-
sign = pd->Charge() / 3;
1411+
sign = static_cast<int>(pd->Charge() / 3.0);
14121412
}
14131413
if (sign == 0) {
14141414
continue;

0 commit comments

Comments
 (0)