Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
scouting-demonstrator
scdaq
Commits
6df85dd5
Commit
6df85dd5
authored
6 years ago
by
Petr Zejdl
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor compiler warnings
parent
4414f6be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!59
CMSSW json file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/elastico.cc
+12
-1
12 additions, 1 deletion
src/elastico.cc
src/processor.cc
+1
-1
1 addition, 1 deletion
src/processor.cc
with
13 additions
and
2 deletions
src/elastico.cc
+
12
−
1
View file @
6df85dd5
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
#include
"controls.h"
#include
"controls.h"
size_t
dummy
(
char
*
data
,
size_t
n
,
size_t
l
,
void
*
s
)
{
size_t
dummy
(
char
*
data
,
size_t
n
,
size_t
l
,
void
*
s
)
{
(
void
)(
data
);
// TODO: Unused variable
(
void
)(
s
);
// TODO: Unused variable
// std::cout << data << std::endl;
// std::cout << data << std::endl;
return
n
*
l
;
}
return
n
*
l
;
}
...
@@ -97,7 +99,7 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
...
@@ -97,7 +99,7 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
uint32_t
bx
=*
p
++
;
uint32_t
bx
=*
p
++
;
uint32_t
orbit
=*
p
++
;
uint32_t
orbit
=*
p
++
;
for
(
unsigned
int
i
=
0
;
i
<
mAcount
;
i
++
){
for
(
/*
unsigned
*/
int
i
=
0
;
i
<
mAcount
;
i
++
){
uint32_t
mf
=
*
p
++
;
uint32_t
mf
=
*
p
++
;
uint32_t
ms
=
*
p
++
;
uint32_t
ms
=
*
p
++
;
uint32_t
ipt
=
(
mf
>>
shifts
::
pt
)
&
masks
::
pt
;
uint32_t
ipt
=
(
mf
>>
shifts
::
pt
)
&
masks
::
pt
;
...
@@ -117,6 +119,12 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
...
@@ -117,6 +119,12 @@ void ElasticProcessor::makeAppendToBulkRequest(std::ostringstream &particle_data
uint32_t
ieta
=
(
ms
>>
shifts
::
eta
)
&
masks
::
etav
;
uint32_t
ieta
=
(
ms
>>
shifts
::
eta
)
&
masks
::
etav
;
if
(((
mf
>>
shifts
::
eta
)
&
masks
::
etas
)
!=
0
)
ieta
-=
512
;
if
(((
mf
>>
shifts
::
eta
)
&
masks
::
etas
)
!=
0
)
ieta
-=
512
;
float
eta
=
ieta
*
gmt_scales
::
eta_scale
;
float
eta
=
ieta
*
gmt_scales
::
eta_scale
;
(
void
)(
iso
);
// TODO: Unused variable
(
void
)(
chrgv
);
// TODO: Unused variable
(
void
)(
mBcount
);
// TODO: Unused variable
(
void
)(
index
);
// TODO: Unused variable
particle_data
<<
"{
\"
index
\"
: {}}
\n
"
particle_data
<<
"{
\"
index
\"
: {}}
\n
"
<<
"{
\"
orbit
\"
: "
<<
orbit
<<
','
<<
"{
\"
orbit
\"
: "
<<
orbit
<<
','
<<
"
\"
bx
\"
: "
<<
bx
<<
','
<<
"
\"
bx
\"
: "
<<
bx
<<
','
...
@@ -147,6 +155,9 @@ void* ElasticProcessor::operator()( void* item ){
...
@@ -147,6 +155,9 @@ void* ElasticProcessor::operator()( void* item ){
curl_easy_setopt
(
handle
,
CURLOPT_POSTFIELDSIZE
,
particle_data
.
str
().
length
());
curl_easy_setopt
(
handle
,
CURLOPT_POSTFIELDSIZE
,
particle_data
.
str
().
length
());
curl_easy_setopt
(
handle
,
CURLOPT_COPYPOSTFIELDS
,
particle_data
.
str
().
c_str
());
/* data goes here */
curl_easy_setopt
(
handle
,
CURLOPT_COPYPOSTFIELDS
,
particle_data
.
str
().
c_str
());
/* data goes here */
int
res
=
curl_easy_perform
(
handle
);
int
res
=
curl_easy_perform
(
handle
);
(
void
)(
res
);
// TODO: Unused variable
}
}
if
(
!
control
->
running
&&
!
c_request_url
.
empty
()){
if
(
!
control
->
running
&&
!
c_request_url
.
empty
()){
c_request_url
.
clear
();
c_request_url
.
clear
();
...
...
This diff is collapsed.
Click to expand it.
src/processor.cc
+
1
−
1
View file @
6df85dd5
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
#include
<iostream>
#include
<iostream>
StreamProcessor
::
StreamProcessor
(
size_t
max_size_
)
:
StreamProcessor
::
StreamProcessor
(
size_t
max_size_
)
:
max_size
(
max_size_
),
tbb
::
filter
(
parallel
),
tbb
::
filter
(
parallel
),
max_size
(
max_size_
),
nbPackets
(
0
)
nbPackets
(
0
)
{
fprintf
(
stderr
,
"Created transform filter at 0x%llx
\n
"
,(
unsigned
long
long
)
this
);}
{
fprintf
(
stderr
,
"Created transform filter at 0x%llx
\n
"
,(
unsigned
long
long
)
this
);}
StreamProcessor
::~
StreamProcessor
(){
StreamProcessor
::~
StreamProcessor
(){
...
...
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