gastro  0.1.0
 All Classes Files Functions Variables Pages
preferences.h
1 #ifndef PREFS__H
2 #define PREFS__H
3 
4 #include <iostream>
5 #include <string>
6 #include <stdlib.h>
7 
8 #define SE_CATALOG 1
9 #define APER_CATALOG 2
10 
13 
15 class Prefs
16 {
17  public :
18 
19  int distortionDegree;
20  int minMeasurementCount;
21  bool cleanMatches;
22  double initialMatchCut;
23  double usnoMatchCut;
24  double minSigToNoise;
25  double posErrorIncrement;
26  std::string photomRefStuff;
27  std::string photomBand;
28  double zpRef;
29  int catalogToRead; // 1 = SEStar 2 = AperSEStar;
30  int aperRank; // only relevant for apercatalogs.
31  double contamination;
32  std::string flatpath;
33  bool removeScatter;
34  bool dzpCorrections;
35  bool dkCorrections;
36  bool requireAccurateWCS;
37  std::string sexFlux;
38  void ReadCards(const std::string &FileName);
39 
40  Prefs();
41 
42  void dump(std::ostream &s=std::cout) const;
43 
44  bool IsPhotomRef(const std::string &Name, double &Zp) const;
45 
46 };
47 
48 
49 void SetDataCardsFileName(const std::string &FileName);
50 
51 
52 Prefs &Preferences();
53 
54 
55 #endif /*PREFS__H */
a class to store datacards and user preferences
Definition: preferences.h:15