~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/Recon/Global/Track.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://  micewww.pp.rl.ac.uk:8080/projects/maus
2
 
 * 
3
 
 * MAUS is free software: you can redistribute it and/or modify
4
 
 * it under the terms of the GNU General Public License as published by
5
 
 * the Free Software Foundation, either version 3 of the License, or
6
 
 * (at your option) any later version.
7
 
 * 
8
 
 * MAUS is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 * 
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with MAUS.  If not, see <http://  www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
/* Author: Peter Lane
18
 
 */
19
 
 
20
 
#ifndef COMMON_CPP_RECONSTRUCTION_TRACK_HH
21
 
#define COMMON_CPP_RECONSTRUCTION_TRACK_HH
22
 
 
23
 
#include <vector>
24
 
 
25
 
#include "Recon/Global/TrackPoint.hh"
26
 
 
27
 
namespace MAUS {
28
 
namespace recon {
29
 
namespace global {
30
 
 
31
 
class Track : public std::vector<TrackPoint> {
32
 
 public:
33
 
  /* @brief     Construct with all elements initialized to zero.
34
 
   */
35
 
  Track();
36
 
 
37
 
  /* @brief Create with particle ID only.
38
 
   */
39
 
  explicit Track(const int particle_id);
40
 
 
41
 
  /* @brief Copy constructor;
42
 
   */  
43
 
  Track(const Track & original_instance);
44
 
 
45
 
  /* @brief Create with tracks and particle ID.
46
 
   */
47
 
  Track(const std::vector<TrackPoint>& tracks,
48
 
        const int particle_id);
49
 
 
50
 
  ~Track();
51
 
 
52
 
  int particle_id() const;
53
 
  void set_particle_id(const int particle_id);
54
 
 protected:
55
 
  int particle_id_;
56
 
};
57
 
 
58
 
std::ostream& operator<<(std::ostream & out, const Track & vector);
59
 
 
60
 
}  // namespace global
61
 
}  // namespace recon
62
 
}  // namespace MAUS
63
 
 
64
 
#endif