@@ -37,7 +37,7 @@ using namespace o2::constants::physics;
3737MCSignal* o2::aod::dqmcsignals::GetMCSignal (const char * name)
3838{
3939 std::string nameStr = name;
40- MCSignal* signal;
40+ MCSignal* signal = nullptr ;
4141 // 1-prong signals
4242 if (!nameStr.compare (" alicePrimary" )) {
4343 MCProng prong (1 ); // 1-generation prong
@@ -2136,7 +2136,7 @@ std::vector<MCSignal*> o2::aod::dqmcsignals::GetMCSignalsFromJSON(const char* js
21362136 }
21372137
21382138 // Create the signal and add it to the output vector
2139- MCSignal * mcSignal = new MCSignal (sigName, title, prongs, commonAncestors, excludeCommonAncestor);
2139+ auto * mcSignal = new MCSignal (sigName, title, prongs, commonAncestors, excludeCommonAncestor);
21402140 LOG (debug) << " MCSignal defined, adding to the output vector" ;
21412141 mcSignal->PrintConfig ();
21422142 signals.push_back (mcSignal);
@@ -2422,7 +2422,7 @@ MCProng* o2::aod::dqmcsignals::ParseJSONMCProng(T prongJSON, const char* prongNa
24222422 }
24232423
24242424 // Calling the MCProng constructor
2425- MCProng * prong = new MCProng (n, pdgs, checkBothCharges, excludePDG, sBitsVec , sBitsExcludeVec , useANDonSourceBitMap,
2425+ auto * prong = new MCProng (n, pdgs, checkBothCharges, excludePDG, sBitsVec , sBitsExcludeVec , useANDonSourceBitMap,
24262426 checkGenerationsInTime, checkIfPDGInHistory, excludePDGInHistory);
24272427 // Print the configuration
24282428 prong->Print ();
0 commit comments