Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NeuRad_tests
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vratislav Chudoba
NeuRad_tests
Commits
bf84b293
Commit
bf84b293
authored
Dec 28, 2016
by
Vratislav Chudoba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Branch with class RawEvent added in read_binary_DRS application.
parent
7b3acf5f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
303 additions
and
280 deletions
+303
-280
read_binary.cpp
convertDRS4/read_binary.cpp
+286
-274
analysis_07_1.root
data/dataDSR4/analysis_07_1.root
+0
-0
RawData.cpp
dataClasses/RawData.cpp
+2
-2
RawData.h
dataClasses/RawData.h
+13
-2
makefile
makefile
+2
-2
No files found.
convertDRS4/read_binary.cpp
View file @
bf84b293
This diff is collapsed.
Click to expand it.
data/dataDSR4/analysis_07_1.root
View file @
bf84b293
No preview for this file type
dataClasses/RawData.cpp
View file @
bf84b293
...
...
@@ -20,7 +20,7 @@ RawData::~RawData() {
void
RawData
::
Reset
()
{
for
(
Int_t
i
=
0
;
i
<
1024
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
NCELLS
;
i
++
)
{
Amp
[
i
]
=
0
;
Time
[
i
]
=
0
;
}
...
...
@@ -29,7 +29,7 @@ void RawData::Reset() {
}
void
RawData
::
Print
()
{
for
(
Int_t
i
=
0
;
i
<
1024
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
NCELLS
;
i
++
)
{
cout
<<
Amp
[
i
]
<<
endl
;
// Time[i] = 0;
}
...
...
dataClasses/RawData.h
View file @
bf84b293
...
...
@@ -15,11 +15,13 @@
using
std
::
cout
;
using
std
::
endl
;
#define NCELLS 1024
class
RawData
{
private
:
Double_t
Amp
[
1024
];
Double_t
Time
[
1024
];
Double_t
Amp
[
NCELLS
];
Double_t
Time
[
NCELLS
];
public
:
RawData
();
...
...
@@ -36,6 +38,15 @@ public:
return
Time
;
}
void
SetAmp
(
Double_t
a
,
Int_t
i
)
{
if
(
i
>=
NCELLS
)
{
cout
<<
"chren'"
<<
endl
;
return
;
}
Amp
[
i
]
=
a
;
return
;
}
void
Print
();
};
...
...
makefile
View file @
bf84b293
...
...
@@ -59,11 +59,11 @@ libData.so: $(DATAOBJS)
@
echo
'Finished building target: $@'
@
echo
' '
read_binary_DRS4
:
$(CONVERTDRS4)/read_binary.cpp
read_binary_DRS4
:
libData.so
$(CONVERTDRS4)/read_binary.cpp
@
echo
'Building target: $@'
@
echo
'Invoking: GCC C++ Linker'
# $(CC) -L $(ROOTLIBS) -shared -o"libData.so" $(DATAOBJS) $(DATALIBS)
$(CC)
-o
$(CONVERTDRS4)/read_binary_DRS4
$(CONVERTDRS4)/read_binary.cpp
-lm
`root-config
--cflags
--libs`
$(CC)
-o
$(CONVERTDRS4)/read_binary_DRS4
$(CONVERTDRS4)/read_binary.cpp
-lm
`root-config
--cflags
--libs`
-L
$(PWD)
-lData
-Wl,-rpath,$(PWD)
@echo 'Finished building target
:
$@'
@
echo
' '
...
...
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