Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a226de99
Commit
a226de99
authored
Nov 10, 2017
by
Simon Spannagel
Browse files
Detector: delete default destructor, actually use destructor correctly
parent
211d2f19
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core/Detector.cpp
View file @
a226de99
...
...
@@ -8,8 +8,7 @@
using
namespace
ROOT
::
Math
;
using
namespace
corryvreckan
;
Detector
::
Detector
()
{}
Detector
::
Detector
(
const
Configuration
&
config
)
:
Detector
()
{
Detector
::
Detector
(
const
Configuration
&
config
)
{
// Get information from the conditions file:
auto
m_displacement
=
config
.
get
<
ROOT
::
Math
::
XYZPoint
>
(
"position"
,
ROOT
::
Math
::
XYZPoint
());
auto
m_orientation
=
config
.
get
<
ROOT
::
Math
::
XYZVector
>
(
"orientation"
,
ROOT
::
Math
::
XYZVector
());
...
...
src/core/Detector.h
View file @
a226de99
...
...
@@ -31,9 +31,14 @@ namespace corryvreckan {
class
Detector
{
public:
// Constructors and desctructors
Detector
();
Detector
()
=
delete
;
Detector
(
const
Configuration
&
config
);
~
Detector
()
{}
~
Detector
()
{
delete
m_translations
;
delete
m_rotations
;
delete
m_localToGlobal
;
delete
m_globalToLocal
;
}
// Functions to retrieve basic information
std
::
string
type
()
{
return
m_detectorType
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment