44
44
/** Destructor - any member pointers are deleted */
45
45
virtual ~GlobalEvent();
47
/** Add a MAUS::recon::global::PrimaryChain object, daughter objects
47
/** Add a MAUS::GlobalPrimaryChain object, daughter objects
49
void add_primarychain(const MAUS::recon::global::PrimaryChain* pchain) {
49
void add_primarychain(MAUS::GlobalPrimaryChain* pchain) {
50
50
_primarychains.push_back(pchain);
53
/** If a MAUS::recon::global::PrimaryChain object is not already a
53
/** If a MAUS::GlobalPrimaryChain object is not already a
54
54
* member of the GlobalEvent, add it in. Otherwise, return false,
55
55
* to signify already added.*/
56
bool add_primarychain_check(const MAUS::recon::global::PrimaryChain* pchain);
56
bool add_primarychain_check(MAUS::GlobalPrimaryChain* pchain);
58
/** Recursively add a MAUS::recon::global::PrimaryChain object and
58
/** Recursively add a MAUS::GlobalPrimaryChain object and
59
59
* the associated daughter objects */
60
void add_primarychain_recursive(const MAUS::recon::global::PrimaryChain* pchain);
60
void add_primarychain_recursive(MAUS::GlobalPrimaryChain* pchain);
62
/** Return the std::vector of MAUS::recon::global::PrimaryChain*,
62
/** Return the std::vector of MAUS::GlobalPrimaryChain*,
63
63
* #_primarychains. */
64
MAUS::recon::global::ConstPrimaryChainPArray get_primarychains() {
64
MAUS::GlobalPrimaryChainPArray get_primarychains() const {
65
65
return _primarychains;
68
/** Add a MAUS::recon::global::Track object, daughter objects are ignored. */
69
void add_track(const MAUS::recon::global::Track* track) {
68
/** Set the MAUS::GlobalPrimaryChainPArray. */
69
void set_primarychains(
70
MAUS::GlobalPrimaryChainPArray primarychains) {
71
_primarychains = primarychains;
74
/** Add a MAUS::GlobalTrack object, daughter objects are ignored. */
75
void add_track(MAUS::GlobalTrack* track) {
70
76
_tracks.push_back(track);
73
/** If a MAUS::recon::global::Track object is not already a member of the
79
/** If a MAUS::GlobalTrack object is not already a member of the
74
80
* GlobalEvent, add it in. Otherwise, return false, to signify
76
bool add_track_check(const MAUS::recon::global::Track* track);
82
bool add_track_check(MAUS::GlobalTrack* track);
78
/** Recursively add a MAUS::recon::global::Track object and the associated
84
/** Recursively add a MAUS::GlobalTrack object and the associated
79
85
* daughter objects */
80
void add_track_recursive(const MAUS::recon::global::Track* track);
86
void add_track_recursive(MAUS::GlobalTrack* track);
82
/** Return the std::vector of MAUS::recon::global::Track*,
88
/** Return the std::vector of MAUS::GlobalTrack*,
84
MAUS::recon::global::ConstTrackPArray get_tracks() {
90
MAUS::GlobalTrackPArray get_tracks() const {
88
/** Add a MAUS::recon::global::TrackPoint object, daughter objects are ignored. */
89
void add_trackpoint(const MAUS::recon::global::TrackPoint* trackpoint) {
94
/** Set the MAUS::GlobalTrackPArray. */
96
MAUS::GlobalTrackPArray tracks) {
100
/** Add a MAUS::GlobalTrackPoint object, daughter objects are ignored. */
101
void add_trackpoint(MAUS::GlobalTrackPoint* trackpoint) {
90
102
_trackpoints.push_back(trackpoint);
93
/** If a MAUS::recon::global::TrackPoint object is not already a member of the
105
/** If a MAUS::GlobalTrackPoint object is not already a member of the
94
106
* GlobalEvent, add it in. Otherwise, return false, to signify
95
107
* already added.*/
96
bool add_trackpoint_check(const MAUS::recon::global::TrackPoint* trackpoint);
108
bool add_trackpoint_check(MAUS::GlobalTrackPoint* trackpoint);
98
/** Recursively add a MAUS::recon::global::TrackPoint object and the associated
110
/** Recursively add a MAUS::GlobalTrackPoint object and the associated
99
111
* daughter objects */
100
void add_trackpoint_recursive(const MAUS::recon::global::TrackPoint* trackpoint);
112
void add_trackpoint_recursive(MAUS::GlobalTrackPoint* trackpoint);
102
/** Return the std::vector of MAUS::recon::global::TrackPoint*,
114
/** Return the std::vector of MAUS::GlobalTrackPoint*,
103
115
* #_trackpoints. */
104
MAUS::recon::global::ConstTrackPointPArray get_trackpoints() {
116
MAUS::GlobalTrackPointPArray get_trackpoints() const {
105
117
return _trackpoints;
108
/** Add a MAUS::recon::global::SpacePoint object. */
109
void add_spacepoint(const MAUS::recon::global::SpacePoint* spacepoint) {
120
/** Set the MAUS::GlobalTrackPointPArray. */
121
void set_trackpoints(
122
MAUS::GlobalTrackPointPArray trackpoints) {
123
_trackpoints = trackpoints;
126
/** Add a MAUS::GlobalSpacePoint object. */
127
void add_spacepoint(MAUS::GlobalSpacePoint* spacepoint) {
110
128
_spacepoints.push_back(spacepoint);
113
/** If a MAUS::recon::global::SpacePoint object is not already a
131
/** If a MAUS::GlobalSpacePoint object is not already a
114
132
* member of the GlobalEvent, add it in. Otherwise, return false,
115
133
* to signify already added.*/
116
bool add_spacepoint_check(const MAUS::recon::global::SpacePoint* spacepoint);
134
bool add_spacepoint_check(MAUS::GlobalSpacePoint* spacepoint);
118
/** Return the std::vector of MAUS::recon::global::SpacePoint*,
136
/** Return the std::vector of MAUS::GlobalSpacePoint*,
119
137
* #_spacepoints. */
120
MAUS::recon::global::ConstSpacePointPArray get_spacepoints() {
138
MAUS::GlobalSpacePointPArray get_spacepoints() const {
121
139
return _spacepoints;
142
/** Set the MAUS::GlobalSpacePointPArray, #_spacepoints. */
143
void set_spacepoints(
144
MAUS::GlobalSpacePointPArray spacepoints) {
145
_spacepoints = spacepoints;
148
// /** Return the std::vector of MAUS::GlobalSpacePoint*,
149
// * #_spacepoints. */
150
// MAUS::GlobalSpacePointPArray get_spacepoints2() const {
151
// return _spacepoints2;
154
// /** Set the MAUS::GlobalSpacePointPArray, #_spacepoints. */
155
// void set_spacepoints2(
156
// MAUS::GlobalSpacePointPArray spacepoints2) {
157
// _spacepoints2 = spacepoints2;
160
void set_count(int count) {
164
int get_count() const {
126
/** A vector of MAUS::recon::global::PrimaryChain pointers
170
/** A vector of MAUS::GlobalPrimaryChain pointers
127
171
* associated with this event. Different reconstruction steps can
128
172
* be distinguished by mapper_name. */
129
MAUS::recon::global::ConstPrimaryChainPArray _primarychains;
131
/** A vector of MAUS::recon::global::Track pointers associated with
132
* this event. These should be accessed through the
133
* MAUS::recon::global::PrimaryChain pointers stored in
134
* #_primarychains. */
135
MAUS::recon::global::ConstTrackPArray _tracks;
137
/** A vector of MAUS::recon::global::TrackPoint pointers associated with
138
* this event. These should be accessed through the
139
* MAUS::recon::global::PrimaryChain pointers stored in
140
* #_primarychains. */
141
MAUS::recon::global::ConstTrackPointPArray _trackpoints;
143
/** A vector of MAUS::recon::global::SpacePoint pointers associated with
144
* this event. These should be accessed through the
145
* MAUS::recon::global::PrimaryChain pointers stored in
146
* #_primarychains. */
147
MAUS::recon::global::ConstSpacePointPArray _spacepoints;
149
ClassDef(GlobalEvent, 1)
173
MAUS::GlobalPrimaryChainPArray _primarychains;
175
/** A vector of MAUS::GlobalTrack pointers associated with
176
* this event. These should be accessed through the
177
* MAUS::GlobalPrimaryChain pointers stored in
178
* #_primarychains. */
179
MAUS::GlobalTrackPArray _tracks;
181
/** A vector of MAUS::GlobalTrackPoint pointers associated with
182
* this event. These should be accessed through the
183
* MAUS::GlobalPrimaryChain pointers stored in
184
* #_primarychains. */
185
MAUS::GlobalTrackPointPArray _trackpoints;
187
/** A vector of MAUS::GlobalSpacePoint pointers associated with
188
* this event. These should be accessed through the
189
* MAUS::GlobalPrimaryChain pointers stored in
190
* #_primarychains. */
191
MAUS::GlobalSpacePointPArray _spacepoints;
193
/** Test parameter, delete if seen in committed code! */
196
// /** A vector of MAUS::GlobalSpacePoint pointers associated with
197
// * this event. These should be accessed through the
198
// * MAUS::GlobalPrimaryChain pointers stored in
199
// * #_primarychains. */
200
// MAUS::GlobalSpacePointPArray _spacepoints2;
202
ClassDef(GlobalEvent, 2)
150
203
}; // ~GlobalEvent