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
3527c892
Commit
3527c892
authored
7 years ago
by
Oliver Kirsebom
Browse files
Options
Downloads
Patches
Plain Diff
fixed ordering of channels
parent
b6ef6971
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sort.cpp
+24
-21
24 additions, 21 deletions
sort.cpp
with
24 additions
and
21 deletions
sort.cpp
+
24
−
21
View file @
3527c892
...
...
@@ -55,15 +55,14 @@ int main( int argc, char* argv[] ){
// data readers
vector
<
shared_ptr
<
VKRawReader
>>
readers
;
size_t
i
=
0
;
for
(
auto
&
in
:
input
)
{
if
(
find
(
_ignore
.
begin
(),
_ignore
.
end
(),
i
)
==
_ignore
.
end
())
{
for
(
size_t
i
=
0
;
i
<
input
.
size
();
i
++
)
{
auto
&
in
=
input
[
i
];
if
(
find
(
_ignore
.
begin
(),
_ignore
.
end
(),
chan
[
i
]
)
==
_ignore
.
end
())
{
auto
r
=
make_shared
<
VKRawReader
>
(
in
);
readers
.
emplace_back
(
move
(
r
));
}
i
++
;
}
// sorter
string
output
=
Form
(
"%ssorted/exp/s%04d_00.root"
,
datadir
.
data
(),
run
);
auto
sorter
=
make_unique
<
VKSorter
>
(
readers
,
output
,
window
);
...
...
@@ -206,22 +205,26 @@ void findFiles(int run, vector<string>& input, vector<size_t>& chan)
TString
path
=
datadir
+
"raw/"
;
TSystemDirectory
dir
(
path
,
path
);
TList
*
files
=
dir
.
GetListOfFiles
();
if
(
files
)
{
TSystemFile
*
file
;
TString
fname
;
TIter
next
(
files
);
while
((
file
=
(
TSystemFile
*
)
next
()))
{
fname
=
file
->
GetName
();
if
(
!
file
->
IsDirectory
())
{
for
(
size_t
c
=
0
;
c
<
chanCount
;
c
++
)
{
if
(
fname
.
EndsWith
(
Form
(
"%04d_ch%03lu.txt"
,
run
,
c
)))
{
input
.
push_back
(
fname
.
Data
());
chan
.
push_back
(
c
);
}
}
}
}
}
for
(
size_t
c
=
0
;
c
<
chanCount
;
c
++
)
{
TString
X
=
Form
(
"%04d_ch%03lu.txt"
,
run
,
c
);
if
(
files
)
{
TSystemFile
*
file
;
TString
fname
;
TIter
next
(
files
);
while
(
file
=
(
TSystemFile
*
)
next
())
{
fname
=
file
->
GetName
();
if
(
!
file
->
IsDirectory
())
{
if
(
fname
.
EndsWith
(
X
))
{
input
.
push_back
(
fname
.
Data
());
chan
.
push_back
(
c
);
}
}
}
}
}
for
(
auto
&
i
:
input
)
i
=
datadir
+
"raw/"
+
i
;
}
...
...
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