summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2013-02-01 10:15:48 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit6494951a96f7e6e9889a97bd926d15a3cdd7b4b9 (patch)
treeb495c444f9e3c8896d6423d698a246f6258ad65d
parente46056a80857860a923d6577741a1de987bd804f (diff)
downloadchroma-6494951a96f7e6e9889a97bd926d15a3cdd7b4b9.tar.gz
chroma-6494951a96f7e6e9889a97bd926d15a3cdd7b4b9.tar.bz2
chroma-6494951a96f7e6e9889a97bd926d15a3cdd7b4b9.zip
Add virtual destructors to ROOT data classes to silence compiler warnings.
-rw-r--r--chroma/io/root.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/chroma/io/root.C b/chroma/io/root.C
index 9e7ef39..7b07b4e 100644
--- a/chroma/io/root.C
+++ b/chroma/io/root.C
@@ -4,6 +4,8 @@
#include <string>
struct Vertex {
+ virtual ~Vertex() { };
+
std::string particle_name;
TVector3 pos;
TVector3 dir;
@@ -15,6 +17,8 @@ struct Vertex {
};
struct Photon {
+ virtual ~Photon() { };
+
double t;
TVector3 pos;
TVector3 dir;
@@ -28,6 +32,8 @@ struct Photon {
struct Channel {
Channel() : id(-1), t(-1e9), q(-1e9) { };
+ virtual ~Channel() { };
+
int id;
double t;
double q;
@@ -37,6 +43,8 @@ struct Channel {
};
struct Event {
+ virtual ~Event() { };
+
int id;
unsigned int nhit;
unsigned int nchannels;