Ignore:
Timestamp:
10/12/04 14:32:02 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Simulation/Detector/Camera
Files:
2 edited

Legend:

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

    r5103 r5245  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.29 $
     21//= $Revision: 1.30 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-09-17 14:48:21 $
     23//= $Date: 2004-10-12 13:32:02 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    4949static float FADC_Noise_inner = 2.0;         //@< Value for FADC ElecNoise
    5050static float FADC_Noise_outer = 2.0;         //@< Value for FADC ElecNoise
    51 static float Digital_Noise = 1.0;            //@< Value for FADC  digital Noise
     51static float Digital_Noise = 0.0;            //@< Value for FADC  digital Noise
    5252static float Trig_Noise = 0.3;                //@< Factor for Trigger ElecNoise
    5353static int simulateNSB = TRUE;                //@< Will we simulate NSB?
     
    9090static float FADC_response_ampl = MFADC_RESPONSE_INTEGRAL;
    9191static float FADC_response_fwhm = MFADC_RESPONSE_FWHM;
    92 static int FADC_shape_out = 0;
     92static int   FADC_shape_out = 0;
    9393static float FADC_resp_ampl_out = MFADC_RESPONSE_INTEGRAL;
    9494static float FADC_resp_fwhm_out = MFADC_RESPONSE_FWHM;
     95static float FADC_slices_per_ns = FADC_SLICES_PER_NSEC;
     96static int   FADC_slices_written = FADC_SLICES;
    9597static float High_to_Low = 10.0;      //@< Low gain channel respct to High
    9698
     
    184186    // if it is not a valid line, just ignore it
    185187    if (i == end_file+1) {
    186       cerr << "Skipping unknown token in [" << line << "]\n";
    187       continue;
     188      cerr << "ERROR: Unknown token in [" << line << "]\n";
     189      exit(-1);
    188190    }
    189191
     
    472474      break;
    473475
     476    case fadc_GHz:
     477
     478      //  Get FADC sampling frequency in GHz (default 0.3)
     479      sscanf(line, "%s %f %i", token, &FADC_slices_per_ns, &FADC_slices_written);
     480
     481      break;
     482
    474483    case trigger_scan:
    475484
     
    12031212void
    12041213get_FADC_properties(int *shape,float *ra, float *rf,
    1205                     int *shapeo, float *rao, float *rfo)
    1206 {
    1207   *shape=FADC_shape;
    1208   *ra=FADC_response_ampl;
    1209   *rf=FADC_response_fwhm;
    1210   *shapeo=FADC_shape_out;
    1211   *rao=FADC_resp_ampl_out;
    1212   *rfo=FADC_resp_fwhm_out;
    1213 
     1214                    int *shapeo, float *rao, float *rfo,
     1215                    float *fadc_spns, int *fadc_slices)
     1216{
     1217  *shape = FADC_shape;
     1218  *ra = FADC_response_ampl;
     1219  *rf = FADC_response_fwhm;
     1220  *shapeo = FADC_shape_out;
     1221  *rao = FADC_resp_ampl_out;
     1222  *rfo = FADC_resp_fwhm_out;
     1223  *fadc_spns = FADC_slices_per_ns;
     1224  *fadc_slices = FADC_slices_written;
    12141225}
    12151226//!@}
     
    12821293
    12831294//!-----------------------------------------------------------
    1284 // @name get_FADC_pedesta
     1295// @name get_FADC_pedestal
    12851296//                                               
    12861297// @desc get the value for the FADC pedestals
     
    13621373//
    13631374// $Log: not supported by cvs2svn $
     1375// Revision 1.29  2004/09/17 14:48:21  moralejo
     1376//
     1377// Changes to adapt headers to c++ style.
     1378//
    13641379// Revision 1.28  2004/09/16 15:27:08  moralejo
    13651380// Updated in CVS after some time (see changes below)
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h

    r5103 r5245  
    1919//=
    2020//= $RCSfile: creadparam.h,v $
    21 //= $Revision: 1.26 $
     21//= $Revision: 1.27 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-09-17 14:48:21 $
     23//= $Date: 2004-10-12 13:32:02 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    103103T(fadc_prop),       /* values of fadc properties */ \
    104104T(fadc_outer),      /* values of fadc properties for outer pixels */ \
     105T(fadc_GHz),        /* FADC sampling frequency (GHz) */ \
    105106T(trigger_single),  /* trigger conditions */ \
    106107T(Trigger_Loop_Output_Only_Specialists),   /* special steercard */ \
     
    175176int get_Trigger_Scan(void);
    176177void get_Trigger_properties(float *gl, float *ot, float *ra, float *rf);
    177 void get_FADC_properties(int *shape, float *ra, float *rf,int *shapeo, float *rao, float *rfo);
     178void get_FADC_properties(int *shape, float *ra, float *rf,int *shapeo, float *rao, float *rfo,
     179                         float *fadc_spns, int *fadc_slices);
    178180float get_FADC_pedestal(void);
    179181int get_Trigger_Loop(float *lt, float *ut, float *st, int *lm, int *um, int *lg, int *ug);
     
    203205/*
    204206 * $Log: not supported by cvs2svn $
     207 * Revision 1.26  2004/09/17 14:48:21  moralejo
     208 *
     209 * Changes to adapt headers to c++ style.
     210 *
    205211 * Revision 1.25  2004/09/16 15:27:08  moralejo
    206212 * Updated in CVS after some time (see changes below)
Note: See TracChangeset for help on using the changeset viewer.