1 | // This may look like C code, but it's really -*- C++ -*-
|
---|
2 |
|
---|
3 | #if !defined(_Bolos2RING_H_SEEN_)
|
---|
4 | #define _Bolos2RING_H_SEEN_
|
---|
5 |
|
---|
6 | #include <iostream.h>
|
---|
7 | #include <string>
|
---|
8 | #include "toiprocessor.h"
|
---|
9 | #include "spherehealpix.h"
|
---|
10 | #include "localmap.h"
|
---|
11 | #include "flagtoidef.h"
|
---|
12 |
|
---|
13 | class Bolos2ring : public TOIProcessor
|
---|
14 | {
|
---|
15 | public:
|
---|
16 | Bolos2ring(SphereHEALPix<r_8>* ringQ,
|
---|
17 | SphereHEALPix<r_8>* ringU,
|
---|
18 | SphereHEALPix<r_8>* ringQW,
|
---|
19 | SphereHEALPix<r_8>* ringUW,
|
---|
20 | const vector<r_8>& table_angle,
|
---|
21 | int_4 *Bolos_OK,
|
---|
22 | int_4 wsz=8192);
|
---|
23 |
|
---|
24 | Bolos2ring(SphereHEALPix<r_8>* ringQ,
|
---|
25 | SphereHEALPix<r_8>* ringU,
|
---|
26 | SphereHEALPix<r_8>* ringQW,
|
---|
27 | SphereHEALPix<r_8>* ringUW,
|
---|
28 | r_8 ang0, r_8 ang1, r_8 ang2, r_8 ang3,
|
---|
29 | int_4 *Bolos_OK,
|
---|
30 | int_4 wsz=8192);
|
---|
31 |
|
---|
32 | void init(int_4 wsz=8192);
|
---|
33 |
|
---|
34 | virtual ~Bolos2ring();
|
---|
35 | inline void SetWSize(int_4 wsz) { wsize_ = (wsz<4) ? 4 : wsz; }
|
---|
36 | inline int_8 ProcessedSampleCount() const { return totsncount_; }
|
---|
37 | void SetNSide(int_4 nside);
|
---|
38 | virtual void init(); virtual void run();
|
---|
39 |
|
---|
40 | virtual void PrintStatus(ostream& os);
|
---|
41 |
|
---|
42 | protected:
|
---|
43 | bool Bolos2ringdone;
|
---|
44 |
|
---|
45 | SphereHEALPix<r_8>* ringq; // carte de Q
|
---|
46 | SphereHEALPix<r_8>* ringu; // carte de U
|
---|
47 |
|
---|
48 |
|
---|
49 | SphereHEALPix<r_8>* ringqw; // carte du nb de hit
|
---|
50 | SphereHEALPix<r_8>* ringuw;
|
---|
51 | vector<r_8> TableFP_;
|
---|
52 | int_4* Bolos_OK;
|
---|
53 |
|
---|
54 | int wsize_;
|
---|
55 | int_8 totsncount_;
|
---|
56 | int_8 Npix_;
|
---|
57 |
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|