140 if (x <= 0.13957)
return 0;
141 Double_t xp3 = (x-par[3])*(x-par[3]);
143 + par[2] / 2.5066/par[4]*
TMath::Exp(-xp3/2/par[4]/par[4]));
151 if (x <= 0.13957)
return 0;
152 Double_t xp3 = (x-0.1454)*(x-0.1454);
154 + par[1] / 2.5066/sigma*
TMath::Exp(-xp3/2/sigma/sigma));
171 Info(
"Begin",
"starting h1analysis with process option: %s", option.
Data());
175 delete gDirectory->GetList()->FindObject(
"elist");
196 Warning(
"Begin",
"option 'useList' not supported in PROOF - ignoring");
197 Warning(
"Begin",
"the entry list must be set on the chain *before* calling Process");
220 "starting h1analysis with process option: %s (tree: %p)", option.
Data(),
tree);
223 hdmd =
new TH1F(
"hdmd",
"dm_d",40,0.13,0.17);
224 h2 =
new TH2F(
"h2",
"ptD0 vs dm_d",30,0.135,0.165,30,-3,6);
243 if (
fillList)
Info(
"SlaveBegin",
"creating an entry-list");
309 if (hdmd == 0 ||
h2 == 0) {
310 Error(
"Terminate",
"hdmd = %p , h2 = %p", hdmd,
h2);
316 TCanvas *c1 =
new TCanvas(
"c1",
"h1analysis analysis",10,10,800,600);
318 hdmd->GetXaxis()->SetTitle(
"m_{K#pi#pi} - m_{K#pi}[GeV/c^{2}]");
319 hdmd->GetXaxis()->SetTitleOffset(1.4);
322 if (
gROOT->GetListOfFunctions()->FindObject(
"f5"))
323 delete gROOT->GetFunction(
"f5");
326 hdmd->Fit(
"f5",
"lr");
339 if (
gROOT->GetListOfFunctions()->FindObject(
"f2"))
340 delete gROOT->GetFunction(
"f2");
344 Info(
"Fit Slices",
"Restricting fit to two bins only in this example...");
365 Printf(
"Entry list 'elist' created:");
367 TFile efile(
"elist.root",
"recreate");
370 Error(
"Terminate",
"entry list requested but not found in output");
virtual const char * GetOption() const
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual void SetParameters(const Double_t *params)
Bool_t Process(Long64_t entry)
TObject * FindObject(const char *name) const
Find object using its name.
R__EXTERN TStyle * gStyle
Double_t fdm2(Double_t *xx, Double_t *par)
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Double_t GetUymax() const
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
The histogram statistics painter class.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
void SlaveBegin(TTree *tree)
virtual void SetDirectory(TDirectory *dir)
Add reference to directory dir. dir can be 0.
const char * Data() const
The TNamed class is the base class for all named ROOT classes.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void FitSlicesX(TF1 *f1=0, Int_t firstybin=0, Int_t lastybin=-1, Int_t cut=0, Option_t *option="QNR", TObjArray *arr=0)
Project slices along X in case of a 2-D histogram, then fit each slice with function f1 and make a hi...
2-D histogram with a float per channel (see TH1 documentation)}
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all leaves of entry and return total number of bytes read.
virtual void SetMarkerStyle(Style_t mstyle=1)
1-D histogram with a double per channel (see TH1 documentation)}
virtual void SetEntryList(TEntryList *list, Option_t *opt="")
Set an EntryList.
virtual Bool_t Enter(Long64_t entry, TTree *tree=0)
Add entry entry to the list.
Double_t fdm5(Double_t *xx, Double_t *par)
TList * fInput
Current object if processing object (vs. TTree)
virtual void Add(TObject *obj)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
A TTree object has a header with a name and a title.
virtual void Update()
Update canvas pad buffers.
virtual void Print(const Option_t *option="") const
Print this list.
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
A List of entry numbers in a TTree or TChain.
void Modified(Bool_t flag=1)
void SetOptStat(Int_t stat=1)
Set the stat option.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.