5050#include < cstddef>
5151#include < cstdlib>
5252#include < memory>
53+ #include < stdlib>
5354#include < string>
5455#include < utility>
5556#include < vector>
5657
57- #include < stdlib.h>
58-
5958using namespace o2 ;
6059using namespace o2 ::framework;
6160using namespace o2 ::framework::expressions;
@@ -522,7 +521,7 @@ struct kstarInOO {
522521 // ======================================================================
523522
524523 template <typename EventType>
525- std::pair<bool , int > eventSelection (const EventType event, const bool QA )
524+ std::pair<bool , int > eventSelection (const EventType& event, const bool QA )
526525 {
527526 if (cfgEventCutQA && QA ) {
528527 fillQA (false , event, 1 );
@@ -586,7 +585,7 @@ struct kstarInOO {
586585 };
587586
588587 template <typename EventType>
589- std::pair<bool , int > JetEventSelection (const EventType event, const bool QA )
588+ std::pair<bool , int > JetEventSelection (const EventType& event, const bool QA )
590589 {
591590 if (cfgEventCutQA && QA ) {
592591 fillQA (false , event, 1 );
@@ -606,7 +605,7 @@ struct kstarInOO {
606605 };
607606
608607 template <typename TracksType>
609- bool trackSelection (const TracksType track, const bool QA )
608+ bool trackSelection (const TracksType& track, const bool QA )
610609 {
611610 if (cfgTrackCutQA && QA ) {
612611 fillQA (false , track, 2 );
@@ -741,8 +740,9 @@ struct kstarInOO {
741740 double tofpid = 0 ;
742741 bool tpcPIDPassed{false }, tofPIDPassed{false };
743742
744- if (cfgTrackCutQA && QA )
743+ if (cfgTrackCutQA && QA ) {
745744 fillQA (false , candidate, 4 );
745+ }
746746
747747 // TPC
748748 if (cfgTrackSquarePIDCut) {
@@ -962,10 +962,11 @@ struct kstarInOO {
962962 } // TrackSlicingMC
963963
964964 template <typename JetType>
965- double DistinguishJets (const JetType& jets, ROOT ::Math::PxPyPzMVector lResonance)
965+ double DistinguishJets (const JetType& jets, ROOT ::Math::PxPyPzMVector& lResonance)
966966 {
967- if (cDebugLevel > 0 )
967+ if (cDebugLevel > 0 ) {
968968 LOG (info) << " Found multiple jets to the same phi." ;
969+ }
969970
970971 double bestR = 0 ;
971972 double bestJetpT = 0 ;
0 commit comments