Last change
on this file since 2016 was 2014, checked in by ansari, 23 years ago |
Amelioration de calcul d'offset (possibilite de coupure sur coordonnees
galactique)
Nouveau processeur nettoyeur (SimpleCleaner)
Ajout programme de traitement aksj02.cc , donnees Archeops KS1/KS3
Reza 28/5/2002
|
File size:
1.7 KB
|
Rev | Line | |
---|
[2000] | 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 |
|
---|
| 8 | #ifndef SIMOFFSET_H
|
---|
| 9 | #define SIMOFFSET_H
|
---|
| 10 |
|
---|
| 11 | #include "toiprocessor.h"
|
---|
| 12 | #include "tvector.h"
|
---|
| 13 | #include "poly.h"
|
---|
| 14 |
|
---|
| 15 | // ---- Calcul de ligne de base
|
---|
| 16 | // Ajustement polynomial sur des echantillons moyennes
|
---|
| 17 | //
|
---|
| 18 | // Structure generale :
|
---|
| 19 | //
|
---|
[2014] | 20 | // -------------------------
|
---|
| 21 | // toi in --> | | ---> out (toi = in_offset)
|
---|
| 22 | // | SimpleOffsetEstimator | ---> offset (toi)
|
---|
| 23 | // bgal(opt)--> | | ---> Autres toi optionnel
|
---|
| 24 | // | |
|
---|
| 25 | // -------------------------
|
---|
[2000] | 26 |
|
---|
| 27 | class SimpleOffsetEstimator : public TOIProcessor {
|
---|
| 28 | public:
|
---|
| 29 | SimpleOffsetEstimator(int mwsz=256, int nptfit=5, int degpol=2);
|
---|
| 30 | virtual ~SimpleOffsetEstimator();
|
---|
| 31 |
|
---|
[2014] | 32 | void SetParams(int mwsz=256, int nptfit=5, int degpol=2);
|
---|
[2000] | 33 | virtual void init();
|
---|
| 34 | virtual void run();
|
---|
| 35 |
|
---|
[2014] | 36 | virtual void SetBGalCut(double bmin, double bmax);
|
---|
| 37 |
|
---|
[2000] | 38 | inline int_8 ProcessedSampleCount() const { return totnscount; }
|
---|
| 39 |
|
---|
| 40 | virtual void PrintStatus(::ostream & os) ; // const plus tard
|
---|
| 41 |
|
---|
| 42 | inline void SavePolyNTuple(bool fg=false, string name="") { ntpoly = fg; ntpolyname=name; }
|
---|
| 43 | protected:
|
---|
| 44 | int_8 totnscount; // Nombre total d'echantillon processe
|
---|
| 45 | int_8 totnbblock; // Nombre total de blocs
|
---|
| 46 | int mWSz;
|
---|
| 47 | int nPtFit;
|
---|
[2004] | 48 | int degPol;
|
---|
[2000] | 49 | Poly poly;
|
---|
| 50 | bool ntpoly;
|
---|
| 51 | string ntpolyname;
|
---|
[2014] | 52 | double bmincut, bmaxcut;
|
---|
| 53 | bool bgalcut;
|
---|
| 54 | int_4 ns_flgcut;
|
---|
| 55 | int_4 ns_bgalcut;
|
---|
[2000] | 56 | };
|
---|
| 57 |
|
---|
| 58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.