I run the code not in the interpretor, rather in separate in
application.
If I try to run an interpretor it runs but plots strange results(by
strange I mean If I do the same plots in PAW I got different results)
Please if you have any hints or comments send me an e-mail.
Thanx!
Artur
P.S.
below is a piece of the code that does projecting ntuples into
histograms:
// This is a member function
// returns a pointer to a histogram
TH1F* DIS::getHst(char* hstName, char *cut)
{
TH1F* hist=NULL;
TFile *objfile = new TFile(objFilename);
// store pointer to the file for closing it later
fileToClose[fCntr] = objfile;
fCntr++;
TTree *ntp = (TTree*)objfile->Get("h14");
for(int i=0; i< NUM; i++) {
if(!strcmp(hstId[i],hstName)) {
hist = new TH1F(hstId[i],hstTit[i],nbin[i],low[i],high[i]);
ntp->Project(hstId[i],ntpVar[i],cut);
numberBins = hist->Integral(0,hist->GetNbinsX());
}
}
return hist;
}