File indexing completed on 2025-01-18 10:17:41
0001
0002
0003
0004
0005
0006 #ifndef JANA2_JEVENTTESTS_H
0007 #define JANA2_JEVENTTESTS_H
0008
0009 #include <JANA/JObject.h>
0010 #include <iostream>
0011
0012 struct FakeJObject : public JObject {
0013 int datum;
0014 bool* deleted = nullptr;
0015 FakeJObject(int datum) : datum(datum) {};
0016 ~FakeJObject() {
0017 if (deleted != nullptr) {
0018 *deleted = true;
0019 }
0020 }
0021 };
0022
0023 struct DifferentFakeJObject : public JObject {
0024 double sample;
0025 DifferentFakeJObject(double sample) : sample(sample) {};
0026 };
0027
0028
0029
0030 #endif