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
Open sidebar
Guillaume Baulieu
agapro
Commits
c8aeb3b4
Commit
c8aeb3b4
authored
Feb 01, 2019
by
Jérémie Dudouet
Browse files
Adaptation of the TreeBuilder for Vamos to the new vanalysis library
parent
76c2688d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
47 deletions
+4
-47
consumers/TreeBuilder/AGAPRO_TB_VAMOS.cpp
consumers/TreeBuilder/AGAPRO_TB_VAMOS.cpp
+4
-47
No files found.
consumers/TreeBuilder/AGAPRO_TB_VAMOS.cpp
View file @
c8aeb3b4
...
...
@@ -132,57 +132,14 @@ void TB_VAMOS::Process(Int_t idet)
if
(
fAnalysis
==
nullptr
)
return
;
fAnalysis
->
Clear
();
fFrame
=
fTrigger
->
GetInputSharedFP
(
idet
+
1
);
fFrame
->
GetFrame
()
->
Read
();
// fMFMMergeFrame->SetAttributs(((ADF::RawFrame *)fFrame->GetFrame())->RawBuffer().Address());
fMFMCommonFrame
->
SetAttributs
(((
ADF
::
RawFrame
*
)
fFrame
->
GetFrame
())
->
RawBuffer
().
Address
());
// cout<<fFrame->GetFrame()->GetLength()<<endl;
// cout<<((AgataKey*)fFrame->GetFrame()->GetKey())->GetTimeStamp()<<endl;
if
(
fMFMCommonFrame
->
GetFrameTypeAttribut
()
==
MFM_EBY_EN_TS_FRAME_TYPE
)
{
fMFMEBYFrame
->
SetAttributs
(
fMFMCommonFrame
->
GetPointHeader
());
// extract new one from MFM
Int_t
size
=
fMFMEBYFrame
->
GetNbItemsAttribut
();
for
(
Int_t
i
=
0
;
i
<
size
;
i
++
)
{
fMFMEBYFrame
->
EbyedatGetParameters
(
i
,
&
fData
[
0
],
&
fData
[
1
]);
if
(
fData
[
0
]
==
0
)
{
Log
<<
error
<<
Form
(
"LABEL Error : Label 0 found in the data LABEL: %d DATA : %d !"
,
fData
[
0
],
fData
[
1
])
<<
dolog
;
continue
;
}
fAnalysis
->
Add
(
fData
);
}
ULong64_t
MFM_TS
=
0
;
MFM_TS
=
fMFMEBYFrame
->
GetTimeStamp
();
// Store Time Stamp as parameter
fData
[
0
]
=
16385
;
fData
[
1
]
=
(
UShort_t
)
(
MFM_TS
*
1.e-5
)
;
// in mSec
fAnalysis
->
Add
(
fData
);
fData
[
0
]
=
16386
;
fData
[
1
]
=
(
UShort_t
)
(
fMFMEBYFrame
->
GetEventNumber
())
;
fAnalysis
->
Add
(
fData
);
fAnalysis
->
Treat
();
fAnalysis
->
FillHistograms
();
}
fMFMCommonFrame
->
SetAttributs
(((
ADF
::
RawFrame
*
)
fFrame
->
GetFrame
())
->
RawBuffer
().
Address
());
//
fAnalysis->Clear();
//
fAnalysis->Un
p
ack(fMFMCommonFrame);
//
fAnalysis->Treat();
fAnalysis
->
Clear
();
fAnalysis
->
Un
P
ack
(
fMFMCommonFrame
);
fAnalysis
->
Treat
();
}
UInt_t
TB_VAMOS
::
GetParameters
(
const
std
::
string
&
confFile
,
Bool_t
doList
)
...
...
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