4545#include " Math/Vector4D.h"
4646#include " TGeoGlobalMagField.h"
4747
48+ #include < utility>
49+ #include < string>
50+ #include < algorithm>
51+ #include < map>
52+ #include < vector>
4853#include < chrono>
4954
5055using namespace std ;
@@ -1818,7 +1823,7 @@ struct muonQa {
18181823 std::vector<std::array<double , 2 >> yPos;
18191824 std::vector<std::array<double , 2 >> thetax;
18201825 std::vector<std::array<double , 2 >> thetay;
1821- for (int zi = 0 ; zi < int (zRefPlane.size ()); zi++) {
1826+ for (int zi = 0 ; zi < static_cast < int > (zRefPlane.size ()); zi++) {
18221827 xPos.emplace_back (std::array<double , 2 >{fgVectorsMCH[zi].x , fgVectorsMFT[zi].x });
18231828 yPos.emplace_back (std::array<double , 2 >{fgVectorsMCH[zi].y , fgVectorsMFT[zi].y });
18241829 thetax.emplace_back (std::array<double , 2 >{
@@ -1829,7 +1834,7 @@ struct muonQa {
18291834 std::atan2 (fgVectorsMFT[zi].py , -1.0 * fgVectorsMFT[zi].pz ) * 180 / TMath::Pi ()});
18301835 }
18311836
1832- for (int i = 0 ; i < int (zRefPlane.size ()); i++) {
1837+ for (int i = 0 ; i < static_cast < int > (zRefPlane.size ()); i++) {
18331838 if (same) {
18341839 std::get<std::shared_ptr<TH2>>(trackResidualsHistos[i][quadrant][" dx_vs_x" ])->Fill (std::fabs (xPos[i][1 ]), xPos[i][0 ] - xPos[i][1 ]);
18351840 std::get<std::shared_ptr<TH2>>(trackResidualsHistos[i][quadrant][" dx_vs_y" ])->Fill (std::fabs (yPos[i][1 ]), xPos[i][0 ] - xPos[i][1 ]);
@@ -2202,7 +2207,7 @@ struct muonQa {
22022207 }
22032208
22042209 // Loop over attached clusters
2205- for (int iCls = 0 ; iCls < int (fgValuesClsTmp.posClusters .size ()); iCls++) {
2210+ for (static_cast < int > iCls = 0 ; iCls < int (fgValuesClsTmp.posClusters .size ()); iCls++) {
22062211
22072212 double phiCls = std::atan2 (fgValuesClsTmp.posClusters [iCls][1 ], fgValuesClsTmp.posClusters [iCls][0 ]) * 180 / TMath::Pi ();
22082213 int quadrantCls = GetQuadrantPhi (phiCls);
@@ -2349,7 +2354,7 @@ struct muonQa {
23492354 FillMatching (muontrack, fgValuesMCH, fgValuesMFT);
23502355
23512356 // // Fill global informations
2352- registry.get <TH1>(HIST (" global-muons/NCandidates" ))->Fill (int (globalMuonsVector.size ()));
2357+ registry.get <TH1>(HIST (" global-muons/NCandidates" ))->Fill (static_cast < int > (globalMuonsVector.size ()));
23532358 for (size_t candidateIndex = 0 ; candidateIndex < globalMuonsVector.size (); candidateIndex++) {
23542359 auto const & muon = muons.rawIteratorAt (globalMuonsVector[candidateIndex]);
23552360 registry.get <TH2>(HIST (" global-muons/MatchChi2" ))->Fill (muon.chi2MatchMCHMFT (), candidateIndex);
@@ -2391,7 +2396,7 @@ struct muonQa {
23912396 }
23922397
23932398 // // Fill global muon candidates info
2394- for (int i = 0 ; i < int (globalMuonsVector.size ()); i++) {
2399+ for (int i = 0 ; i < static_cast < int > (globalMuonsVector.size ()); i++) {
23952400 VarTrack fgValuesTmp;
23962401 auto muonCandidate = muons.rawIteratorAt (globalMuonsVector[i]);
23972402 FillTrack<0 >(muonCandidate, fgValuesTmp);
0 commit comments