Falaise  4.0.1
SuperNEMO Software Toolkit
helix_trajectory_pattern.h
Go to the documentation of this file.
1 /// \file falaise/snemo/datamodels/helix_trajectory_pattern.h
2 /* Author(s) : François Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2012-03-19
4  * Last modified: 2014-01-27
5  *
6  * Description: The helix trajectory pattern
7  */
8 
9 #ifndef FALAISE_SNEMO_DATAMODEL_HELIX_TRAJECTORY_PATTERN_H
10 #define FALAISE_SNEMO_DATAMODEL_HELIX_TRAJECTORY_PATTERN_H 1
11 
12 // Standard library:
13 #include <string>
14 
15 // Third party:
16 // - Bayeux/geomtools:
17 #include <geomtools/helix_3d.h>
18 
19 // This project:
21 
22 namespace snemo {
23 
24 namespace datamodel {
25 
26 /// \brief The fitted helix trajectory pattern
28  public:
29  /// Return pattern identifier of the pattern
30  static const std::string& pattern_id();
31 
32  /// Default constructor
34 
35  /// Destructor
36  virtual ~helix_trajectory_pattern();
37 
38  /// Get a reference to the mutable helix embedded model
40 
41  /// Get a reference to the non mutable helix embedded model
42  const geomtools::helix_3d& get_helix() const;
43 
44  /// Return the reference to the 1D shape associated to the trajectory
45  virtual const geomtools::i_shape_1d& get_shape() const;
46 
47  private:
48  geomtools::helix_3d _helix_; //!< The helix embedded model
49 
51 };
52 
53 } // end of namespace datamodel
54 
55 } // end of namespace snemo
56 
57 #include <boost/serialization/export.hpp>
58 BOOST_CLASS_EXPORT_KEY2(snemo::datamodel::helix_trajectory_pattern,
59  "snemo::datamodel::helix_trajectory_pattern")
60 
61 #endif // FALAISE_SNEMO_DATAMODEL_HELIX_TRAJECTORY_PATTERN_H
62 
63 /*
64 ** Local Variables: --
65 ** mode: c++ --
66 ** c-file-style: "gnu" --
67 ** tab-width: 2 --
68 ** End: --
69 */
const geomtools::helix_3d & get_helix() const
Get a reference to the non mutable helix embedded model.
virtual ~helix_trajectory_pattern()
Destructor.
#define DATATOOLS_SERIALIZATION_DECLARATION()
The fitted helix trajectory pattern.
Definition: helix_trajectory_pattern.h:27
static const std::string & pattern_id()
Return pattern identifier of the pattern.
virtual const geomtools::i_shape_1d & get_shape() const
Return the reference to the 1D shape associated to the trajectory.
The base class of fitted trajectory pattern.
Definition: base_trajectory_pattern.h:26
Definition: calo_tapered_scin_box_model.h:54
geomtools::helix_3d & grab_helix()
Get a reference to the mutable helix embedded model.
helix_trajectory_pattern()
Default constructor.