// $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
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;
//__________________________________________________________________________
TH1F* AliMUONTriggerEfficiencyCells::GetOldEffHisto(Int_t histoType,
- Int_t ich, Int_t icath)
+ Int_t ich, Int_t icath) const
{
//
/// Compatibility with old class