1818#include < map>
1919#include < string>
2020#include < memory>
21+ #include < utility>
2122#include < TH1F.h>
2223#include < TH3F.h>
2324#include < THashList.h>
@@ -394,8 +395,6 @@ struct AnalysisTrackSelection {
394395 Configurable<int64_t > fConfigNoLaterThan {" ccdb-no-later-than" , std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now ().time_since_epoch ()).count (), " latest acceptable timestamp of creation for the object" };
395396 Configurable<bool > fConfigComputeTPCpostCalib {" cfgTPCpostCalib" , false , " If true, compute TPC post-calibrated n-sigmas" };
396397 Configurable<std::string> grpmagPath{" grpmagPath" , " GLO/Config/GRPMagField" , " CCDB path of the GRPMagField object" };
397- Configurable<bool > fConfigDummyRunlist {" cfgDummyRunlist" , false , " If true, use dummy runlist" };
398- Configurable<int > fConfigInitRunNumber {" cfgInitRunNumber" , 543215 , " Initial run number used in run by run checks" };
399398
400399 Configurable<std::string> fConfigMCSignals {" cfgTrackMCSignals" , " " , " Comma separated list of MC signals" };
401400 Configurable<std::string> fConfigMCSignalsJSON {" cfgTrackMCsignalsJSON" , " " , " Additional list of MC signals via JSON" };
@@ -433,7 +432,7 @@ struct AnalysisTrackSelection {
433432 if (addTrackCutsStr != " " ) {
434433 std::vector<AnalysisCut*> addTrackCuts = dqcuts::GetCutsFromJSON (addTrackCutsStr.Data ());
435434 for (auto & t : addTrackCuts) {
436- fTrackCuts .push_back (( AnalysisCompositeCut*)t );
435+ fTrackCuts .push_back (reinterpret_cast < AnalysisCompositeCut*>(t) );
437436 }
438437 }
439438 VarManager::SetUseVars (AnalysisCut::fgUsedVars); // provide the list of required variables so that VarManager knows what to fill
@@ -493,9 +492,6 @@ struct AnalysisTrackSelection {
493492 fOutputList .setObject (fHistMan ->GetMainHistogramList ());
494493 }
495494
496- if (fConfigDummyRunlist ) {
497- VarManager::SetDummyRunlist (fConfigInitRunNumber );
498- }
499495 if (fConfigComputeTPCpostCalib ) {
500496 fCCDB ->setURL (fConfigCcdbUrl .value );
501497 fCCDB ->setCaching (true );
@@ -760,7 +756,7 @@ struct AnalysisMuonSelection {
760756 if (addCutsStr != " " ) {
761757 std::vector<AnalysisCut*> addCuts = dqcuts::GetCutsFromJSON (addCutsStr.Data ());
762758 for (auto & t : addCuts) {
763- fMuonCuts .push_back (( AnalysisCompositeCut*)t );
759+ fMuonCuts .push_back (reinterpret_cast < AnalysisCompositeCut*>(t) );
764760 }
765761 }
766762 VarManager::SetUseVars (AnalysisCut::fgUsedVars); // provide the list of required variables so that VarManager knows what to fill
@@ -2203,7 +2199,7 @@ struct AnalysisAsymmetricPairing {
22032199 if (addPairCutsStr != " " ) {
22042200 std::vector<AnalysisCut*> addPairCuts = dqcuts::GetCutsFromJSON (addPairCutsStr.Data ());
22052201 for (auto & t : addPairCuts) {
2206- fPairCuts .push_back (( AnalysisCompositeCut*)t );
2202+ fPairCuts .push_back (reinterpret_cast < AnalysisCompositeCut*>(t) );
22072203 cutNamesStr += Form (" ,%s" , t->GetName ());
22082204 }
22092205 }
@@ -3290,7 +3286,7 @@ struct AnalysisDileptonTrack {
32903286 // loop over all the upstream cuts and make a bit mask for the track cuts specified in this task
32913287 for (int icut = 0 ; icut < cfgTrackSelection_objArrayTrackCuts->GetEntries (); icut++) {
32923288 if (cfgDileptonTrack_objArrayTrackCuts->FindObject (cfgTrackSelection_objArrayTrackCuts->At (icut)->GetName ())) {
3293- fTrackCutBitMap |= (uint32_t (1 ) << icut);
3289+ fTrackCutBitMap |= (static_cast < uint32_t > (1 ) << icut);
32943290 }
32953291 }
32963292 // finally, store the total number of upstream tasks, for easy access
@@ -3358,7 +3354,7 @@ struct AnalysisDileptonTrack {
33583354 for (int iCutTrack = 0 ; iCutTrack < fNCuts ; iCutTrack++) {
33593355
33603356 // here we check that this track cut is one of those required to associate with the dileptons
3361- if (!(fTrackCutBitMap & (uint32_t (1 ) << iCutTrack))) {
3357+ if (!(fTrackCutBitMap & (static_cast < uint32_t > (1 ) << iCutTrack))) {
33623358 continue ;
33633359 }
33643360
@@ -3593,13 +3589,13 @@ struct AnalysisDileptonTrack {
35933589 // loop over specified track cuts (the tracks to be combined with the dileptons)
35943590 for (int iTrackCut = 0 ; iTrackCut < fNCuts ; iTrackCut++) {
35953591
3596- if (!(trackSelection & (uint32_t (1 ) << iTrackCut))) {
3592+ if (!(trackSelection & (static_cast < uint32_t > (1 ) << iTrackCut))) {
35973593 continue ;
35983594 }
35993595
36003596 fHistMan ->FillHistClass (Form (" DileptonTrack_%s_%s" , fTrackCutNames [icut].Data (), fTrackCutNames [iTrackCut].Data ()), fValuesHadron );
36013597 for (uint32_t isig = 0 ; isig < fRecMCSignals .size (); isig++) {
3602- if (mcDecision & (uint32_t (1 ) << isig)) {
3598+ if (mcDecision & (static_cast < uint32_t > (1 ) << isig)) {
36033599 fHistMan ->FillHistClass (Form (" DileptonTrackMCMatched_%s_%s_%s" , fTrackCutNames [icut].Data (), fTrackCutNames [iTrackCut].Data (), fRecMCSignals [isig]->GetName ()), fValuesHadron );
36043600 }
36053601 }
@@ -3609,7 +3605,7 @@ struct AnalysisDileptonTrack {
36093605 if (dilepton.commonFilterMap_bit (fCommonTrackCutMap [iCommonCut])) {
36103606 fHistMan ->FillHistClass (Form (" DileptonTrack_%s_%s_%s" , fTrackCutNames [icut].Data (), fCommonPairCutNames [iCommonCut].Data (), fTrackCutNames [iTrackCut].Data ()), fValuesHadron );
36113607 for (uint32_t isig = 0 ; isig < fRecMCSignals .size (); isig++) {
3612- if (mcDecision & (uint32_t (1 ) << isig)) {
3608+ if (mcDecision & (static_cast < uint32_t > (1 ) << isig)) {
36133609 fHistMan ->FillHistClass (Form (" DileptonTrackMCMatched_%s_%s_%s_%s" , fTrackCutNames [icut].Data (), fCommonPairCutNames [iCommonCut].Data (), fTrackCutNames [iTrackCut].Data (), fRecMCSignals [isig]->GetName ()), fValuesHadron );
36143610 }
36153611 }
@@ -3619,15 +3615,15 @@ struct AnalysisDileptonTrack {
36193615 if (dilepton.pairFilterMap_bit (iPairCut)) {
36203616 fHistMan ->FillHistClass (Form (" DileptonTrack_%s_%s_%s" , fTrackCutNames [icut].Data (), fPairCutNames [iPairCut].Data (), fTrackCutNames [iTrackCut].Data ()), fValuesHadron );
36213617 for (uint32_t isig = 0 ; isig < fRecMCSignals .size (); isig++) {
3622- if (mcDecision & (uint32_t (1 ) << isig)) {
3618+ if (mcDecision & (static_cast < uint32_t > (1 ) << isig)) {
36233619 fHistMan ->FillHistClass (Form (" DileptonTrackMCMatched_%s_%s_%s_%s" , fTrackCutNames [icut].Data (), fPairCutNames [iPairCut].Data (), fTrackCutNames [iTrackCut].Data (), fRecMCSignals [isig]->GetName ()), fValuesHadron );
36243620 }
36253621 }
36263622 for (int iCommonCut = 0 ; iCommonCut < fNCommonTrackCuts ; iCommonCut++) {
36273623 if (dilepton.commonFilterMap_bit (fCommonTrackCutMap [iCommonCut])) {
36283624 fHistMan ->FillHistClass (Form (" DileptonTrack_%s_%s_%s_%s" , fTrackCutNames [icut].Data (), fCommonPairCutNames [iCommonCut].Data (), fPairCutNames [iPairCut].Data (), fTrackCutNames [iTrackCut].Data ()), fValuesHadron );
36293625 for (uint32_t isig = 0 ; isig < fRecMCSignals .size (); isig++) {
3630- if (mcDecision & (uint32_t (1 ) << isig)) {
3626+ if (mcDecision & (static_cast < uint32_t > (1 ) << isig)) {
36313627 fHistMan ->FillHistClass (Form (" DileptonTrackMCMatched_%s_%s_%s_%s_%s" , fTrackCutNames [icut].Data (), fCommonPairCutNames [iCommonCut].Data (), fPairCutNames [iPairCut].Data (), fTrackCutNames [iTrackCut].Data (), fRecMCSignals [isig]->GetName ()), fValuesHadron );
36323628 }
36333629 }
0 commit comments