BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
RungDoca/check_two_sigma_violate.cxx
Go to the documentation of this file.
1
void
check_two_sigma_violate
(TString
file
=
"rungain.root"
){
2
TFile *
f
=
new
TFile(
file
);
3
TTree *
t
= (TTree*)
f
->Get(
"runcalib"
);
4
TH1F *h =
new
TH1F(
"h"
,
"h"
, 100, -0.5, 1.5);
5
t
->Draw(
"rungain>>h"
);
6
h->Fit(
"gaus"
);
7
double
mean = h->GetFunction(
"gaus"
)->GetParameter(1);
8
double
sigma
= h->GetFunction(
"gaus"
)->GetParameter(2);
9
TString
cut
= Form(
"rungain<%f-2*%f || rungain>%f+2*%f"
,mean,
sigma
,mean,
sigma
);
10
cout <<
"cut: "
<<
cut
<< endl;
11
t
->Scan(
"runno:runmean:rungain:runresol"
,
cut
);
12
}
sigma
TTree * sigma
Definition:
CurConst_dEdXCal.cxx:6
f
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
cut
Char_t cut[200]
Definition:
DQA/DQASelBhabha/DQASelBhabha-00-00-11/share/eff.cxx:63
file
char * file
Definition:
DQA_TO_DB.cxx:15
check_two_sigma_violate
void check_two_sigma_violate(TString file="rungain.root")
Definition:
RungDoca/check_two_sigma_violate.cxx:1
t
TTree * t
Definition:
binning.cxx:23
source
Mdc
DedxCalibAlg
DedxCalibAlg-00-01-20
share
template
RungDoca
check_two_sigma_violate.cxx
Generated by
1.9.6