Changeset 691 for trunk


Ignore:
Timestamp:
03/19/01 19:30:06 (24 years ago)
Author:
magicsol
Message:
Minor changes have been done to improve the FADC pedestals treatment.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx

    r685 r691  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.19 $
     23// $Revision: 1.20 $
    2424// $Author: magicsol $
    25 // $Date: 2001-03-05 11:14:41 $
     25// $Date: 2001-03-19 19:30:06 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    442442                                                    //@< camera triggers
    443443  Float_t fadc_elecnoise[CAMERA_PIXELS];  //@< Electronic niose for each pixel
    444   UChar_t fadc_pedestals[CAMERA_PIXELS];  //@< array for fadc pedestals values
     444  Float_t fadc_pedestals[CAMERA_PIXELS];  //@< array for fadc pedestals values
    445445
    446446  float ext[iNUMWAVEBANDS] = { //@< average atmospheric extinction in each waveband
     
    761761  MFadc fadc(FADC_response_ampl,FADC_response_fwhm) ; //@< A instance of the Class MFadc
    762762
     763  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     764  //
    763765  // Set the FADC pedestals for that run
    764   // The values of pedestal follow a flat distribution. Some modifications
     766  // Some modifications
    765767  // mut be done to simulate a more realistic distribution of the pedestals.
    766768  // This simualtion is done int the SetPedestals methode inside the
    767769  // class MFadc
    768   fadc.SetPedestals(50);
     770  // Currentlly a input_pedestal array is declared with the pedestals.
     771  // Thy can also be set randomly following a flat distribution.
     772  //
     773  /////////////////////////////////////////////////////////////////////
     774
     775  Float_t input_pedestals[CAMERA_PIXELS];
     776
     777  for(i=0;i<CAMERA_PIXELS;i++)
     778    input_pedestals[i]=10.5;
     779 
     780  fadc.SetPedestals(input_pedestals);
    769781
    770782  // Prepare the raw data output
     
    32153227//
    32163228// $Log: not supported by cvs2svn $
     3229// Revision 1.19  2001/03/05 11:14:41  magicsol
     3230// I changed the position of readinf a parameter. It is a minnor change.
     3231//
    32173232// Revision 1.18  2001/03/05 10:36:52  blanch
    32183233// A branch with information about the FADC simulation (MMcFadcHeader) is writen
     
    32513266//
    32523267// $Log: not supported by cvs2svn $
     3268// Revision 1.19  2001/03/05 11:14:41  magicsol
     3269// I changed the position of readinf a parameter. It is a minnor change.
     3270//
    32533271// Revision 1.18  2001/03/05 10:36:52  blanch
    32543272// A branch with information about the FADC simulation (MMcFadcHeader) is writen
Note: See TracChangeset for help on using the changeset viewer.