Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VKSort
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AUSA
Oliskir
VKSort
Commits
3ae66db6
Commit
3ae66db6
authored
7 years ago
by
Oliver Kirsebom
Browse files
Options
Downloads
Patches
Plain Diff
write time in milliseconds to root file
parent
a483f3a0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
compile.sh
+2
-2
2 additions, 2 deletions
compile.sh
include/vklib/VKSortedWriter.h
+1
-0
1 addition, 0 deletions
include/vklib/VKSortedWriter.h
source/VKSortedWriter.cpp
+8
-0
8 additions, 0 deletions
source/VKSortedWriter.cpp
with
12 additions
and
3 deletions
CMakeLists.txt
+
1
−
1
View file @
3ae66db6
...
...
@@ -19,7 +19,7 @@ file(GLOB_RECURSE SOURCE "source/*.cpp")
add_library
(
vklib
${
HEADERS
}
${
SOURCE
}
${
GIT_FILE
}
)
add_executable
(
vksort
sort.cpp
${
HEADERS
}
${
SOURCE
}
)
add_executable
(
vksort sort.cpp
)
############################################
...
...
This diff is collapsed.
Click to expand it.
compile.sh
+
2
−
2
View file @
3ae66db6
rm
CMakeCache.txt
rm
-rf
CMakeCache.txt
rm
-rf
CMakeFiles/
rm
libidslib.a
rm
-rf
libidslib.a
cmake ./
make
-j4
This diff is collapsed.
Click to expand it.
include/vklib/VKSortedWriter.h
+
1
−
0
View file @
3ae66db6
...
...
@@ -63,6 +63,7 @@ namespace VEIKONKONE {
std
::
unique_ptr
<
TFile
>
fOut
;
TTree
*
tOut
;
ULong64_t
tms
;
std
::
vector
<
UInt_t
>
M
;
std
::
vector
<
std
::
unique_ptr
<
AUSA
::
DynamicBranchVector
<
ULong64_t
>>>
T
;
std
::
vector
<
std
::
unique_ptr
<
AUSA
::
DynamicBranchVector
<
Double_t
>>>
E
;
...
...
This diff is collapsed.
Click to expand it.
source/VKSortedWriter.cpp
+
8
−
0
View file @
3ae66db6
...
...
@@ -34,6 +34,10 @@ void VKSortedWriter::fill(size_t i, const VKRawReader::Hit& hit)
T
[
i
]
->
add
(
hit
.
T
);
E
[
i
]
->
add
(
hit
.
E
);
Z
[
i
]
->
add
(
hit
.
Z
);
// time in milliseconds
ULong64_t
t
=
1E-5
*
hit
.
T
;
if
(
t
>
0
&&
(
t
<
tms
||
tms
==
0
))
tms
=
t
;
}
...
...
@@ -87,6 +91,9 @@ void VKSortedWriter::setup()
string
zname
=
Form
(
"Z%i"
,
i
);
Z
[
i
]
=
move
(
make_unique
<
DynamicBranchVector
<
UInt_t
>>
(
*
tOut
,
zname
,
mname
));
}
// time in milliseconds
tOut
->
Branch
(
"tms"
,
&
tms
,
"tms/l"
);
// Prepare for receiving data
clear
();
...
...
@@ -102,6 +109,7 @@ void VKSortedWriter::clear()
E
[
i
]
->
clear
();
Z
[
i
]
->
clear
();
}
tms
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment