Bayeux  3.4.1
Core Foundation library for SuperNEMO
not_in_daughters_vertex_validator.h
Go to the documentation of this file.
1 /* Author(s) : Xavier Garrido <garrido@lal.in2p3.fr>
3  * Francois Mauger <mauger@lpccaen.in2p3.fr>
4  * Creation date: 2014-07-06
5  * Last modified: 2014-07-14
6  *
7  * License: GPL 3.0
8  *
9  * Description:
10  *
11  * History:
12  *
13  */
14 
15 #ifndef GENVTX_NOT_IN_DAUGHTERS_VERTEX_VALIDATOR_H
16 #define GENVTX_NOT_IN_DAUGHTERS_VERTEX_VALIDATOR_H 1
17 
18 // Third party:
19 // - Bayeux/cuts:
20 #include <cuts/i_cut.h>
21 
22 namespace genvtx {
23 
26  {
27  public:
28 
32 
35 
37  virtual void initialize(const datatools::properties &,
40 
42  virtual void reset();
43 
45  bool is_reversed() const;
46 
48  void set_reversed(bool);
49 
51  void set_tolerance(double);
52 
54  void set_daughter_tolerance(double);
55 
57  virtual void tree_dump(std::ostream & out_ = std::clog,
58  const std::string & title_ = "",
59  const std::string & indent_ = "",
60  bool inherit_ = false) const;
61 
62  protected :
63 
65 
71  virtual int _accept();
72 
73  private:
74 
75  bool _reversed_;
76  double _tolerance_;
77  double _daughter_tolerance_;
78 
81 
82  };
83 
84 } // end of namespace genvtx
85 
86 #endif // GENVTX_NOT_IN_DAUGHTERS_VERTEX_VALIDATOR_H
87 
88 /*
89 ** Local Variables: --
90 ** mode: c++ --
91 ** c-file-style: "gnu" --
92 ** tab-width: 2 --
93 ** End: --
94 */
virtual int _accept()
Main selection of the vertex.
priority
Priority levels for logging from most to least critical.
Definition: logger.h:82
void set_tolerance(double)
Set the tolerance to check mother volume.
void set_reversed(bool)
Set the reversed flag.
Top-level namespace of the Bayeux/genvtx module library.
Definition: box_model_vg.h:32
A fatal error. The application will most likely terminate. This is the highest priority.
Definition: logger.h:85
The cut abstract base class (interface)
Definition: i_cut.h:62
not_in_daughters_vertex_validator(datatools::logger::priority a_logging_priority=datatools::logger::PRIO_FATAL)
Constructor.
void set_daughter_tolerance(double)
Set the tolerance to check daughter volume.
Vertex validator that select only vertex shoot from a given volume but not in its daughter volumes.
Definition: not_in_daughters_vertex_validator.h:25
virtual ~not_in_daughters_vertex_validator()
Destructor.
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart print.
#define CUT_REGISTRATION_INTERFACE(T)
Definition: i_cut.h:411
bool is_reversed() const
Check reversed flag.
virtual void initialize(const datatools::properties &, datatools::service_manager &, cuts::cut_handle_dict_type &)
Initialization.
std::map< std::string, cut_entry_type > cut_handle_dict_type
Alias type of a dictionary of cut entry.
Definition: cut_tools.h:175
Service management class.
Definition: service_manager.h:57
A dictionary of arbitrary properties.
Definition: properties.h:125