-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagntools.h
More file actions
65 lines (47 loc) · 1.66 KB
/
Copy pathagntools.h
File metadata and controls
65 lines (47 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef _AGNTOOLS_H_
#define _AGNTOOLS_H_
#include <iostream>
#include <fstream>
#include <cmath>
#include <sys/stat.h>
#include <sys/types.h>
#include <cstring>
#include <iomanip>
#include <algorithm>
#include "STClibrary.h"
#include "events.h"
using namespace std;
/*!
This class only contains public attributes characterizing the active galaxy nuclei in Catalogue/VCV.dat :
RA | Dec | Redshift | Name. This file is extracted from the \f$ 12^{th} \f$ edition of the catalog of quasars and
active galaxy nuclei by Véron-Cetty & Véron. The file contains 694 active galaxies with redshifts
\f$ z \leq 0.024 \f$, corresponding to distance \f$ D \leq 100 \f$ Mpc. You should refer to
M.-P. Véron-Cetty, P. Véron, Astron. Astrophys. 455, 773 (2006) for further explanations.
*/
//! AGNs in the Véron-Cetty & Véron catalog.
class TAgn
{
public :
TAgn() {}
//! Redshift.
double fZ;
//! Right Ascension.
double fRa;
//! Declination.
double fDec;
//! Galactic longitude.
double fL;
//! Galactic Latitude.
double fB;
//! Name.
string fName;
};
//! Get the AGN's list.
vector<TAgn> Get_AGNs(char* sourcedata, double zMax, double decLimit);
//! Dump AGN info to terminal.
void Print_AGN(vector<TAgn> sources, unsigned int IndexNum);
//! Sort the AGNs according to their redshift in the range \f$ [z_{min},z_{max}]\f$.
vector<TAgn> SortCutRedShift(vector<TAgn> zUnsorted, bool down, double zMin, double zMax);
//! Sort the events according to their energy in the range \f$ [E_{min},E_{max}]\f$.
vector<TEvent> SortCutEnergy(vector<TEvent> eUnsorted, bool down, double eMin, double eMax);
#endif