Skip to content

Commit 3cdb28b

Browse files
author
Prottay Das
committed
corrected Megalinter issue
1 parent 9b94b36 commit 3cdb28b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGLF/TableProducer/Common/spvector.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <TMath.h>
2222
#include <array>
2323
#include <cmath>
24+
#include <iostream>
2425
#include "Math/Vector4D.h"
2526
#include "TRandom3.h"
2627
#include "TF1.h"
@@ -530,6 +531,7 @@ struct spvector {
530531

531532
Bool_t res = 0;
532533
Bool_t resfine = 0;
534+
Int_t check = 1;
533535

534536
if (coarse1) {
535537
if (useRecentereSp && (currentRunNumber != lastRunNumber)) {
@@ -624,7 +626,8 @@ struct spvector {
624626
res = Correctcoarse(hrecentereSpA[5], centrality, vx, vy, vz, qxZDCA, qyZDCA, qxZDCC, qyZDCC);
625627
}
626628

627-
if (res == 0 || resfine == 0) {
629+
if (res == 0 && resfine == 0 && check == 0) {
630+
LOG(info) << "Histograms are null";
628631
}
629632
psiZDCC = 1.0 * TMath::ATan2(qyZDCC, qxZDCC);
630633
psiZDCA = 1.0 * TMath::ATan2(qyZDCA, qxZDCA);

0 commit comments

Comments
 (0)