4 TFile*
f1 =
new TFile(
"YYYY/m_root_dir/LumTau_XXXX.root" );
22 for ( Int_t i = 0; i < 10; i++ )
23 {
hdltphi[i] =
new TH1D(
" ",
"dltphi distribution", 50, -50., 50. ); }
25 TH1*
htime =
new TH1D(
"htime",
"time", 80, -10., 10. );
37 for ( Int_t i = 0; i < 10; i++ )
39 for ( Int_t j = 0; j <
nentries; j++ )
42 bool lumcut =
e1 > 1.2 &&
e2 > 0.8 && fabs(
costht1 ) < 0.8 && fabs(
costht2 ) < 0.8 &&
50 for ( Int_t i = 0; i < 10; i++ )
54 lum[i] =
nevt[i] / ( 0.2 * 2514 );
58 TF1*
g1 =
new TF1(
"g1",
"[0]*exp(-x/[1])", 0, 10000. );
59 g1->SetParameters(
lum[0], 1e+4. );
60 g1->SetLineColor( 2 );
61 TGraph*
gr =
new TGraph(
n, x,
lum );
62 gr->SetLineColor( 2 );
63 gr->SetLineWidth( 2 );
64 gr->SetMarkerColor( 4 );
65 gr->SetMarkerStyle( 21 );
66 gr->SetTitle(
"BbLum_000XXXX" );
67 gr->GetXaxis()->SetTitle(
"Time" );
68 gr->GetYaxis()->SetTitle(
"Luminosity" );
73 m_outputFile.open(
"YYYY/m_txt_dir/LumTau_XXXX.txt", ios_base::app );
76 << (
g1->GetParameter( 0 ) *
exp( -1.0 *
difft / (
g1->GetParameter( 1 ) ) ) )
77 <<
" " <<
g1->GetParameter( 1 ) << endl;
80 gROOT->ProcessLine(
".q" );
std::ofstream m_outputFile
EvtComplex exp(const EvtComplex &c)