Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
Marcin
2018 Agata Neda Diamant Campaign - TSelector
Commits
e356a684
Commit
e356a684
authored
Apr 25, 2018
by
Jérémie Dudouet
Browse files
Add a light mode which process only the most important histograms
parent
20e6c971
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
153 deletions
+159
-153
Conf/PlotResults.conf.EXAMPLE
Conf/PlotResults.conf.EXAMPLE
+3
-0
src/PlotResults.cxx
src/PlotResults.cxx
+20
-13
src/PlotResults.h
src/PlotResults.h
+1
-0
src/PlotResultsSelector.C
src/PlotResultsSelector.C
+134
-126
src/PlotResultsSelector.h
src/PlotResultsSelector.h
+1
-14
No files found.
Conf/PlotResults.conf.EXAMPLE
View file @
e356a684
...
...
@@ -47,6 +47,9 @@ TreeName TreeMaster
#
FileNameOut Auto
### Light mode keep only the most usefull histograms, comment to ignore
#LighMode
### Remove Histograms with stat lower or equal than StatMin
#StatMin 1000
...
...
src/PlotResults.cxx
View file @
e356a684
...
...
@@ -65,6 +65,7 @@ void SetProofGlobalValues()
fProof
->
SetParameter
(
"NedaTimeGateFormula"
,(
TString
)
fNedaTimeGateFormula
);
fProof
->
SetParameter
(
"DiamantTimeGateFormula"
,(
TString
)
fDiamantTimeGateFormula
);
fProof
->
SetParameter
(
"StatMin"
,(
Int_t
)
fStatMin
);
fProof
->
SetParameter
(
"LightMode"
,(
Int_t
)
fLightMode
);
}
void
SetStandardGlobalValues
()
...
...
@@ -83,6 +84,7 @@ void SetStandardGlobalValues()
gEnv
->
SetValue
(
"NedaTimeGateFormula"
,
(
TString
)
fNedaTimeGateFormula
);
gEnv
->
SetValue
(
"DiamantTimeGateFormula"
,
(
TString
)
fDiamantTimeGateFormula
);
gEnv
->
SetValue
(
"StatMin"
,
(
Int_t
)
fStatMin
);
gEnv
->
SetValue
(
"LightMode"
,
(
Int_t
)
fLightMode
);
}
void
ReadChain
()
...
...
@@ -236,13 +238,13 @@ void ReadConfFile()
delete
loa
;
loa
=
Buffer
.
Tokenize
(
","
);
cout
<<
"List of runs = "
;
cout
<<
"
\e[1;92m
List of runs = "
;
for
(
int
i
=
0
;
i
<
loa
->
GetEntries
()
;
i
++
)
{
runs
.
push_back
(((
TString
)
loa
->
At
(
i
)
->
GetName
()).
Atoi
());
cout
<<
runs
[
i
]
<<
" "
;
}
cout
<<
endl
;
cout
<<
"\e[0m"
<<
endl
;
delete
loa
;
}
else
if
(
Buffer
.
BeginsWith
(
"ListOfRuns"
))
...
...
@@ -257,19 +259,19 @@ void ReadConfFile()
Int_t
LastRun
=
((
TString
)
loa
->
Last
()
->
GetName
()).
Atoi
();
delete
loa
;
cout
<<
"List of runs : all existing runs from "
<<
FirstRun
<<
" to "
<<
LastRun
<<
endl
;
cout
<<
"
\e[1;92m
List of runs : all existing runs from "
<<
FirstRun
<<
" to "
<<
LastRun
<<
endl
;
for
(
int
i
=
FirstRun
;
i
<=
LastRun
;
i
++
)
{
runs
.
push_back
(
i
);
}
cout
<<
endl
;
cout
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"DataFolder"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fDataFolder
=
((
TString
)
loa
->
At
(
1
)
->
GetName
());
delete
loa
;
cout
<<
"Data Folder = "
<<
fDataFolder
<<
endl
;
cout
<<
"
\e[1;92m
Data Folder = "
<<
fDataFolder
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"BaseRootFileName"
))
{
...
...
@@ -299,14 +301,14 @@ void ReadConfFile()
delete
loa
;
}
cout
<<
"Output FileName = "
<<
fFileNameOut
<<
endl
;
cout
<<
"
\e[1;92m
Output FileName = "
<<
fFileNameOut
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"DiamantLookUpTable"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fDiamantLookUpTable
=
((
TString
)
loa
->
At
(
1
)
->
GetName
());
delete
loa
;
cout
<<
"DiamantLookUpTable = "
<<
fDiamantLookUpTable
<<
endl
;
cout
<<
"
\e[1;92m
DiamantLookUpTable = "
<<
fDiamantLookUpTable
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"DiamantTSPeaks"
))
{
...
...
@@ -320,21 +322,21 @@ void ReadConfFile()
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fDiamantCutsLocation
=
((
TString
)
loa
->
At
(
1
)
->
GetName
());
delete
loa
;
cout
<<
"DiamantCutsLocation = "
<<
fDiamantCutsLocation
<<
endl
;
cout
<<
"
\e[1;92m
DiamantCutsLocation = "
<<
fDiamantCutsLocation
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"NedaLookUpTable"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fNedaLookUpTable
=
((
TString
)
loa
->
At
(
1
)
->
GetName
());
delete
loa
;
cout
<<
"NedaLookUpTable = "
<<
fNedaLookUpTable
<<
endl
;
cout
<<
"
\e[1;92m
NedaLookUpTable = "
<<
fNedaLookUpTable
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"NedaCutsLocation"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fNedaCutsLocation
=
((
TString
)
loa
->
At
(
1
)
->
GetName
());
delete
loa
;
cout
<<
"NedaCutsLocation = "
<<
fNedaCutsLocation
<<
endl
;
cout
<<
"
\e[1;92m
NedaCutsLocation = "
<<
fNedaCutsLocation
<<
"\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"SpecificFile"
))
{
...
...
@@ -353,21 +355,26 @@ void ReadConfFile()
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fNedaTimeGateFormula
=
Form
(
"%s;%s"
,
loa
->
At
(
1
)
->
GetName
(),
loa
->
At
(
2
)
->
GetName
());
delete
loa
;
cout
<<
"NedaTimeGate (min;max) = ("
<<
fNedaTimeGateFormula
<<
")"
<<
endl
;
cout
<<
"
\e[1;92m
NedaTimeGate (min;max) = ("
<<
fNedaTimeGateFormula
<<
")
\e[0m
"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"DiamantTimeGate"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fDiamantTimeGateFormula
=
Form
(
"%s;%s"
,
loa
->
At
(
1
)
->
GetName
(),
loa
->
At
(
2
)
->
GetName
());
delete
loa
;
cout
<<
"DiamantTimeGate (min;max) = ("
<<
fDiamantTimeGateFormula
<<
")"
<<
endl
;
cout
<<
"
\e[1;92m
DiamantTimeGate (min;max) = ("
<<
fDiamantTimeGateFormula
<<
")
\e[0m
"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"StatMin"
))
{
TObjArray
*
loa
=
Buffer
.
Tokenize
(
" "
);
fStatMin
=
((
TString
)
loa
->
At
(
1
)
->
GetName
()).
Atoi
();
delete
loa
;
cout
<<
"minimal statistics to save spectra = "
<<
fStatMin
<<
" events"
<<
endl
;
cout
<<
"\e[1;92mminimal statistics to save spectra = "
<<
fStatMin
<<
" events\e[0m"
<<
endl
;
}
if
(
Buffer
.
BeginsWith
(
"LighMode"
))
{
fLightMode
=
true
;
cout
<<
"\e[1;92mLight mode used, minimal number of histograms will be stored\e[0m"
<<
endl
;
}
}
...
...
src/PlotResults.h
View file @
e356a684
...
...
@@ -73,6 +73,7 @@ TString fListOfZToPlot;
TString
fNedaTimeGateFormula
=
""
;
TString
fDiamantTimeGateFormula
=
""
;
Bool_t
fLightMode
=
false
;
Int_t
fStatMin
=-
1
;
Bool_t
fUseProof
;
...
...
src/PlotResultsSelector.C
View file @
e356a684
...
...
@@ -102,6 +102,7 @@ void PlotResultsSelector::Begin(TTree * /*tree*/)
delete
arr
;
fStatMin
=
gEnv
->
GetValue
(
"StatMin"
,
dummyint
);
fLightMode
=
(
Bool_t
)
gEnv
->
GetValue
(
"LightMode"
,
dummyint
);
if
(
!
fDiamantLookUpTable
.
BeginsWith
(
"/"
)
&&
fDiamantLookUpTable
.
Length
())
fDiamantLookUpTable
.
Prepend
(
Form
(
"%s/"
,
fWorkingDir
.
Data
()));
...
...
@@ -175,6 +176,7 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
delete
arr
;
fStatMin
=
((
Int_t
)((
TParameter
<
Int_t
>*
)
fInput
->
FindObject
(
"StatMin"
))
->
GetVal
());
fLightMode
=
((
Int_t
)((
TParameter
<
Int_t
>*
)
fInput
->
FindObject
(
"LightMode"
))
->
GetVal
());
if
(
!
fDiamantLookUpTable
.
BeginsWith
(
"/"
)
&&
fDiamantLookUpTable
.
Length
())
fDiamantLookUpTable
.
Prepend
(
Form
(
"%s/"
,
fWorkingDir
.
Data
()));
...
...
@@ -299,66 +301,70 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
Neda_Id_h
=
BuildHist1D
(
"Neda_Id"
,
Id_NEDA
,
fNedaHistList
);
Neda_Mult_h
=
BuildHist1D
(
"Neda_Mult"
,
NEDA_mult
,
fNedaHistList
);
NEDANNeutrons_h
=
BuildHist1D
(
"Neda_NNeutrons"
,
NEDA_NNeutrons
,
fNedaHistList
);
TList
*
l
=
new
TList
;
l
->
SetName
(
"Tdc"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDATdc%02i"
,
i
);
NEDATdc_h
[
i
]
=
BuildHist1D
(
hist_name
,
NEDA_Tdc
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Slow"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDASlow%02i"
,
i
);
NEDASlow_h
[
i
]
=
BuildHist1D
(
hist_name
,
Slow
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Fast"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAFast%02i"
,
i
);
NEDAFast_h
[
i
]
=
BuildHist1D
(
hist_name
,
Fast
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Energy"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAEnergy%02i"
,
i
);
NEDAEnergy_h
[
i
]
=
BuildHist1D
(
hist_name
,
Energy
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Zco"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAZco%02i"
,
i
);
NEDAZco_h
[
i
]
=
BuildHist1D
(
hist_name
,
NEDA_Zco
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Cc"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDACc%02i"
,
i
);
NEDACc_h
[
i
]
=
BuildHist1D
(
hist_name
,
Slow_over_Fast
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"ToF"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAToF%02i"
,
i
);
NEDAToF_h
[
i
]
=
BuildHist1D
(
hist_name
,
ToF
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"DeltaTSTime"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
Neda_BoardvsChannel_h
=
BuildHist2D
(
"Neda_BoardvsChannel"
,
Board_NEDA
,
Channel
,
fNedaHistList
);
TList
*
l
=
nullptr
;
if
(
fLightMode
==
false
)
{
TString
hist_name
=
Form
(
"NEDADeltaTSTime%02i"
,
i
);
NEDADeltaTSTime_h
[
i
]
=
BuildHist1D
(
hist_name
,
NEDA_DeltaTSTime
,
l
);
l
=
new
TList
;
l
->
SetName
(
"Tdc"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDATdc%02i"
,
i
);
NEDATdc_h
[
i
]
=
BuildHist1D
(
hist_name
,
NEDA_Tdc
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Slow"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDASlow%02i"
,
i
);
NEDASlow_h
[
i
]
=
BuildHist1D
(
hist_name
,
Slow
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Fast"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAFast%02i"
,
i
);
NEDAFast_h
[
i
]
=
BuildHist1D
(
hist_name
,
Fast
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Energy"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAEnergy%02i"
,
i
);
NEDAEnergy_h
[
i
]
=
BuildHist1D
(
hist_name
,
Energy
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Zco"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAZco%02i"
,
i
);
NEDAZco_h
[
i
]
=
BuildHist1D
(
hist_name
,
NEDA_Zco
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Cc"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDACc%02i"
,
i
);
NEDACc_h
[
i
]
=
BuildHist1D
(
hist_name
,
Slow_over_Fast
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"ToF"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDAToF%02i"
,
i
);
NEDAToF_h
[
i
]
=
BuildHist1D
(
hist_name
,
ToF
,
l
);
}
}
///TH2
///
Neda_BoardvsChannel_h
=
BuildHist2D
(
"Neda_BoardvsChannel"
,
Board_NEDA
,
Channel
,
fNedaHistList
);
NEDACcTof_tot_h
=
BuildHist2D
(
"NEDACcTof_tot"
,
Slow_over_Fast
,
ToF
,
fNedaHistList
);
l
=
new
TList
;
l
->
SetName
(
"CcTof"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
if
(
fLightMode
==
false
)
{
TString
hist_name
=
Form
(
"NEDACcTof%02i"
,
i
);
NEDACcTof_h
[
i
]
=
BuildHist2D
(
hist_name
,
Slow_over_Fast
,
ToF
,
l
);
NEDACcTof_tot_h
=
BuildHist2D
(
"NEDACcTof_tot"
,
Slow_over_Fast
,
ToF
,
fNedaHistList
);
l
=
new
TList
;
l
->
SetName
(
"CcTof"
);
fNedaHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxNEDA
;
i
++
)
{
TString
hist_name
=
Form
(
"NEDACcTof%02i"
,
i
);
NEDACcTof_h
[
i
]
=
BuildHist2D
(
hist_name
,
Slow_over_Fast
,
ToF
,
l
);
}
}
NEDAEnergyCc_tot_h
=
BuildHist2D
(
"NEDAEnergyCc_tot"
,
Energy
,
Slow_over_Fast
,
fNedaHistList
);
...
...
@@ -388,36 +394,30 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
DiamantEnergyPIDtot_h
=
BuildHist2D
(
"DiamantEnergyPIDtot"
,
Diamant_Energy
,
Diamant_PID
,
fDiamantHistList
);
l
=
new
TList
;
l
->
SetName
(
"Energy"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"DiamantEnergy%02i"
,
i
);
DiamantEnergy_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_Energy
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Top"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
if
(
fLightMode
==
false
)
{
TString
hist_name
=
Form
(
"DiamantTop%02i"
,
i
);
DiamantTop_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_Top
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"Energy"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"DiamantEnergy%02i"
,
i
);
DiamantEnergy_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_Energy
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"
PID
"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"Diamant
PID
%02i"
,
i
);
Diamant
PID
_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_
PID
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"
Top
"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"Diamant
Top
%02i"
,
i
);
Diamant
Top
_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_
Top
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"DeltaTSTime"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"DiamantDeltaTSTime%02i"
,
i
);
DiamantDeltaTSTime_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_DeltaTSTime
,
l
);
l
=
new
TList
;
l
->
SetName
(
"PID"
);
fDiamantHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
MaxDIAMANT
;
i
++
)
{
TString
hist_name
=
Form
(
"DiamantPID%02i"
,
i
);
DiamantPID_h
[
i
]
=
BuildHist1D
(
hist_name
,
Diamant_PID
,
l
);
}
}
// TH2F
l
=
new
TList
;
l
->
SetName
(
"EnergyPID"
);
fDiamantHistList
->
Add
(
l
);
...
...
@@ -436,27 +436,32 @@ void PlotResultsSelector::SlaveBegin(TTree * /*tree*/)
AGATA_Mult_h
=
BuildHist1D
(
"AGATAMult"
,
AGATA_mult
,
fAgataHistList
);
AGATA_HitMult_h
=
BuildHist1D
(
"AGATAHitMult"
,
AGATA_Hitmult
,
fAgataHistList
);
AGATA_CoreMult_h
=
BuildHist1D
(
"AGATACoreMult"
,
AGATA_Coremult
,
fAgataHistList
);
AGATA_TrackE_h
=
BuildHist1D
(
"TrackE"
,
EGamma2
,
fAgataHistList
);
l
=
new
TList
;
l
->
SetName
(
"TrackEvsNn"
);
fAgataHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
NMax_Neutrons_pdx
;
i
++
)
if
(
fLightMode
==
false
)
{
TString
hist_name
=
Form
(
"TrackE_n%i"
,
i
);
AGATA_TrackEvsNn_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"TrackEvsAlpha"
);
fAgataHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
NMax_Alphas_pdx
;
i
++
)
{
TString
hist_name
=
Form
(
"TrackE_alpha%i"
,
i
);
AGATA_TrackEvsAlpha_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
}
AGATA_TrackE_h
=
BuildHist1D
(
"TrackE"
,
EGamma2
,
fAgataHistList
);
l
=
new
TList
;
l
->
SetName
(
"TrackEvsProton"
);
fAgataHistList
->
Add
(
l
);
// max 7 protons
for
(
Int_t
i
=
0
;
i
<
NMax_Protons_pdx
;
i
++
)
{
TString
hist_name
=
Form
(
"TrackE_proton%i"
,
i
);
AGATA_TrackEvsProton_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
l
=
new
TList
;
l
->
SetName
(
"TrackEvsNn"
);
fAgataHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
NMax_Neutrons_pdx
;
i
++
)
{
TString
hist_name
=
Form
(
"TrackE_n%i"
,
i
);
AGATA_TrackEvsNn_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"TrackEvsAlpha"
);
fAgataHistList
->
Add
(
l
);
for
(
Int_t
i
=
0
;
i
<
NMax_Alphas_pdx
;
i
++
)
{
TString
hist_name
=
Form
(
"TrackE_alpha%i"
,
i
);
AGATA_TrackEvsAlpha_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
}
l
=
new
TList
;
l
->
SetName
(
"TrackEvsProton"
);
fAgataHistList
->
Add
(
l
);
// max 7 protons
for
(
Int_t
i
=
0
;
i
<
NMax_Protons_pdx
;
i
++
)
{
TString
hist_name
=
Form
(
"TrackE_proton%i"
,
i
);
AGATA_TrackEvsProton_h
[
i
]
=
BuildHist1D
(
hist_name
,
EGamma2
,
l
);
}
}
/// ******************************** ///
...
...
@@ -747,18 +752,21 @@ void PlotResultsSelector::FillHistos()
Int_t
id
=
Neda_Id
[
i
];
Neda_Id_h
->
Fill
(
id
);
NEDATdc_h
[
id
]
->
Fill
(
Neda_Tdc
[
i
]);
NEDASlow_h
[
id
]
->
Fill
(
Neda_Slow
[
i
]);
NEDAFast_h
[
id
]
->
Fill
(
Neda_Fast
[
i
]);
NEDAEnergy_h
[
id
]
->
Fill
(
NEDAEnergy
[
i
]);
NEDAZco_h
[
id
]
->
Fill
(
Neda_Zco
[
i
]);
NEDACc_h
[
id
]
->
Fill
(
NEDACc
[
i
]);
NEDAToF_h
[
id
]
->
Fill
(
NEDATof
[
i
]);
NEDADeltaTSTime_h
[
id
]
->
Fill
(
NEDA_DeltaTSTime
[
i
]);
Neda_BoardvsChannel_h
->
Fill
(
Neda_BoardId
[
i
],
Neda_ChannelId
[
i
]);
NEDACcTof_tot_h
->
Fill
(
NEDACc
[
i
],
NEDATof
[
i
]);
NEDACcTof_h
[
id
]
->
Fill
(
NEDACc
[
i
],
NEDATof
[
i
]);
if
(
fLightMode
==
false
)
{
NEDATdc_h
[
id
]
->
Fill
(
Neda_Tdc
[
i
]);
NEDASlow_h
[
id
]
->
Fill
(
Neda_Slow
[
i
]);
NEDAFast_h
[
id
]
->
Fill
(
Neda_Fast
[
i
]);
NEDAEnergy_h
[
id
]
->
Fill
(
NEDAEnergy
[
i
]);
NEDAZco_h
[
id
]
->
Fill
(
Neda_Zco
[
i
]);
NEDACc_h
[
id
]
->
Fill
(
NEDACc
[
i
]);
NEDAToF_h
[
id
]
->
Fill
(
NEDATof
[
i
]);
NEDACcTof_tot_h
->
Fill
(
NEDACc
[
i
],
NEDATof
[
i
]);
NEDACcTof_h
[
id
]
->
Fill
(
NEDACc
[
i
],
NEDATof
[
i
]);
}
if
(
id
<
54
)
NEDAEnergyCc_tot_h
->
Fill
(
NEDAEnergy
[
i
],
NEDACc
[
i
]);
//NWall excluded
...
...
@@ -784,12 +792,15 @@ void PlotResultsSelector::FillHistos()
Diamant_Id_h
->
Fill
(
id
);
Diamant_BoardvsChannel_h
->
Fill
(
Diamant_BoardId
[
i
],
Diamant_ChannelId
[
i
]);
DiamantEnergy_h
[
id
]
->
Fill
(
Diamant_Energy
[
i
]);
DiamantTop_h
[
id
]
->
Fill
(
Diamant_Top
[
i
]);
DiamantPID_h
[
id
]
->
Fill
(
Diamant_PID
[
i
]);
if
(
fLightMode
==
false
)
{
DiamantEnergy_h
[
id
]
->
Fill
(
Diamant_Energy
[
i
]);
DiamantTop_h
[
id
]
->
Fill
(
Diamant_Top
[
i
]);
DiamantPID_h
[
id
]
->
Fill
(
Diamant_PID
[
i
]);
}
DiamantEnergyPID_h
[
id
]
->
Fill
(
Diamant_Energy
[
i
],
Diamant_PID
[
i
]);
DiamantEnergyPIDtot_h
->
Fill
(
Diamant_Energy
[
i
],
Diamant_PID
[
i
]);
DiamantDeltaTSTime_h
[
id
]
->
Fill
(
Diamant_DeltaTSTime
[
i
]);
}
/// Fill AGATA
...
...
@@ -800,28 +811,25 @@ void PlotResultsSelector::FillHistos()
AGATA_HitMult_h
->
Fill
(
nbHits
);
AGATA_CoreMult_h
->
Fill
(
nbCores
);
Long64_t
Agata_time
;
for
(
int
ig1
=
0
;
ig1
<
nbTrack
;
ig1
++
)
if
(
fLightMode
==
false
)
{
Agata_time
=
trackT
[
ig1
]
-
trackT
[
0
];
if
(
Agata_time
>
Agata_max_DeltaTS
||
Agata_time
<
Agata_min_DeltaTS
)
continue
;
if
(
trackE
[
ig1
]
>
0
)
for
(
int
ig1
=
0
;
ig1
<
nbTrack
;
ig1
++
)
{
AGATA_TrackE_h
->
Fill
(
trackE
[
ig1
]
);
if
(
trackE
[
ig1
]
>
0
)
{
AGATA_TrackE_h
->
Fill
(
trackE
[
ig1
]
);
int
in
=
NEDA_NNeutrons
;
if
(
in
>
(
NMax_Neutrons_pdx
-
1
))
in
=
NMax_Neutrons_pdx
-
1
;
int
ia
=
DIAMANT_NAlphas
;
if
(
ia
>
(
NMax_Alphas_pdx
-
1
))
ia
=
NMax_Alphas_pdx
-
1
;
int
ip
=
DIAMANT_NProtons
;
if
(
ip
>
(
NMax_Protons_pdx
-
1
))
ip
=
NMax_Protons_pdx
-
1
;
int
in
=
NEDA_NNeutrons
;
if
(
in
>
(
NMax_Neutrons_pdx
-
1
))
in
=
NMax_Neutrons_pdx
-
1
;
int
ia
=
DIAMANT_NAlphas
;
if
(
ia
>
(
NMax_Alphas_pdx
-
1
))
ia
=
NMax_Alphas_pdx
-
1
;
int
ip
=
DIAMANT_NProtons
;
if
(
ip
>
(
NMax_Protons_pdx
-
1
))
ip
=
NMax_Protons_pdx
-
1
;
AGATA_TrackEvsNn_h
[
in
]
->
Fill
(
trackE
[
ig1
]
);
AGATA_TrackEvsNn_h
[
in
]
->
Fill
(
trackE
[
ig1
]
);
AGATA_TrackEvsAlpha_h
[
ia
]
->
Fill
(
trackE
[
ig1
]
);
AGATA_TrackEvsAlpha_h
[
ia
]
->
Fill
(
trackE
[
ig1
]
);
AGATA_TrackEvsProton_h
[
ip
]
->
Fill
(
trackE
[
ig1
]
);
AGATA_TrackEvsProton_h
[
ip
]
->
Fill
(
trackE
[
ig1
]
);
}
}
}
...
...
src/PlotResultsSelector.h
View file @
e356a684
...
...
@@ -67,17 +67,6 @@ class PlotResultsSelector : public TSelector {
static
const
Int_t
MaxParticleidx
=
NMax_Neutrons_pdx
*
NMax_Protons_pdx
*
NMax_Alphas_pdx
;
static
const
Int_t
Neda_DeltaTS_time0
=
44
;
static
const
Int_t
Neda_max_DeltaTS
=
10
;
static
const
Int_t
Neda_min_DeltaTS
=
-
10
;
static
const
Int_t
Diamant_DeltaTS_time0
=
49
;
static
const
Int_t
Diamant_max_DeltaTS
=
10
;
static
const
Int_t
Diamant_min_DeltaTS
=
-
10
;
static
const
Int_t
Agata_max_DeltaTS
=
10
;
static
const
Int_t
Agata_min_DeltaTS
=
-
10
;
public
:
TTree
*
fChain
;
//!pointer to the analyzed TTree or TChain
...
...
@@ -132,7 +121,7 @@ public :
bool
fApplyDiamantTimeGate
=
false
;
pair
<
float
,
float
>
fDiamantTimeGate
;
Bool_t
fLightMode
;
Int_t
fStatMin
;
Int_t
nbDIAMANT
;
...
...
@@ -241,7 +230,6 @@ public :
TH1F
*
NEDAEnergy_h
[
MaxNEDA
];
// slow + fast
TH1F
*
NEDAZco_h
[
MaxNEDA
];
TH1F
*
NEDAToF_h
[
MaxNEDA
];
// same as TDC + float randomization
TH1F
*
NEDADeltaTSTime_h
[
MaxNEDA
];
TH1F
*
NEDANNeutrons_h
;
...
...
@@ -261,7 +249,6 @@ public :
TH1F
*
Diamant_NProtons_h
;
TH1F
*
Diamant_NAlphas_h
;
TH1F
*
DiamantDeltaTSTime_h
[
MaxDIAMANT
];
TH1F
*
DiamantEnergy_h
[
MaxDIAMANT
];
TH1F
*
DiamantTop_h
[
MaxDIAMANT
];
TH1F
*
DiamantPID_h
[
MaxDIAMANT
];
...
...
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