Changeset 2342 for trunk/MagicSoft


Ignore:
Timestamp:
09/15/03 12:35:38 (21 years ago)
Author:
blanch
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.hxx

    r2293 r2342  
    2525#include "Mdefine.h"
    2626#include "MMcEvt.hxx"
     27
     28#include "MGeomCam.h"
    2729
    2830#include "MTriggerDefine.h"
     
    8082
    8183 private:
     84  Int_t   pixnum;
    8285  //
    8386  //    then for all pixels the shape of all the analog signals
    8487  //
    85   Bool_t   used [TRIGGER_PIXELS] ;  //  a boolean to indicated if the pixels is used in this event
    86   Int_t    nphotshow[TRIGGER_PIXELS];   //  count the photo electrons per pixel coming from showers
    87   Int_t    nphotnsb[TRIGGER_PIXELS];   //  count the photo electrons per pixel  coming from NSB
    88   Int_t    nphotstar[TRIGGER_PIXELS];   //  count the photo electrons per pixel coming from stars
    89  
    90   Float_t  *a_sig[TRIGGER_PIXELS] ; //  the analog signal for pixels
    91 
    92   Float_t  baseline[TRIGGER_PIXELS] ; //  for the baseline shift
     88  Bool_t   *used;  //  a boolean to indicated if the pixels is used in this event
     89  Int_t    *nphotshow;   //  count the photo electrons per pixel coming from showers
     90  Int_t    *nphotnsb;   //  count the photo electrons per pixel  coming from NSB
     91  Int_t    *nphotstar;   //  count the photo electrons per pixel coming from stars
     92 
     93  Float_t  **a_sig ; //  the analog signal for pixels
     94
     95  Float_t  *baseline; //  for the baseline shift
    9396
    9497  //
    9598  //    then for all pixels the shape of the digital signal
    9699  //
    97   Bool_t  dknt [TRIGGER_PIXELS] ;  //  a boolean to indicated if the pixels has passed the diskrminator
    98   Float_t *d_sig[TRIGGER_PIXELS] ; //  the digital signal for all pixels
     100  Bool_t  *dknt ;  //  a boolean to indicated if the pixels has passed the diskrminator
     101  Float_t **d_sig ; //  the digital signal for all pixels
    99102
    100103  //
     
    115118  TRandom  *GenElec  ;   // RandomGenerator for the Electronic Noise
    116119
    117   Float_t noise[TRIGGER_PIXELS*TRIGGER_TIME_SLICES*101];
     120  Float_t *noise;
    118121
    119122  //
     
    121124  //
    122125 
    123   Float_t chan_thres[TRIGGER_PIXELS] ; // the threshold (in mV) for each individuel pixels
     126  Float_t *chan_thres ; // the threshold (in mV) for each individuel pixels
    124127  Float_t gate_leng  ; // the length of the digital signal if analog signal is above threshold
    125128
     
    134137  //
    135138
    136   Int_t NN[TRIGGER_PIXELS][6] ;
     139  Int_t *NN[6] ;
    137140 
    138141  //
     
    140143  //
    141144
    142   Int_t TC[TRIGGER_CELLS][TRIGGER_PIXELS] ;
     145  Int_t *TC[TRIGGER_CELLS] ;
    143146 
    144147  //
     
    168171public:
    169172
    170   MTrigger() ;
    171 
    172   MTrigger(float gate, float overt, float ampl, float fwhm) ;
     173  MTrigger(int pix=577) ;
     174
     175  MTrigger(int pix, MGeomCam *camgeom,
     176           float gate, float overt, float ampl, float fwhm) ;
    173177 
    174178  ~MTrigger() ;
     
    206210  }
    207211
    208   void CheckThreshold (float *thres);
     212  void CheckThreshold (float *thres, int cells);
    209213
    210214  void ReadThreshold (char name[]);
Note: See TracChangeset for help on using the changeset viewer.