- Timestamp:
- 05/07/21 12:37:39 (4 years ago)
- Location:
- trunk/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MLog.cc
r14079 r20096 99 99 #include <iomanip> 100 100 101 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,24,00) 102 #include <mutex> 103 #endif 104 105 101 106 #include <TROOT.h> // gROOT->GetListOfCleanups() 102 107 #include <TSystem.h> … … 150 155 MLog gLog; 151 156 157 /// Serializes error output, destructed by the gROOT destructor via ReleaseDefaultErrorHandler() 158 static std::mutex *GetErrorMutex() { 159 static std::mutex *m = new std::mutex(); 160 return m; 161 } 162 152 163 // -------------------------------------------------------------------------- 153 164 // … … 760 771 // if abort is set it aborts the application. 761 772 if (gErrorIgnoreLevel == kUnset) { 762 R__LOCKGUARD2(gErrorMutex); 773 #if ROOT_VERSION_CODE < ROOT_VERSION(6,24,00) 774 R__LOCKGUARD2(gErrorMutex); 775 #else 776 std::lock_guard<std::mutex> guard(*GetErrorMutex()); 777 #endif 763 778 764 779 gErrorIgnoreLevel = 0; … … 789 804 void MLog::ErrorHandlerPrint(Int_t level, const char *location, const char *msg) 790 805 { 806 #if ROOT_VERSION_CODE < ROOT_VERSION(6,24,00) 791 807 R__LOCKGUARD2(gErrorMutex); 808 #else 809 std::lock_guard<std::mutex> guard(*GetErrorMutex()); 810 #endif 792 811 793 812 if (level >= kError) -
trunk/Mars/mcamera/MCameraDC.cc
r9010 r20096 106 106 Float_t MCameraDC::GetMin() const 107 107 { 108 Float_t val = (UInt_t)-1;108 Float_t val = std::numeric_limits<Float_t>::max(); 109 109 for (int i=0; i<fArray.GetSize(); i++) 110 110 val = TMath::Min(val, GetCurrent(i)); -
trunk/Mars/mhbase/MH3.cc
r19345 r20096 918 918 return kTRUE; 919 919 case kLabelsX: 920 static_cast<TProfile2D*>(fHist)->Fill(labelx, y, z );920 static_cast<TProfile2D*>(fHist)->Fill(labelx, y, z, 1.); 921 921 return kTRUE; 922 922 case kLabelsY: 923 static_cast<TProfile2D*>(fHist)->Fill(x, labely, z );923 static_cast<TProfile2D*>(fHist)->Fill(x, labely, z, 1.); 924 924 return kTRUE; 925 925 case kLabelsXY: 926 static_cast<TProfile2D*>(fHist)->Fill(labelx, labely, z );926 static_cast<TProfile2D*>(fHist)->Fill(labelx, labely, z, 1.); 927 927 return kTRUE; 928 928 } -
trunk/Mars/mhcalib/MHCalibrationChargeBlindPix.cc
r8911 r20096 81 81 #include <TH2D.h> 82 82 #include <TRandom.h> 83 #include <TLine.h> // root 6.24 83 84 84 85 #include "MLog.h" -
trunk/Mars/mhflux/MHAlpha.cc
r19304 r20096 50 50 #include <TCanvas.h> 51 51 #include <TPaveStats.h> 52 #include <TLine.h> // root 6.24 52 53 53 54 #include "MHillas.h" -
trunk/Mars/mhflux/MHFalseSource.cc
r19304 r20096 127 127 #include <TPaveText.h> 128 128 #include <TStopwatch.h> 129 #include <TLine.h> // root 6.24 129 130 130 131 #include "MGeomCam.h"
Note:
See TracChangeset
for help on using the changeset viewer.