@@ -716,7 +716,7 @@ struct AnalysisTrackSelection {
716716 if (addTrackCutsStr != " " ) {
717717 std::vector<AnalysisCut*> addTrackCuts = o2::aod::dqcuts::GetCutsFromJSON (addTrackCutsStr.Data ());
718718 for (auto const & t : addTrackCuts) {
719- fTrackCuts .push_back (static_cast <AnalysisCompositeCut*>(t));
719+ fTrackCuts .push_back (dynamic_cast <AnalysisCompositeCut*>(t));
720720 }
721721 }
722722
@@ -983,7 +983,7 @@ struct AnalysisMuonSelection {
983983 if (addCutsStr != " " ) {
984984 std::vector<AnalysisCut*> addCuts = o2::aod::dqcuts::GetCutsFromJSON (addCutsStr.Data ());
985985 for (auto const & t : addCuts) {
986- fMuonCuts .push_back (static_cast <AnalysisCompositeCut*>(t));
986+ fMuonCuts .push_back (dynamic_cast <AnalysisCompositeCut*>(t));
987987 }
988988 }
989989
@@ -1904,7 +1904,7 @@ struct AnalysisSameEventPairing {
19041904 }*/
19051905
19061906 auto twoTrackFilter = static_cast <uint32_t >(0 );
1907- uint32_t dileptonMcDecision = static_cast <uint32_t >(0 ); // placeholder, copy of the dqEfficiency.cxx one
1907+ auto dileptonMcDecision = static_cast <uint32_t >(0 ); // placeholder, copy of the dqEfficiency.cxx one
19081908 int sign1 = 0 ;
19091909 int sign2 = 0 ;
19101910 // Reserve capacity for the output tables to avoid repeated reallocations
@@ -3274,7 +3274,7 @@ struct AnalysisAsymmetricPairing {
32743274 if (addPairCutsStr != " " ) {
32753275 std::vector<AnalysisCut*> addPairCuts = o2::aod::dqcuts::GetCutsFromJSON (addPairCutsStr.Data ());
32763276 for (auto const & t : addPairCuts) {
3277- fPairCuts .push_back (static_cast <AnalysisCompositeCut*>(t));
3277+ fPairCuts .push_back (dynamic_cast <AnalysisCompositeCut*>(t));
32783278 cutNamesStr += Form (" ,%s" , t->GetName ());
32793279 }
32803280 }
@@ -3564,8 +3564,8 @@ struct AnalysisAsymmetricPairing {
35643564 for (auto const & [a1, a2] : combinations (o2::soa::CombinationsFullIndexPolicy (groupedLegAAssocs, groupedLegBAssocs))) {
35653565
35663566 auto twoTrackFilter = static_cast <uint32_t >(0 );
3567- uint32_t twoTrackCommonFilter = static_cast <uint32_t >(0 );
3568- uint32_t pairFilter = static_cast <uint32_t >(0 );
3567+ auto twoTrackCommonFilter = static_cast <uint32_t >(0 );
3568+ auto pairFilter = static_cast <uint32_t >(0 );
35693569 for (int icut = 0 ; icut < fNLegCuts ; ++icut) {
35703570 // Find leg pair definitions both candidates participate in
35713571 if ((a1.isBarrelSelected_raw () & fConstructedLegAFilterMasksMap [icut]) && (a2.isBarrelSelected_raw () & fConstructedLegBFilterMasksMap [icut])) {
@@ -3764,8 +3764,8 @@ struct AnalysisAsymmetricPairing {
37643764 template <bool TThreeProngFitter, uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TTrackAssoc, typename TTracks, typename TEvent>
37653765 void readTriplet (TTrackAssoc const & a1, TTrackAssoc const & a2, TTrackAssoc const & a3, TTracks const & /* tracks*/ , TEvent const & event, VarManager::PairCandidateType tripletType)
37663766 {
3767- uint32_t threeTrackFilter = static_cast <uint32_t >(0 );
3768- uint32_t threeTrackCommonFilter = static_cast <uint32_t >(0 );
3767+ auto threeTrackFilter = static_cast <uint32_t >(0 );
3768+ auto threeTrackCommonFilter = static_cast <uint32_t >(0 );
37693769 for (int icut = 0 ; icut < fNLegCuts ; ++icut) {
37703770 // Find out which leg cut combinations the triplet passes
37713771 if ((a1.isBarrelSelected_raw () & fConstructedLegAFilterMasksMap [icut]) && (a2.isBarrelSelected_raw () & fConstructedLegBFilterMasksMap [icut]) && (a3.isBarrelSelected_raw () & fConstructedLegCFilterMasksMap [icut])) {
@@ -4236,7 +4236,7 @@ struct AnalysisDileptonTrack {
42364236
42374237 void initAccFromCCDB (uint64_t timestamp)
42384238 {
4239- TList* listAccs = fCCDB ->getForTimeStamp <TList>(fConfigAccCCDBPath , timestamp);
4239+ auto listAccs = fCCDB ->getForTimeStamp <TList>(fConfigAccCCDBPath , timestamp);
42404240 if (!listAccs) {
42414241 LOG (fatal) << " Problem getting TList object with efficiencies!" ;
42424242 }
@@ -4605,7 +4605,7 @@ struct AnalysisDileptonTrack {
46054605 continue ;
46064606 }
46074607 for (uint32_t iTrackCut = 0 ; iTrackCut < fTrackCutNames .size (); iTrackCut++) {
4608- if (trackSelection & (static_cast <uint32_t >(1 ) << iTrackCut)) {
4608+ if (( trackSelection & (static_cast <uint32_t >(1 ) << iTrackCut)) != 0 ) {
46094609 fHistMan ->FillHistClass (Form (" DileptonTrackME_%s_%s" , fTrackCutNames [icut].Data (), fTrackCutNames [iTrackCut].Data ()), dqtablereader_helpers::varValues ());
46104610 if (fConfigEnergycorrelator ) {
46114611 fHistMan ->FillHistClass (Form (" DileptonTrackECME_%s_%s" , fTrackCutNames [icut].Data (), fTrackCutNames [iTrackCut].Data ()), dqtablereader_helpers::varValues ());
@@ -4653,7 +4653,7 @@ struct AnalysisDileptonTrack {
46534653 continue ;
46544654 }
46554655 for (uint32_t iTrackCut = 0 ; iTrackCut < fTrackCutNames .size (); iTrackCut++) {
4656- if (muonSelection & (static_cast <uint32_t >(1 ) << iTrackCut)) {
4656+ if (( muonSelection & (static_cast <uint32_t >(1 ) << iTrackCut)) != 0 ) {
46574657 fHistMan ->FillHistClass (Form (" DileptonTrackME_%s_%s" , fTrackCutNames [icut].Data (), fTrackCutNames [iTrackCut].Data ()), dqtablereader_helpers::varValues ());
46584658 }
46594659 }
0 commit comments