]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerEfficiencyCells.cxx
Ensure vacuum inside the beam pipe for upgrade (Mario)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerEfficiencyCells.cxx
index 2d06c8af9eb6c92d021afbbd9fdd2e09b5d5a53d..db113c64b583861e68920dc6696a430d815aed30 100755 (executable)
 
 // $Id$
 
+#include "AliMUONTriggerEfficiencyCells.h"
+
 #include "AliLog.h"
 #include "AliMpConstants.h"
 
-#include "TH1F.h"
+#include "TH1.h"
+#include "TList.h"
 #include "TFile.h"
 
 #include <fstream>
 #include <cassert>
 
-#include "AliMUONTriggerEfficiencyCells.h"
-
 
 //-----------------------------------------------------------------------------
 /// \class AliMUONTriggerEfficiencyCells
@@ -161,7 +162,7 @@ AliMUONTriggerEfficiencyCells::ResetHistos(Bool_t deleteObjects)
 void AliMUONTriggerEfficiencyCells::ReadFile(const Char_t* filename, const Char_t* listname)
 {
 ///  Structure of file (.root) containing local board efficency
-    TFile *file = new TFile(filename, "read");
+    TFile *file = TFile::Open(filename);
     if(!file || !file->IsOpen()) {
       AliError(Form("Can't read file %s",filename));
       return;
@@ -255,7 +256,7 @@ AliMUONTriggerEfficiencyCells::GetHistoName(Int_t histoType, Int_t countType,
 
 //__________________________________________________________________________
 TH1F* AliMUONTriggerEfficiencyCells::GetOldEffHisto(Int_t histoType,
-                                                   Int_t ich, Int_t icath)
+                                                   Int_t ich, Int_t icath) const
 {
   //
   /// Compatibility with old class