#include "AliHLTStdIncludes.h"
#include "AliHLTTPCRootTypes.h"
-#ifdef use_root
#include <TH2.h>
-#endif
class AliHLTTPCHistogram {
public:
friend ofstream& operator<< (ofstream &o, const AliHLTTPCHistogram &h);
-#ifdef use_root
TH2F *GetRootHisto();
-#else
- void *GetRootHisto();
-#endif
Double_t GetXmin() const {return fXmin;}
Double_t GetXmax() const {return fXmax;}
Double_t fXmax; // Upper limit in X
Double_t fYmax; // Upper limit in Y
-#ifdef use_root
TH2F *fRootHisto; // Corresponding ROOT histogram
-#endif
private:
Double_t fBinwidthX; // Bin width of the Hough space
};
-typedef AliHLTTPCHistogram AliL3Histogram; // for backward comaptibility
-
-#ifdef use_root
inline TH2F *AliHLTTPCHistogram::GetRootHisto()
{
if(!fRootHisto)
else
return fRootHisto;
}
-#else
-inline void *AliHLTTPCHistogram::GetRootHisto()
-{
- STDCERR<<"AliHLTTPCHistogram::GetRootHisto() : You must compile with ROOT in order to interface the ROOT histogram"<<STDENDL;
- return 0;
-}
-#endif
#endif