Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
jlab
hallc
analyzer_software
hcana
Commits
0f59907b
Commit
0f59907b
authored
6 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Added logging.
parent
b125a9d8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/THcConfigEvtHandler.cxx
+1
-6
1 addition, 6 deletions
src/THcConfigEvtHandler.cxx
src/THcConfigEvtHandler.h
+2
-6
2 additions, 6 deletions
src/THcConfigEvtHandler.h
src/THcHelicity.cxx
+2
-2
2 additions, 2 deletions
src/THcHelicity.cxx
src/THcHelicity.h
+2
-1
2 additions, 1 deletion
src/THcHelicity.h
with
7 additions
and
15 deletions
src/THcConfigEvtHandler.cxx
+
1
−
6
View file @
0f59907b
...
...
@@ -38,13 +38,8 @@
using
namespace
std
;
THcConfigEvtHandler
::
THcConfigEvtHandler
(
const
char
*
name
,
const
char
*
description
)
:
THaEvtTypeHandler
(
name
,
description
)
:
hcana
::
ConfigLogging
<
THaEvtTypeHandler
>
(
name
,
description
)
{
//Create and return a shared_ptr to a multithreaded console logger.
_logger
=
spdlog
::
get
(
"config"
);
if
(
!
_logger
)
{
_logger
=
spdlog
::
stdout_color_mt
(
"config"
);
}
}
THcConfigEvtHandler
::~
THcConfigEvtHandler
()
...
...
This diff is collapsed.
Click to expand it.
src/THcConfigEvtHandler.h
+
2
−
6
View file @
0f59907b
...
...
@@ -15,13 +15,9 @@
#include
<vector>
#include
<map>
#include
"spdlog/spdlog.h"
#include
"spdlog/sinks/stdout_color_sinks.h"
//support for stdout logging
#include
"spdlog/sinks/basic_file_sink.h"
// support for basic file logging
#include
"Logger.h"
class
THcConfigEvtHandler
:
public
THaEvtTypeHandler
{
private:
std
::
shared_ptr
<
spdlog
::
logger
>
_logger
;
class
THcConfigEvtHandler
:
public
hcana
::
ConfigLogging
<
THaEvtTypeHandler
>
{
public:
...
...
This diff is collapsed.
Click to expand it.
src/THcHelicity.cxx
+
2
−
2
View file @
0f59907b
...
...
@@ -26,7 +26,7 @@ using namespace std;
//_____________________________________________________________________________
THcHelicity
::
THcHelicity
(
const
char
*
name
,
const
char
*
description
,
THaApparatus
*
app
)
:
THaHelicityDet
(
name
,
description
,
app
),
hcana
::
ConfigLogging
<
THaHelicityDet
>
(
name
,
description
,
app
),
fnQrt
(
-
1
),
fHelDelay
(
8
),
fMAXBIT
(
30
)
{
// for( Int_t i = 0; i < NHIST; ++i )
...
...
@@ -37,7 +37,7 @@ THcHelicity::THcHelicity( const char* name, const char* description,
//_____________________________________________________________________________
THcHelicity
::
THcHelicity
()
:
fnQrt
(
-
1
),
fHelDelay
(
8
),
fMAXBIT
(
30
)
:
hcana
::
ConfigLogging
<
THaHelicityDet
>
(),
fnQrt
(
-
1
),
fHelDelay
(
8
),
fMAXBIT
(
30
)
{
// Default constructor for ROOT I/O
...
...
This diff is collapsed.
Click to expand it.
src/THcHelicity.h
+
2
−
1
View file @
0f59907b
...
...
@@ -11,10 +11,11 @@
#include
"THaHelicityDet.h"
#include
"THcHelicityReader.h"
#include
"Logger.h"
class
TH1F
;
class
THcHelicity
:
public
THaHelicityDet
,
public
THcHelicityReader
{
class
THcHelicity
:
public
hcana
::
ConfigLogging
<
THaHelicityDet
>
,
public
THcHelicityReader
{
public:
...
...
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