~c-e-pidcott/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/GlobalEvent.hh

  • Committer: c.e.pidcott at ac
  • Date: 2012-12-03 13:51:08 UTC
  • mfrom: (674.1.28 itaylor-devel)
  • Revision ID: c.e.pidcott@warwick.ac.uk-20121203135108-4z8pnbbeel9nnt48
Because Ian is a numpty I've had to do another version

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  /** Destructor - any member pointers are deleted */
45
45
  virtual ~GlobalEvent();
46
46
 
47
 
  /** Add a MAUS::recon::global::PrimaryChain object, daughter objects
 
47
  /** Add a MAUS::GlobalPrimaryChain object, daughter objects
48
48
   * are ignored. */
49
 
  void add_primarychain(const MAUS::recon::global::PrimaryChain* pchain) {
 
49
  void add_primarychain(MAUS::GlobalPrimaryChain* pchain) {
50
50
    _primarychains.push_back(pchain);
51
51
  };
52
52
 
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);
57
57
 
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);
61
61
 
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;
66
66
  };
67
67
 
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;
 
72
  };
 
73
 
 
74
  /** Add a MAUS::GlobalTrack object, daughter objects are ignored. */
 
75
  void add_track(MAUS::GlobalTrack* track) {
70
76
    _tracks.push_back(track);
71
77
  };
72
78
 
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
75
81
   *  already added.*/
76
 
  bool add_track_check(const MAUS::recon::global::Track* track);
 
82
  bool add_track_check(MAUS::GlobalTrack* track);
77
83
 
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);
81
87
 
82
 
  /** Return the std::vector of MAUS::recon::global::Track*,
 
88
  /** Return the std::vector of MAUS::GlobalTrack*,
83
89
   *  #_tracks. */
84
 
  MAUS::recon::global::ConstTrackPArray get_tracks() {
 
90
  MAUS::GlobalTrackPArray get_tracks() const {
85
91
    return _tracks;
86
92
  };
87
93
 
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. */
 
95
  void set_tracks(
 
96
      MAUS::GlobalTrackPArray tracks) {
 
97
    _tracks = tracks;
 
98
  };
 
99
 
 
100
  /** Add a MAUS::GlobalTrackPoint object, daughter objects are ignored. */
 
101
  void add_trackpoint(MAUS::GlobalTrackPoint* trackpoint) {
90
102
    _trackpoints.push_back(trackpoint);
91
103
  };
92
104
 
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);
97
109
 
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);
101
113
 
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;
106
118
  };
107
119
 
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;
 
124
  };
 
125
 
 
126
  /** Add a MAUS::GlobalSpacePoint object. */
 
127
  void add_spacepoint(MAUS::GlobalSpacePoint* spacepoint) {
110
128
    _spacepoints.push_back(spacepoint);
111
129
  };
112
130
 
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);
117
135
 
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;
122
140
  };
123
141
 
 
142
  /** Set the MAUS::GlobalSpacePointPArray, #_spacepoints. */
 
143
  void set_spacepoints(
 
144
      MAUS::GlobalSpacePointPArray spacepoints) {
 
145
    _spacepoints = spacepoints;
 
146
  };
 
147
 
 
148
  // /** Return the std::vector of MAUS::GlobalSpacePoint*,
 
149
  //  *  #_spacepoints. */
 
150
  // MAUS::GlobalSpacePointPArray get_spacepoints2() const {
 
151
  //   return _spacepoints2;
 
152
  // };
 
153
 
 
154
  // /** Set the MAUS::GlobalSpacePointPArray, #_spacepoints. */
 
155
  // void set_spacepoints2(
 
156
  //     MAUS::GlobalSpacePointPArray spacepoints2) {
 
157
  //   _spacepoints2 = spacepoints2;
 
158
  // };
 
159
 
 
160
  void set_count(int count) {
 
161
    _count = count;
 
162
  }
 
163
 
 
164
  int get_count() const {
 
165
    return _count;
 
166
  }
 
167
  
124
168
 private:
125
169
 
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;
130
 
  
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;
136
 
  
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;
142
 
  
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;
148
 
  
149
 
  ClassDef(GlobalEvent, 1)
 
173
  MAUS::GlobalPrimaryChainPArray _primarychains;
 
174
  
 
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;
 
180
  
 
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;
 
186
  
 
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;
 
192
 
 
193
  /** Test parameter, delete if seen in committed code! */
 
194
  int _count;
 
195
  
 
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;
 
201
  
 
202
 ClassDef(GlobalEvent, 2)
150
203
}; // ~GlobalEvent
151
204
} // ~MAUS
152
205