Ignore:
Timestamp:
Nov 1, 1999, 10:59:29 AM (26 years ago)
Author:
ansari
Message:

V2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/pisteetoile.h

    r394 r534  
    55#include "formepulse.h"
    66
    7 /*      // D. Yvon, CE Saclay, 08/99
     7/*      // D. Yvon, CE Saclay, DAPNIA/SPP, 08/99
    88
    99        // Analyse the Photodiode track to find star pulse.
    1010        // Caracterise the time and amplitude of the star Pulse
    1111
    12         We analyse a set of 32 samples. The 16 first are considered as prepulse sample.
     12        We analyse a set of 48 samples. The 32 first are considered as prepulse sample.
    1313        On the prepulse:
    1414                We compute baseline and substract it.
     
    1717                Look for trigger
    1818        If triggered :
    19                 Look for maximum. If max found 20< Max< 28
     19                Look for maximum.
     20                Compute Full width half maximum
     21                Fit a paroabole on max of the pulse
     22                return max fitte and time of max fitte
     23        if analfine
    2024                Iterate time fit on pulse area and compute amplitude and X2
    2125                Find best X2.
     
    2327                Build SSTStar.
    2428               
    25         That's it. Test code tstpisteetoile.cc can be found in tstroutines folder.
     29        That's it.
    2630        When  done push the track eigth samples forward and iterate analysis.
    2731*/
     
    3943//      Parametrisation du Trigger
    4044#define SeuilGachette (6.)                              // On déclenche à SeuilGachette sigmas
    41 #define SSTLsbVal (10./4096)
     45#define SSTLsbVal (10./4096.)
    4246
    4347//      Parametrisation Analyse Fine
    4448#define TFExcursion (15.e-3)                    // Secondes: Excursion du fit autour de MaxIndex
    45 #define TPasTFit (2.5e-3)                               // Secondes:
     49#define TPasTFit (1.5e-3)                               // Secondes:
    4650                        // Secondes:
    4751
     
    7074        inline int SSTLargEvtIndex();
    7175        inline int SSTLongIndexEvt();
     76        static TransFuncElec Trapani;
     77        static FormePulse FPulse;
     78       
    7279protected:
    7380        double PasTempsEch;     //Secondes
    7481// Idendificateur, repères et gestion
    7582        short NoPhDiod;
    76         int indexDebutPiste;    // A actualiser dans push() et Fill()! BUGG!!!!
     83        long indexDebutPiste;   // A actualiser dans push() et Fill()
    7784        bool DiodVivante;               // Si false, On ne fait rien
    7885       
     
    8895        double Vrms;
    8996        short MaxIndex;                 // Index de l'amplitude Max en analyse Trig()
     97        double TIndex;
    9098        double AmplMax;
     99        double AmplRes;
    91100        int widthHalfMax;
     101        int SSTnbPasFit;
    92102//      double integ;
    93103// Variables Resultat d'analyse fine
    94        
    95         double AmplRes;
    96         double TIndex;
     104        double AmplFin;
     105        double Tfin;
    97106        double X2Min;
    98107        bool SuccesAFine;
     
    109118        double* X2;             //Tableau des X2 calculés
    110119       
    111         static TransFuncElec Trapani;
    112         static FormePulse FPulse;
     120
    113121       
    114122};
Note: See TracChangeset for help on using the changeset viewer.