Jpp  17.3.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JModuleComparator.hh
Go to the documentation of this file.
1 #ifndef __JDETECTOR__JMODULECOMPARATOR__
2 #define __JDETECTOR__JMODULECOMPARATOR__
3 
4 #include "JLang/JComparator.hh"
5 #include "JDetector/JModule.hh"
6 
7 
8 /**
9  * \file
10  *
11  * Auxiliary classes to compare modules.
12  * \author mdejong
13  */
14 namespace JDETECTOR {}
15 namespace JPP { using namespace JDETECTOR; }
16 
17 namespace JDETECTOR {
18 
19  /**
20  * Type definition of a module comparator using 3D position information.
21  */
23 
24 
25  /**
26  * Module comparator according its z-position.
27  */
29  public JModuleComparator
30  {
31  /**
32  * Default constructor.
33  */
36  {}
37  };
38 
39 
40  /**
41  * Module comparator according its distance to origin.
42  */
44  public JModuleComparator
45  {
46  /**
47  * Default constructor.
48  */
50  JModuleComparator(&JVector3D::getLength)
51  {}
52  };
53 }
54 
55 #endif
Module comparator according its distance to origin.
JLANG::JComparator< double(JVector3D::*)() const > JModuleComparator
Type definition of a module comparator using 3D position information.
Module comparator according its z-position.
JModuleComparator3Z_t()
Default constructor.
Data structure for vector in three dimensions.
Definition: JVector3D.hh:34
Template definition of auxiliary class to compare objects.
JModuleComparator3D_t()
Default constructor.
Data structure for optical module.