| Line |   | 
|---|
| 1 | // This may look like C code, but it is really -*- C++ -*-
 | 
|---|
| 2 | 
 | 
|---|
| 3 | // ArchTOIPipe           (C)     CEA/DAPNIA/SPP IN2P3/LAL
 | 
|---|
| 4 | //                               Eric Aubourg
 | 
|---|
| 5 | //                               Christophe Magneville
 | 
|---|
| 6 | //                               Reza Ansari
 | 
|---|
| 7 | // $Id: toi2ring.h,v 1.1 2003-01-29 15:24:42 cecile Exp $
 | 
|---|
| 8 | 
 | 
|---|
| 9 | #ifndef TOI2RING_H
 | 
|---|
| 10 | #define TOI2RING_H
 | 
|---|
| 11 | 
 | 
|---|
| 12 | #include "toiprocessor.h"
 | 
|---|
| 13 | #include "spherehealpix.h"
 | 
|---|
| 14 | #include "flagtoidef.h"
 | 
|---|
| 15 | #include "xastropack.h"
 | 
|---|
| 16 | 
 | 
|---|
| 17 | //-- Un generateur de RING a partir d'une sphere et de 2 TOIs coordin1,coordin2
 | 
|---|
| 18 | // Lecture de 2 TOI coord1,coord2 et d'une Sphere Healpix
 | 
|---|
| 19 | // Sortie de 3 RING coord1,coord2,boloMuV
 | 
|---|
| 20 | //
 | 
|---|
| 21 | // Structure generale :
 | 
|---|
| 22 | //             Sphere ---- |
 | 
|---|
| 23 | //                         |
 | 
|---|
| 24 | //                     -----------
 | 
|---|
| 25 | //   toi phase    ---> |         | ---> ring value
 | 
|---|
| 26 | //                     |Toi2RING | ---> ring weight
 | 
|---|
| 27 | //   toi value    ---> |         | 
 | 
|---|
| 28 | //                     -----------
 | 
|---|
| 29 | 
 | 
|---|
| 30 | class Toi2RING : public TOIProcessor {
 | 
|---|
| 31 | public:
 | 
|---|
| 32 |                  Toi2RING(long n);
 | 
|---|
| 33 |   virtual       ~Toi2RING();
 | 
|---|
| 34 | 
 | 
|---|
| 35 |   inline void setNSamples( long n=1024)
 | 
|---|
| 36 |               {Nsamples = n;}
 | 
|---|
| 37 | 
 | 
|---|
| 38 |   virtual void  init(void);
 | 
|---|
| 39 |   virtual void  run(void);
 | 
|---|
| 40 | 
 | 
|---|
| 41 | 
 | 
|---|
| 42 | 
 | 
|---|
| 43 |   // Print
 | 
|---|
| 44 |   void Print(::ostream & os);
 | 
|---|
| 45 |   inline long   ProcessedSampleCount() const { return totnscount; }
 | 
|---|
| 46 |   inline long   ProcessedRingCount() const { return nRings; }
 | 
|---|
| 47 | 
 | 
|---|
| 48 | protected:
 | 
|---|
| 49 |   long Nsamples;
 | 
|---|
| 50 |   long totnscount;
 | 
|---|
| 51 |   long nRings;
 | 
|---|
| 52 |   
 | 
|---|
| 53 | };
 | 
|---|
| 54 | 
 | 
|---|
| 55 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.