Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo Longo
JZCaPA
Commits
f39f1cd0
Commit
f39f1cd0
authored
Feb 22, 2019
by
Chad Lantz
Browse files
Attempted to utilize Visualizer. Comitting for troubleshooting purposes
parent
b1d46376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Analysis/src/DataReader.cpp
View file @
f39f1cd0
...
...
@@ -23,6 +23,7 @@
#include
"Containers.h"
#include
"RPD.h"
#include
"ZDC.h"
#include
"Visualizer.h"
/** @brief Default Constructor for DataReader.
*/
...
...
@@ -306,6 +307,12 @@ void DataReader::ProcessEvents(){
TPad
*
pad
=
new
TPad
(
"pad"
,
"pad"
,
0.15
,
0.11
,
0.85
,
0.79
);
canvas
->
Divide
(
4
,
2
);
std
::
string
style
=
"ATLAS"
;
//Visualizer vis;
std
::
vector
<
TH1
*
>
raw
;
std
::
vector
<
TH1
*
>
diff
;
// Processed Raw data to read in as vector of vectors size NxM
// Where N = nCh and M = nSamples per channel.
std
::
vector
<
std
::
vector
<
float
>
>
vWF
;
...
...
@@ -381,6 +388,11 @@ void DataReader::ProcessEvents(){
//ana->AnalyzeEvent( zdc1->GetChannelsVector(), canvas->cd() );
//ana->AnalyzeEvent( zdc2->GetChannelsVector(), canvas->cd() );
ana
->
AnalyzeEvent
(
rpd
->
GetChannelsVector
()
,
canvas
->
cd
()
);
for
(
int
test
=
0
;
test
<
16
;
test
++
){
raw
.
push_back
(
rpd
->
GetChannelsVector
().
at
(
test
)
->
WF_histo
);
diff
.
push_back
(
rpd
->
GetChannelsVector
().
at
(
test
)
->
FirstDerivative
);
}
//vis.ManyPadsPlot(raw,diff,4,4,Form("Event %d" ,ev),"Overlay");
}
else
{
ana
->
AnalyzeEvent
(
zdc1
->
GetChannelsVector
()
);
ana
->
AnalyzeEvent
(
zdc2
->
GetChannelsVector
()
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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