Jpp
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  */
22  typedef JLANG::JComparator<double (JVector3D::*)() const> JModuleComparator;
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
JModule.hh
JComparator.hh
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JGEOMETRY3D::JVector3D
Data structure for vector in three dimensions.
Definition: JVector3D.hh:33
JDETECTOR::JModuleComparator3D_t::JModuleComparator3D_t
JModuleComparator3D_t()
Default constructor.
Definition: JModuleComparator.hh:49
JLANG::JComparator
Template definition of auxiliary class to compare objects.
Definition: JComparator.hh:23
JDETECTOR::JModuleComparator3D_t
Module comparator according its distance to origin.
Definition: JModuleComparator.hh:43
JDETECTOR::JModuleComparator3Z_t
Module comparator according its z-position.
Definition: JModuleComparator.hh:28
JDETECTOR
Auxiliary classes and methods for detector calibration.
Definition: JAnchor.hh:12
JDETECTOR::JModuleComparator3Z_t::JModuleComparator3Z_t
JModuleComparator3Z_t()
Default constructor.
Definition: JModuleComparator.hh:34