Changeset 638 for trunk


Ignore:
Timestamp:
02/23/01 10:45:31 (24 years ago)
Author:
magicsol
Message:
Header file for MFadc.cxx version 1.7
The defines, which described the trigger simulation, have moved to
include-Classes/MMcFormat/MFadcDefine.h
File:
1 edited

Legend:

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

    r489 r638  
    2020
    2121#include "MTriggerDefine.h"
     22#include "MFadcDefine.h"
    2223
    2324class MMcEvt  ;
     
    4041//  values defined in MTriggerDefine.h are also used by this class.
    4142//
    42 //  But a lot of other stuff is defined here.
    43 //
    44 //  --> Frist of all the WIDTH of the time slice of one FADC slice
    45 //      this is 3.33333 nsec.
    46 //
    47 #define WIDTH_FADC_TIMESLICE   (50./15.)       //  this means 3.33 nsec
    48 //
    49 //  --> Second the number of slices to fill in MFADC. This must by
    50 //      connected to the MTrigger class. The time of interest must be
    51 //      equal in both classes.
    52 //
    53 #define SLICES_MFADC           (TOTAL_TRIGGER_TIME / WIDTH_FADC_TIMESLICE)
    54 //
    55 //  --> The amount of FADC slice written to the raw format.
    56 //
    57 #define FADC_SLICES  15
    58 //  --> The amount of ns before trigger that would be read from the ADC
    59 //      in oder to show also the start of the pulse before the
    60 //      the trigger time.
    61 //
    62 #define TIME_BEFORE_TRIGGER    10.
    63 //  --> like the trigger the FADC value will also have a standard response
    64 //      to one single Photo electron. This response is binned with smaller
    65 //      bins. The WIDTH of that response function is done here.
    66 //
    67 #define SUBBINS     5.
    68 #define WIDTH_RESPONSE_MFADC   (WIDTH_FADC_TIMESLICE /  SUBBINS ) 
    69 // 5 sub-bin in one FADC slice
    70 //
    71 //  --> the number of Response slices
    72 //
    73 #define RESPONSE_SLICES_MFADC   45         
     43//  But a lot of other stuff is defined in MFadcDefine.h.
    7444//
    7545//
    76 #define MFADC_RESPONSE_FWHM        5.0
    7746
    78 //
    79 //
    80 #define MFADC_RESPONSE_AMPLITUDE   4.0
    81 //
    82 //
    83 //
    84 //
     47
    8548class MFadc {
    8649 private:
     
    8952  //
    9053  Bool_t   used[CAMERA_PIXELS] ;  //  a boolean to indicated if the pixels is used in this event
     54  UChar_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
    9155
    9256  Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
     
    11478  void Fill( Int_t, Float_t, Float_t  ) ; 
    11579
     80  void Set( Int_t iPix, Float_t res[(Int_t) SLICES_MFADC]);
     81
     82  void SetPedestals( Int_t ped);
     83
     84  void SetPedestals( UChar_t ped[CAMERA_PIXELS]);
     85
    11686  void Baseline();
     87
     88  void Pedestals();
    11789
    11890  void Offset( Float_t, Int_t );
     
    12698  void GetResponse( Float_t *resp ) ;
    12799
     100  void GetPedestals( Char_t *offset);
     101
    128102  void TriggeredFadc(Float_t time);
    129103
    130104  void ShowSignal ( MMcEvt *McEvt , Float_t ) ;
    131105
    132   Float_t GetFadcSignal(Int_t pixel, Int_t slice);
     106  UChar_t GetFadcSignal(Int_t pixel, Int_t slice);
    133107
    134108  Float_t GetAmplitude() {
Note: See TracChangeset for help on using the changeset viewer.