ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
src
rootscripts
plotmcmc.C
Go to the documentation of this file.
1
2
//
3
// Copyright 2009 Sebastian Neubert
4
//
5
// This file is part of rootpwa
6
//
7
// rootpwa is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// rootpwa is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with rootpwa. If not, see <http://www.gnu.org/licenses/>.
19
//
21
void
plotmcmc
(TString tag,
const
char
* select=0,
const
char
* title=0,
const
char
* opt=
"COL"
,
bool
save=
false
){
22
23
TString tit(tag);
24
25
TString com=
"intens("
;
26
if
(tag.IsDigit()){
27
com+=tag;
28
com+=
"):err("
;
29
com+=tag;
30
com+=
"):_mass"
;
31
if
(title==NULL){
32
TFitBin
*
bin
=
new
TFitBin
();
33
pwa->SetBranchAddress(
"fitbin"
,&bin);
34
pwa->GetEntry(0);
35
tit=bin->
wavename
(
atoi
(tag.Data()));
36
}
37
38
}
39
else
{
40
com+=
"\""
;
41
com+=tag;
42
com+=
"\"):_mass"
;
43
}
44
45
46
TString sel;
47
if
(select!=0){
48
sel=select;
49
}
50
51
cout << com << endl;
52
53
pwa->Draw(com.Data(),sel.Data(),
"COL"
);
54
55
return
;
56
}
Generated by
1.8.1.2