Changeset 534 in Sophya for trunk/Poubelle/archTOI.old/pisteetoile.h
- Timestamp:
- Nov 1, 1999, 10:59:29 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/pisteetoile.h
r394 r534 5 5 #include "formepulse.h" 6 6 7 /* // D. Yvon, CE Saclay, 08/997 /* // D. Yvon, CE Saclay, DAPNIA/SPP, 08/99 8 8 9 9 // Analyse the Photodiode track to find star pulse. 10 10 // Caracterise the time and amplitude of the star Pulse 11 11 12 We analyse a set of 32 samples. The 16first are considered as prepulse sample.12 We analyse a set of 48 samples. The 32 first are considered as prepulse sample. 13 13 On the prepulse: 14 14 We compute baseline and substract it. … … 17 17 Look for trigger 18 18 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 20 24 Iterate time fit on pulse area and compute amplitude and X2 21 25 Find best X2. … … 23 27 Build SSTStar. 24 28 25 That's it. Test code tstpisteetoile.cc can be found in tstroutines folder.29 That's it. 26 30 When done push the track eigth samples forward and iterate analysis. 27 31 */ … … 39 43 // Parametrisation du Trigger 40 44 #define SeuilGachette (6.) // On déclenche à SeuilGachette sigmas 41 #define SSTLsbVal (10./4096 )45 #define SSTLsbVal (10./4096.) 42 46 43 47 // Parametrisation Analyse Fine 44 48 #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: 46 50 // Secondes: 47 51 … … 70 74 inline int SSTLargEvtIndex(); 71 75 inline int SSTLongIndexEvt(); 76 static TransFuncElec Trapani; 77 static FormePulse FPulse; 78 72 79 protected: 73 80 double PasTempsEch; //Secondes 74 81 // Idendificateur, repères et gestion 75 82 short NoPhDiod; 76 int indexDebutPiste; // A actualiser dans push() et Fill()! BUGG!!!!83 long indexDebutPiste; // A actualiser dans push() et Fill() 77 84 bool DiodVivante; // Si false, On ne fait rien 78 85 … … 88 95 double Vrms; 89 96 short MaxIndex; // Index de l'amplitude Max en analyse Trig() 97 double TIndex; 90 98 double AmplMax; 99 double AmplRes; 91 100 int widthHalfMax; 101 int SSTnbPasFit; 92 102 // double integ; 93 103 // Variables Resultat d'analyse fine 94 95 double AmplRes; 96 double TIndex; 104 double AmplFin; 105 double Tfin; 97 106 double X2Min; 98 107 bool SuccesAFine; … … 109 118 double* X2; //Tableau des X2 calculés 110 119 111 static TransFuncElec Trapani; 112 static FormePulse FPulse; 120 113 121 114 122 };
Note:
See TracChangeset
for help on using the changeset viewer.