Changeset 390


Ignore:
Timestamp:
05/11/00 15:22:33 (24 years ago)
Author:
blanch
Message:
New input card option has been introduced:
	trigger_loop lt ut lm um lg ug
It forces the camera program to study several condition trigger implementations. Integers after key word fix limits of loop over thershold, multiplicity and topology.
File:
1 edited

Legend:

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

    r384 r390  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.3 $
     21//= $Revision: 1.4 $
    2222//= $Author: blanch $
    23 //= $Date: 2000-03-24 18:14:05 $
     23//= $Date: 2000-05-11 14:22:33 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    101101static int Trigger_Scan = FALSE;
    102102static int FADC_Scan = FALSE;
     103static int Trigger_Loop = FALSE;
     104static int Trigger_loop_lthres = 0;
     105static int Trigger_loop_uthres = 10;
     106static int Trigger_loop_lmult = 2;
     107static int Trigger_loop_umult = 10;
     108static int Trigger_loop_ltop = 0;
     109static int Trigger_loop_utop = 2;
    103110//!@}
    104111
     
    400407      break;
    401408
     409    case trigger_loop:
     410
     411      //  Get loop's limits
     412      sscanf(line, "%s %d %d %d %d %d %d", token, &Trigger_loop_lthres, &Trigger_loop_uthres, &Trigger_loop_lmult, &Trigger_loop_umult, &Trigger_loop_ltop, &Trigger_loop_utop );
     413
     414      // change boolean value
     415      Trigger_Loop = TRUE;
     416
     417      break;
     418
    402419    case end_file:            //@< end of the parameters file
    403420
     
    921938  return ( Apply_Correction );
    922939}
    923 
    924 //!@}
     940//!@}
     941
    925942//!-----------------------------------------------------------
    926943// @name FADC_Scan
    927944//                                               
    928 // @desc write the FADC_Scan class for each event to the .root file
    929 //
    930 // @return  TRUE: we'll write it;  FALSE: we won't
     945// @desc show the FADC signal for each event in the screen
     946//
     947// @return  TRUE: we'll show it;  FALSE: we won't
    931948//
    932949//------------------------------------------------------------
     
    940957}
    941958//!@}
    942 //!@}
     959
    943960//!-----------------------------------------------------------
    944961// @name Trigger_Scan
    945962//                                               
    946 // @desc write the Trigger_Scan class for each event to the .root file
    947 //
    948 // @return  TRUE: we'll write it;  FALSE: we won't
     963// @desc show the Trigger signal for each event in the screen
     964//
     965// @return  TRUE: we'll show it;  FALSE: we won't
    949966//
    950967//------------------------------------------------------------
     
    956973{
    957974  return ( Trigger_Scan );
     975}
     976//!@}
     977
     978//!-----------------------------------------------------------
     979// @name Trigger_Loop
     980//                                               
     981// @desc make a loop over Trigger conditions
     982//
     983// @return  TRUE: we'll make it;  FALSE: we won't
     984//
     985//------------------------------------------------------------
     986// @function
     987
     988//!@{
     989int
     990get_Trigger_Loop(int *lt, int *ut, int *lm, int *um, int *lg, int *ug)
     991{
     992  *lt=Trigger_loop_lthres;
     993  *ut=Trigger_loop_uthres;
     994  *lm=Trigger_loop_lmult;
     995  *um=Trigger_loop_umult;
     996  *lg=Trigger_loop_ltop;
     997  *ug=Trigger_loop_utop;
     998  return ( Trigger_Loop );
    958999}
    9591000//!@}
     
    9661007//
    9671008// $Log: not supported by cvs2svn $
     1009// Revision 1.3  2000/03/24 18:14:05  blanch
     1010// Parameters that tell as if we are going to see the diskriminator and/or FADC signal have been included.
     1011//
    9681012// Revision 1.2  2000/02/18 17:45:43  petry
    9691013// This version belongs to camera.cxx 1.5.
Note: See TracChangeset for help on using the changeset viewer.