Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Be_libraries
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vratislav Chudoba
Be_libraries
Commits
b6d0b970
Commit
b6d0b970
authored
Jul 26, 2017
by
Vratislav Chudoba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interval 60-75 done.
parent
3a99821c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
183 deletions
+97
-183
ES1_6075.cxx
macros/BeCorrPRC/ES1_6075.cxx
+97
-183
No files found.
macros/BeCorrPRC/ES1_6075.cxx
View file @
b6d0b970
//
void ES1_6075()
void
ES1_6075
()
{
{
//open chain with Be events only and draw E_Be
//order: al0, noal0, al180, noal180
TStopwatch
sw
;
TStopwatch
sw
;
sw
.
Start
();
sw
.
Start
();
const
Int_t
kMinAngle
=
60
;
BeAnalysis
ana
;
const
Int_t
kMaxAngle
=
75
;
const
Int_t
lowfile
=
0
;
const
Int_t
upfile
=
40
;
const
Int_t
lowSimFile
[
6
]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
const
Int_t
upSimFile
[
6
]
=
{
14
,
14
,
14
,
14
,
14
,
14
};
const
Bool_t
shapeFit
=
0
;
TCut
cAngles
=
"fBeThetaCM1>60*TMath::DegToRad() && fBeThetaCM1<75*TMath::DegToRad()"
;
TCut
crAngles
=
"f6BeThetaCM1>60*TMath::DegToRad() && f6BeThetaCM1<75*TMath::DegToRad()"
;
//simulations
//aligned, 0 degrees
TString
chainAl0name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_"
;
TString
inputTreeAl0name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_000.root"
;
//isotropic, 0 degrees
TString
chainNoAl0name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_"
;
TString
inputTreeNoAl0name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_000.root"
;
//aligned, 180 degrees
TString
chainAl180name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_"
;
TString
inputTreeAl180name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_000.root"
;
//isotropic, 180 degrees
TString
chainNoAl180name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_"
;
TString
inputTreeNoAl180name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_000.root"
;
//isotropic, 90 degrees
TString
chainAl90name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_"
;
TString
inputTreeAl90name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_000.root"
;
//isotropic, 90 degrees
TString
chainNoAl90name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_"
;
TString
inputTreeNoAl90name
=
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_000.root"
;
// TChain *che = BeWork::OpenChain("/data2/be/rootdata/correlations/Be.",
// lowfile, upfile, "beonly"); //original file
// Info("statesRatioFitting.cxx", "%d events in chain \"%s\" containing experimental data",
// che->GetEntries(), che->GetName());
//open tree with MC simulations
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_opensimtree.cxx"
);
TChain
*
che
=
BeWork
::
OpenChain
(
"../../../be/rootdata/correlations/v5_exp/Be."
,
lowfile
,
upfile
,
"beonly"
);
//original file
Info
(
"statesRatioFitting.cxx"
,
"%d events in chain
\"
%s
\"
containing experimental data"
,
che
->
GetEntries
(),
che
->
GetName
());
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_cuts.cxx"
);
//auxiliary strings
TString
drawCommand
;
TString
hsName
;
TString
heName
;
TString
hiName
;
sw
.
Print
();
sw
.
Continue
();
const
Bool_t
savePictures
=
0
;
TString
ppath
=
"pictures/correlations/v5_6075/"
;
TString
configuration
=
"6075"
;
// TString pictFormat = ".ps";
// gStyle->SetHistLineWidth(1);
TString
pictFormat
=
".eps"
;
// TString pictFormat = ".gif";
const
Bool_t
kVerbose
=
1
;
ana
.
SetCMAngularRange
(
60
,
75
);
const
Bool_t
kAutoRange
=
1
;
// const Float_t kRangeProportion = 1.2;
const
Float_t
kRangeProportion
=
1.1
;
// const Float_t kRangeProportionIn = 1.1;
const
Float_t
kRangeProportionIn
=
2.0
;
// const Bool_t kChains[6] = {0,0,0,1,0,1};
// ana.SetFigures("figures/", ".eps");
const
Bool_t
kChains
[
6
]
=
{
1
,
1
,
1
,
1
,
1
,
1
};
const
Bool_t
spectra
=
0
;
// ana.SetChainsToDraw(0, 0, 0, 0, 1, 1);
ana
.
SetChainsToDraw
();
Bool_t
epsilonT
[
6
]
=
{
0
,
0
,
1
,
0
,
0
};
Bool_t
cosThetaT
[
6
]
=
{
0
,
0
,
1
,
0
,
0
};
const
Int_t
nointervals
=
5
;
Bool_t
epsilonY
[
6
]
=
{
0
,
0
,
1
,
0
,
0
};
Bool_t
cosThetaY
[
6
]
=
{
0
,
0
,
1
,
0
,
0
};
const
Bool_t
cosThetaT
[
nointervals
]
=
{
0
,
0
,
0
,
0
,
0
};
Bool_t
thetaAT
[
6
]
=
{
0
,
0
,
1
,
0
,
0
};
// const Bool_t cosThetaT[nointervals] = {1,1,1,1,1};
const
Bool_t
epsilonT
[
nointervals
]
=
{
1
,
1
,
1
,
1
,
1
};
// const Bool_t epsilonT[nointervals] = {1,1,1,1,1};
const
Bool_t
epsilonY
[
nointervals
]
=
{
0
,
0
,
0
,
0
,
0
};
ana
.
SetExpChain
(
"../../../be/rootdata/correlations/v5_exp/Be."
,
0
,
40
);
// const Bool_t epsilonY[nointervals] = {1,1,1,1,1};
const
Bool_t
cosThetaY
[
nointervals
]
=
{
0
,
1
,
0
,
1
,
0
};
// const Bool_t cosThetaY[nointervals] = {1,1,1,1,1};
const
Bool_t
thetaAT
[
nointervals
]
=
{
0
,
0
,
0
,
0
,
0
};
// const Bool_t thetaAT[nointervals] = {1,1,1,1,1};
const
Bool_t
thetaP1T
[
nointervals
]
=
{
0
,
0
,
1
,
0
,
0
};
// const Bool_t thetaP1T[nointervals] = {1,1,1,1,1};
TCut
sRatioAl0
=
"sRatio>0.051 && sRatio<0.101"
;
// TCut sRatioAl0 = "sRatio>0.060 && sRatio<0.110";
TCut
sRatioNoAl0
=
"sRatio>0.050 && sRatio<0.100"
;
TCut
sRatioAl180
=
"sRatio>0.047 && sRatio<0.097"
;
TCut
sRatioNoAl180
=
"sRatio>0.048 && sRatio<0.098"
;
TCut
sRatioAl90
=
"sRatio>0.051 && sRatio<0.101"
;
TCut
sRatioNoAl90
=
"sRatio>0.051 && sRatio<0.101"
;
TCut
sRatio
[
6
]
=
{
sRatioAl0
,
sRatioNoAl0
,
sRatioAl180
,
sRatioNoAl180
,
sRatioAl90
,
sRatioNoAl90
};
//integral fit
const
Long64_t
eMaxEvents
=
5000000
;
const
Long64_t
eMaxEvents
=
5000000
;
Long64_t
eEventsAl0
=
eMaxEvents
;
Long64_t
eEvents
[
6
]
=
{
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
};
Long64_t
eEventsNoAl0
=
eMaxEvents
;
ana
.
SetNoExpEvents
(
eEvents
);
Long64_t
eEventsAl180
=
eMaxEvents
;
Long64_t
eEventsNoAl180
=
eMaxEvents
;
const
Long64_t
sMaxEvents
=
3000000
;
Long64_t
eEventsAl90
=
eMaxEvents
;
Long64_t
sEvents
[
6
]
=
{
sMaxEvents
,
2700000
,
sMaxEvents
,
2700000
,
2690000
,
2710000
};
Long64_t
eEventsNoAl90
=
eMaxEvents
;
ana
.
SetNoSimEvents
(
sEvents
);
Int_t
lowSimFile
[
6
]
=
{
0
,
0
,
0
,
0
,
0
,
0
};
Int_t
upSimFile
[
6
]
=
{
14
,
14
,
14
,
14
,
14
,
14
};
ana
.
SetNoSimFiles
(
lowSimFile
,
upSimFile
);
ana
.
SetSimChains
(
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_"
);
ana
.
SetInputChains
(
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_0_50-85_000.root"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_0_50-85_000.root"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_180_50-85_000.root"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_180_50-85_000.root"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_al_90_50-85_000.root"
,
"../../../be/rootdata/correlations/v5_6075/Sim_mix_br_noal_90_50-85_000.root"
);
ana
.
OpenExpChain
();
ana
.
OpenSimChains
();
ana
.
SetRatiosGStoEX
(
"sRatio>0.051 && sRatio<0.101"
,
"sRatio>0.050 && sRatio<0.100"
,
"sRatio>0.047 && sRatio<0.097"
,
"sRatio>0.048 && sRatio<0.098"
,
"sRatio>0.051 && sRatio<0.101"
,
"sRatio>0.051 && sRatio<0.101"
);
ana
.
SetCuts
();
Long64_t
eEventsECuts
[
5
][
6
]
=
{
3950000
,
3950000
,
3800000
,
3850000
,
3950000
,
3900000
,
Long64_t
eEventsECuts
[
5
][
6
]
=
{
3950000
,
3950000
,
3800000
,
3850000
,
3950000
,
3900000
,
eMaxEvents
,
eMaxEvents
,
4100000
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
4100000
,
eMaxEvents
,
eMaxEvents
,
eMaxEvents
,
3050000
,
3150000
,
3200000
,
3200000
,
3250000
,
3350000
,
3050000
,
3150000
,
3200000
,
3200000
,
3250000
,
3350000
,
3850000
,
3950000
,
3900000
,
3900000
,
4000000
,
4000000
,
3850000
,
3950000
,
3900000
,
3900000
,
4000000
,
4000000
,
4100000
,
4100000
,
4000000
,
4100000
,
eMaxEvents
,
eMaxEvents
};
4100000
,
4100000
,
4000000
,
4100000
,
eMaxEvents
,
eMaxEvents
};
ana
.
ExpEventsECuts
(
eEventsECuts
);
const
Long64_t
eEvents
[
6
]
=
{
eEventsAl0
,
eEventsNoAl0
,
eEventsAl180
,
eEventsNoAl180
,
eEventsAl90
,
eEventsNoAl90
};
const
TChain
*
chs
[
6
]
=
{
chsAl0
,
chsNoAl0
,
chsAl180
,
chsNoAl180
,
chsAl90
,
chsNoAl90
};
const
TTree
*
ti
[
6
]
=
{
tiAl0
,
tiNoAl0
,
tiAl180
,
tiNoAl180
,
tiAl90
,
tiNoAl90
};
const
Long64_t
sMaxEvents
=
3000000
;
const
Long64_t
sMaxEvents
=
3000000
;
Long64_t
sEventsAl0
=
sMaxEvents
;
Long64_t
sEventsNoAl0
=
2700000
;
Long64_t
sEventsAl180
=
sMaxEvents
;
Long64_t
sEventsNoAl180
=
2700000
;
Long64_t
sEventsAl90
=
2690000
;
Long64_t
sEventsNoAl90
=
2710000
;
const
Long64_t
sEvents
[
6
]
=
{
sEventsAl0
,
sEventsNoAl0
,
sEventsAl180
,
sEventsNoAl180
,
sEventsAl90
,
sEventsNoAl90
};
Long64_t
sEventsECuts
[
5
][
6
]
=
{
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
Long64_t
sEventsECuts
[
5
][
6
]
=
{
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
2630000
,
sMaxEvents
,
sMaxEvents
,
2660000
,
2660000
,
sMaxEvents
,
2630000
,
sMaxEvents
,
sMaxEvents
,
2660000
,
2660000
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
};
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
,
sMaxEvents
};
ana
.
SimEventsECuts
(
sEventsECuts
);
TString
canvasTitle
;
TString
canvasName
;
ana
.
SetRangeProportion
(
1.1
,
1
);
const
Double_t
sRange
[
6
]
=
{
2000
,
2000
,
2000
,
2000
,
2000
,
2000
};
///////////////////////////////////////////////////////////////////////////////////
if
(
spectra
)
{
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_spectra_v5.cxx"
);
ana
.
SetSpectra
();
}
ana
.
Spectra
();
// "T" system
ana
.
SetEpsilonTintervals
(
epsilonT
);
const
Double_t
eTRange
[
5
][
6
]
=
{
300
,
300
,
300
,
300
,
300
,
300
,
// ana.SetEpsilonTintervals();
380
,
380
,
380
,
380
,
380
,
380
,
ana
.
EpsilonT
();
300
,
300
,
300
,
300
,
300
,
300
,
500
,
500
,
500
,
500
,
500
,
500
,
sw
.
Print
();
500
,
500
,
500
,
500
,
500
,
500
};
sw
.
Continue
();
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_epsilonT.cxx"
);
ana
.
SetCosThetaTkIntervals
(
cosThetaT
);
// return;
// ana.CosThetaTk();
const
Double_t
coskTRange
[
5
][
6
]
=
{
350
,
350
,
350
,
350
,
350
,
350
,
sw
.
Print
();
400
,
400
,
400
,
400
,
400
,
400
,
sw
.
Continue
();
350
,
350
,
350
,
350
,
350
,
350
,
700
,
700
,
700
,
700
,
700
,
700
,
ana
.
SetEpsilonYintervals
(
epsilonY
);
900
,
900
,
900
,
900
,
900
,
900
};
// ana.EpsilonY();
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_cosThetaTk.cxx"
);
sw
.
Print
();
// "Y" system
sw
.
Continue
();
const
Double_t
eYRange
[
5
][
6
]
=
{
400
,
400
,
400
,
400
,
400
,
400
,
450
,
450
,
450
,
450
,
450
,
450
,
ana
.
SetCosThetaYkIntervals
(
cosThetaY
);
400
,
400
,
400
,
400
,
400
,
400
,
// ana.CosThetaYk();
800
,
800
,
800
,
800
,
800
,
800
,
1000
,
1000
,
1000
,
1000
,
1000
,
1000
};
sw
.
Print
();
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_epsilonY.cxx"
);
sw
.
Continue
();
const
Double_t
coskYRange
[
5
][
6
]
=
{
250
,
250
,
250
,
250
,
250
,
250
,
ana
.
SetThetaATintervals
(
thetaAT
);
350
,
350
,
350
,
350
,
350
,
350
,
//// ana.SetThetaATintervals();
300
,
300
,
300
,
300
,
300
,
300
,
// ana.ThetaAT();
450
,
450
,
450
,
450
,
450
,
450
,
500
,
500
,
500
,
500
,
500
,
500
};
sw
.
Print
();
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_cosThetaYk.cxx"
);
sw
.
Continue
();
Info
(
"ES1_90120.cxx"
,
"Finished."
);
const
Double_t
tP1Range
[
5
][
6
]
=
{
90
,
90
,
90
,
90
,
90
,
90
,
return
;
140
,
140
,
140
,
140
,
140
,
140
,
130
,
130
,
130
,
130
,
130
,
130
,
190
,
190
,
190
,
190
,
190
,
190
,
200
,
200
,
200
,
200
,
200
,
200
};
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_thetaP1T.cxx"
);
const
Double_t
tARange
[
5
][
6
]
=
{
90
,
90
,
90
,
90
,
90
,
90
,
140
,
140
,
140
,
140
,
140
,
140
,
160
,
120
,
160
,
120
,
160
,
120
,
230
,
180
,
230
,
180
,
230
,
180
,
210
,
210
,
210
,
210
,
210
,
210
};
gROOT
->
ProcessLine
(
".x ../corr_templates/sfAngInt_thetaAT.cxx"
);
Info
(
"correlations_v5_6075.cxx"
,
"Finished."
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment