Changeset 1704


Ignore:
Timestamp:
01/14/03 13:37:47 (22 years ago)
Author:
blanch
Message:
Option to set a dc value to rise the discriminator threshold has been added.
Location:
trunk/MagicSoft/Simulation/Detector/Camera
Files:
2 edited

Legend:

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

    r1420 r1704  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.17 $
     21//= $Revision: 1.18 $
    2222//= $Author: blanch $
    23 //= $Date: 2002-07-16 16:20:41 $
     23//= $Date: 2003-01-14 13:37:47 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    8787static float qThreshold[CAMERA_PIXELS];     //@< Threshold values
    8888static int Individual_Thres = FALSE;
     89static float RiseDisc = -1.0;
     90static float SecureDisc = 7.0;
    8991static float qTailCut;          //@< Tail Cut value
    9092static int nIslandsCut;         //@< Islands Cut value
     
    159161  char token[ITEM_MAX_LENGTH];   //@< a single token
    160162  int i, j, k;                      //@< dummy counters
    161   float aux;                    //@< auxiliar variable
     163  float aux, aux2;                    //@< auxiliar variable
    162164  ifstream ifile;
    163165
     
    336338      break;
    337339
     340    case secure_disc:           //@< value of secure threshold
     341         
     342      // get value of secure threshold (in ph.e.)
     343      sscanf(line, "%s %f %f", token,&aux, &aux2);
     344      RiseDisc=aux;
     345      SecureDisc=aux2;
     346
     347      break;
     348
    338349    case tail_cut:            //@< value of tail_cut (t0)
    339350         
     
    821832//!@}
    822833
     834//!-----------------------------------------------------------
     835// @name get_secure_threhold
     836//                                               
     837// @desc get values for secure threshold.
     838//
     839// @return  AC (ac)value above which discriminator threshold rised to disc
     840//
     841// @date Wed Jul 18 16:29:43 CEST 2001
     842//------------------------------------------------------------
     843// @function
     844
     845//!@{
     846void
     847get_secure_threhold(float *ac, float *disc)
     848{
     849  *ac=RiseDisc;
     850  *disc=SecureDisc;
     851}
     852//!@}
    823853
    824854//!-----------------------------------------------------------
     
    13721402//
    13731403// $Log: not supported by cvs2svn $
     1404// Revision 1.17  2002/07/16 16:20:41  blanch
     1405// Modifications done for the camera.cxx version, where a first implementation
     1406// of the Star Field Rotation has been introduced.
     1407//
    13741408// Revision 1.16  2002/03/15 15:17:18  blanch
    13751409// Several modification needed to simulate the actual trigger zone.
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h

    r1420 r1704  
    1919//=
    2020//= $RCSfile: creadparam.h,v $
    21 //= $Revision: 1.15 $
     21//= $Revision: 1.16 $
    2222//= $Author: blanch $
    23 //= $Date: 2002-07-16 16:20:59 $
     23//= $Date: 2003-01-14 13:37:32 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    164164T(nsb_directory),   /* database for the NSB  */ \
    165165T(pixel_thres),     /* value of q0 for trigger for a given pixel */ \
     166T(secure_disc),     /* Ac value to rise discrimnator threshold */ \
    166167T(tail_cut),        /* value of tail cut (t0) */ \
    167168T(islands_on),      /* DO count islands */ \
     
    268269void get_Trigger_Single(float *t, int *m, int *g);
    269270void get_threshold(float *t);
     271void get_secure_threhold(float *ac, float *disc);
    270272int get_indi_thres_pixel(void);
    271273void get_teles_axis(float *th, float *p);
     
    287289/*
    288290 * $Log: not supported by cvs2svn $
     291 * Revision 1.15  2002/07/16 16:20:59  blanch
     292 * Modifications done for the camera.cxx version, where a first implementation
     293 * of the Star Field Rotation has been introduced.
     294 *
    289295 * Revision 1.14  2002/03/15 15:17:57  blanch
    290296 * Header file for creadparam.cxx v 1.16
Note: See TracChangeset for help on using the changeset viewer.