Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
c50a3433
Commit
c50a3433
authored
Oct 20, 2017
by
Daniel Hynds
Browse files
added namespace to object classes
parent
a8670096
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/core/Clipboard.h
View file @
c50a3433
...
...
@@ -16,6 +16,8 @@
// clipboard is wiped clean.
//-------------------------------------------------------------------------------
using
namespace
corryvreckan
;
class
Clipboard
{
public:
...
...
src/objects/Cluster.h
View file @
c50a3433
...
...
@@ -12,6 +12,8 @@
*/
using
namespace
corryvreckan
;
class
Cluster
:
public
TestBeamObject
{
public:
...
...
src/objects/GuiDisplay.h
View file @
c50a3433
...
...
@@ -24,6 +24,8 @@
#include "TRootEmbeddedCanvas.h"
#include "TSystem.h"
using
namespace
corryvreckan
;
class
GuiDisplay
:
public
TestBeamObject
{
RQ_OBJECT
(
"GuiDisplay"
)
...
...
src/objects/KDTree.h
View file @
c50a3433
...
...
@@ -14,6 +14,8 @@
*/
using
namespace
corryvreckan
;
class
KDTree
:
public
TestBeamObject
{
public:
...
...
src/objects/Pixel.h
View file @
c50a3433
...
...
@@ -3,12 +3,14 @@
#include "TestBeamObject.h"
using
namespace
corryvreckan
;
class
Pixel
:
public
TestBeamObject
{
public:
// Constructors and destructors
Pixel
()
{}
virtual
~
Pixel
()
{}
Pixel
()
=
default
;
//
virtual ~Pixel() {}
Pixel
(
std
::
string
detectorID
,
int
row
,
int
col
,
int
tot
)
{
m_detectorID
=
detectorID
;
m_row
=
row
;
...
...
src/objects/SpidrSignal.h
View file @
c50a3433
#ifndef SPIDRSIGNAL_H
#define SPIDRSIGNAL_H 1
using
namespace
corryvreckan
;
class
SpidrSignal
:
public
TestBeamObject
{
public:
...
...
@@ -10,7 +12,7 @@ public:
m_type
=
type
;
m_timestamp
=
timestamp
;
}
virtual
~
SpidrSignal
()
{}
//
virtual ~SpidrSignal() {}
// Functions
...
...
src/objects/TestBeamObject.cpp
View file @
c50a3433
// local
#include "TestBeamObject.h"
#include "Cluster.h"
#include "Pixel.h"
#include "Cluster.h"
#include "Track.h"
#include "core/utils/exceptions.h"
using
namespace
corryvreckan
;
ClassImp
(
TestBeamObject
)
// Return class type for fixed object types (that don't depend on detector
...
...
src/objects/TestBeamObject.h
View file @
c50a3433
...
...
@@ -12,6 +12,8 @@
// placed on the clipboard and written out to file.
//-------------------------------------------------------------------------------
namespace
corryvreckan
{
class
TestBeamObject
:
public
TObject
{
public:
...
...
@@ -44,4 +46,5 @@ public:
// Vector type declaration
typedef
std
::
vector
<
TestBeamObject
*>
TestBeamObjects
;
}
#endif // TESTBEAMOBJECT_H
src/objects/Track.h
View file @
c50a3433
...
...
@@ -13,6 +13,8 @@
*/
using
namespace
corryvreckan
;
class
Track
:
public
TestBeamObject
{
public:
...
...
@@ -21,7 +23,7 @@ public:
m_direction
.
SetZ
(
1.
);
m_state
.
SetZ
(
0.
);
}
virtual
~
Track
()
{}
//
virtual ~Track() {}
// Copy constructor (also copies clusters from the original track)
Track
(
Track
*
track
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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