#include <math.h>
#include <stdlib.h>
#include <string.h>
-
+#ifndef no_root
#include <TNtuple.h>
#include <TFile.h>
+#endif
#include "AliL3Histogram.h"
#include "AliL3TrackArray.h"
fYPeaks=0;
fNPeaks=0;
fNMax=0;
+#ifndef no_root
fNtuppel = 0;
+#endif
}
fXPeaks = new Float_t[fNMax];
fYPeaks = new Float_t[fNMax];
fWeight = new Int_t[fNMax];
+#ifndef no_root
fNtuppel = 0;
+#endif
fThreshold=0;
}
delete [] fYPeaks;
if(fWeight)
delete [] fWeight;
+#ifndef no_root
if(fNtuppel)
delete fNtuppel;
+#endif
}
void AliL3HoughMaxFinder::Reset()
void AliL3HoughMaxFinder::CreateNtuppel()
{
- fNtuppel = new TNtuple("ntuppel","Peak charateristics","kappa:phi0:weigth:content3:content5:content1:content7");
+#ifndef no_root
//content#; neighbouring bins of the peak.
-
+ fNtuppel = new TNtuple("ntuppel","Peak charateristics","kappa:phi0:weigth:content3:content5:content1:content7");
+#endif
}
void AliL3HoughMaxFinder::WriteNtuppel(Char_t *filename)
{
+#ifndef no_root
TFile *file = TFile::Open(filename,"RECREATE");
if(!file)
{
}
fNtuppel->Write();
file->Close();
+#endif
}
void AliL3HoughMaxFinder::FindAbsMaxima()
fWeight[fNPeaks] = (Int_t)max_value;
fNPeaks++;
+#ifndef no_root
if(fNtuppel)
{
Int_t bin3 = hist->GetBin(max_xbin-1,max_ybin);
fNtuppel->Fill(max_x,max_y,max_value,hist->GetBinContent(bin3),hist->GetBinContent(bin5),hist->GetBinContent(bin1),hist->GetBinContent(bin7));
}
-
+#endif
}
void AliL3HoughMaxFinder::FindBigMaxima()
Char_t fHistoType;
+#ifndef no_root
TNtuple *fNtuppel; //!
-
+#endif
public:
AliL3HoughMaxFinder();
AliL3HoughMaxFinder(Char_t *histotype,Int_t nmax,AliL3Histogram *hist=0);
virtual ~AliL3HoughMaxFinder();
void Reset();
+
void CreateNtuppel();
void WriteNtuppel(Char_t *filename);
}
#endif
+