|
SISCone
2.0.5
|
00001 // -*- C++ -*- 00003 // File: defines.h // 00004 // Description: header file for generic parameters definitions // 00005 // This file is part of the SISCone project. // 00006 // For more details, see http://projects.hepforge.org/siscone // 00007 // // 00008 // Copyright (c) 2006 Gavin Salam and Gregory Soyez // 00009 // // 00010 // This program is free software; you can redistribute it and/or modify // 00011 // it under the terms of the GNU General Public License as published by // 00012 // the Free Software Foundation; either version 2 of the License, or // 00013 // (at your option) any later version. // 00014 // // 00015 // This program is distributed in the hope that it will be useful, // 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of // 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 00018 // GNU General Public License for more details. // 00019 // // 00020 // You should have received a copy of the GNU General Public License // 00021 // along with this program; if not, write to the Free Software // 00022 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA // 00023 // // 00024 // $Revision:: 225 $// 00025 // $Date:: 2008-05-20 16:59:47 +0200 (Tue, 20 May 2008) $// 00027 00029 #ifndef __DEFINES_H__ 00030 #define __DEFINES_H__ 00031 00033 // we get "SISCone" by calling 00034 // siscone::siscone_package_name 00035 // defined in siscone.h 00036 // Otherwise, config.h 00037 // It is also defined as "PACKAGE_NAME" in config.h but this method 00038 // might lead to conflicts 00039 //#define PROGRAM PACKAGE_NAME 00040 00041 // program version 00042 // we get it from 00043 // siscone::siscone_version 00044 // defined in siscone.h 00045 // It is also defined as "VERSION" in config.h but this method 00046 // might lead to conflicts 00047 00052 //#define USE_QUADTREE_FOR_STABILITY_TEST 00053 00054 00061 #define PT_TSHOLD 1000.0 00062 00063 00075 #define EPSILON_COLLINEAR 1e-8 00076 00077 00082 #define EPSILON_COCIRCULAR 1e-12 00083 00084 00099 //#define ALLOW_MERGE_IDENTICAL_PROTOCONES 00100 //#define MERGE_IDENTICAL_PROTOCONES_DEFAULT_TRUE 00101 00102 00111 #define EPSILON_SPLITMERGE 1e-12 00112 00114 const double twopi = 6.283185307179586476925286766559005768394; 00115 00117 //#define DEBUG_STABLE_CONES ///< debug messages in stable cones search 00118 //#define DEBUG_SPLIT_MERGE ///< debug messages in split-merge 00119 //#define DEBUG ///< all debug messages ! 00120 00121 // in case all debug massages allowed, allow them in practice ! 00122 #ifdef DEBUG 00123 #define DEBUG_STABLE_CONES 00124 #define DEBUG_SPLIT_MERGE 00125 #endif 00126 00127 #endif // __DEFINES_H__ 00128