Ignore:
Timestamp:
02/10/05 19:28:10 (20 years ago)
Author:
moralejo
Message:
Substituted input card option "write_all_events" by
"write_all_event_headers". If set, this will make camera to write out
the event headers of all the processed events, no matter whether they
have triggered or not.
Location:
trunk/MagicSoft/Simulation/Detector/Camera
Files:
3 edited

Legend:

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

    r6351 r6365  
    138138static int Data_From_STDIN = FALSE;
    139139
    140 //@: flag: TRUE: write all images to output; FALSE: only triggered showers
    141 static int Write_All_Images = FALSE;
     140//@: flag: TRUE: write the event headers of all events to output;
     141//@:       FALSE: only triggered showers
     142static int Write_All_Event_Headers = FALSE;
    142143
    143144static int Write_McEvt  = TRUE;
     
    638639  // write all images, even those without trigger?
    639640
    640   Write_All_Images = get_write_all_events();
     641  Write_All_Event_Headers = get_write_all_event_headers();
    641642
    642643  Write_McEvt  = get_write_McEvt()  ;
     
    806807 
    807808  log(SIGNATURE,
    808       "%s:\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s\n\t\t %s %3.2f,\n\t\t %s %3.2f (%s), %3.2f (%s) \n\t\t + %3.2f (%s)\n\n",
     809      "%s:\n\t%23s: %s\n\t%23s: %s\n\t%23s: %s\n\t%23s: %s\n\t\t %s %3.2f,\n\t\t %s %3.2f (%s), %3.2f (%s) \n\t\t + %3.2f (%s)\n\n",
    809810      "Flags",
    810811      "Data_From_STDIN",   ONoff(Data_From_STDIN), 
    811       "Write_All_Events",  ONoff(Write_All_Images),
     812      "Write_All_Event_Headers",  ONoff(Write_All_Event_Headers),
    812813      "Rotate Starfield",  ONoff(Starfield_rotate),
    813814      "Electronic Noise",  ONoff(addElecNoise),
     
    22062207
    22072208                    Lev0=(Short_t) Trigger_CT[0]->ZeroLevel();
    2208                     if (Lev0>0 || Write_All_Images || btrigger)
     2209                    if (Lev0>0 || Write_All_Event_Headers || btrigger)
    22092210                      {
    22102211               
     
    22462247                            Lev0=1;
    22472248                            Int_t NumImages = Lev1;
    2248                             if(Lev1==0 && (Write_All_Images || btrigger))
     2249                            if(Lev1==0 && (Write_All_Event_Headers || btrigger))
    22492250                              {
    22502251                                btrigger= 1;
     
    22812282                                      SetTriggerPattern((UInt_t)MTriggerPattern::kTriggerLvl1);
    22822283                                    //   fill pixel information
    2283                                     if (Lev1 || Write_All_Images){
     2284                                    if (Lev1 /*|| Write_All_Event_Headers AMTEST*/){
    22842285                                      if (addElecNoise) Fadc_CT[0]->DigitalNoise();
    22852286                                      for(UInt_t i=0;
     
    24732474            //
    24742475         
    2475             if ( Lev0MT[ict] > 0 || Write_All_Images)
     2476            if ( Lev0MT[ict] > 0 /*|| Write_All_Event_Headers*/)
    24762477              Lev1MT[ict]= Trigger_CT[ict]->FirstLevel();
    24772478
     
    24902491              Lev0MT[ict]=1;
    24912492
    2492               if (Lev1MT[ict]==0 && Write_All_Images)
     2493              if (Lev1MT[ict]==0 && Write_All_Event_Headers)
    24932494                {
    24942495                  NumImages=1;
     
    25402541                //   fill pixel information
    25412542             
    2542                 if (Lev1MT[ict] || Write_All_Images){
     2543                if (Lev1MT[ict] /* || Write_All_Event_Headers */){
    25432544                   if (addElecNoise) Fadc_CT[ict]->DigitalNoise();
    25442545                  for(UInt_t i=0;
     
    28232824                    ftime,
    28242825                    icontrigger,
    2825                     !Write_All_Images,
     2826                    !Write_All_Event_Headers,
    28262827                    Write_McEvt,
    28272828                    Write_McTrig,
     
    28602861                    ftime,
    28612862                    icontrigger,
    2862                     !Write_All_Images,
     2863                    !Write_All_Event_Headers,
    28632864                    Write_McEvt,
    28642865                    Write_McTrig,
     
    49824983//
    49834984// $Log: not supported by cvs2svn $
     4985// Revision 1.86  2005/02/10 14:49:21  moralejo
     4986//
     4987// Added setting of trigger flags in MRawEvtHeader::fTriggerPattern:
     4988// Lvl1 flag for normal shower runs, Calibration flag for calibration
     4989// runs and Pedestal flag for "calibration runs" in which the number
     4990// of photons per pixel is set to 0.
     4991//
    49844992// Revision 1.85  2005/02/10 12:00:32  moralejo
    49854993//
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx

    r5600 r6365  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.35 $
    22 //= $Author: MAGIC $
    23 //= $Date: 2004-12-15 01:56:39 $
     21//= $Revision: 1.36 $
     22//= $Author: moralejo $
     23//= $Date: 2005-02-10 19:28:10 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    6262static int nSkip=0;
    6363static int Data_From_STDIN = FALSE;
    64 static int Write_All_Images = FALSE;
     64static int Write_All_Event_Headers = FALSE;
    6565static int Write_McEvt  = TRUE;
    6666static int Write_McTrig = FALSE;
     
    424424      break;
    425425
    426     case write_all_events:    //@< to write ALL the images
     426    case write_all_event_headers:  //@< to write ALL the event headers
    427427         
    428428      // change boolean value
    429       Write_All_Images = TRUE;
     429      Write_All_Event_Headers = TRUE;
    430430
    431431      break;
     
    10921092
    10931093//!-----------------------------------------------------------
    1094 // @name write_all_events
    1095 //                                               
    1096 // @desc write all images to .phe, even those without trigger
     1094// @name write_all_event_headers
     1095//                                               
     1096// @desc write all event headers to output, even those without
     1097// trigger
    10971098//
    10981099// @return  TRUE: we'll write everything; FALSE: we won't
     
    11041105//!@{
    11051106int
    1106 get_write_all_events(void)
    1107 {
    1108   return ( Write_All_Images );
     1107get_write_all_event_headers(void)
     1108{
     1109  return ( Write_All_Event_Headers );
    11091110}
    11101111//!@}
     
    14441445//
    14451446// $Log: not supported by cvs2svn $
     1447// Revision 1.35  2004/12/15 01:56:39  MAGIC
     1448//
     1449//  Added input card option pmt_jitter_ns to simulate the time jitter of
     1450//  PMTs. The input parameter is the sigma of a gaussian, which by
     1451//  default is sigma=0.25 ns. This jitter is applied to each phe-
     1452//  independently. We have not applied this to the NSB noise, since the
     1453//  arrival time of NSB photons is random and nothing would change.
     1454//
    14461455// Revision 1.34  2004/11/17 11:36:07  moralejo
    14471456// *** empty log message ***
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h

    r5600 r6365  
    1919//=
    2020//= $RCSfile: creadparam.h,v $
    21 //= $Revision: 1.31 $
    22 //= $Author: MAGIC $
    23 //= $Date: 2004-12-15 01:56:39 $
     21//= $Revision: 1.32 $
     22//= $Author: moralejo $
     23//= $Date: 2005-02-10 19:28:10 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    9191T(data_from_stdin), /* to read data from STDIN */ \
    9292T(skip),            /* skip pathological showers */ \
    93 T(write_all_events),/* write to file .phe ALL images (even w.o. trigger)*/ \
     93T(write_all_event_headers),/* write to file .phe ALL event headers (even w.o. trigger)*/ \
    9494T(nowrite_McEvt),   /* nowrite to file .root McEvt infos */ \
    9595T(write_McTrig),    /* write to file .root McTrig infos */ \
     
    171171int get_nskip_showers( void );
    172172int get_data_from_stdin(void);
    173 int get_write_all_events(void);
     173int get_write_all_event_headers(void);
    174174int get_write_McEvt(void);
    175175int get_write_McTrig(void);
     
    216216/*
    217217 * $Log: not supported by cvs2svn $
     218 * Revision 1.31  2004/12/15 01:56:39  MAGIC
     219 *
     220 *  Added input card option pmt_jitter_ns to simulate the time jitter of
     221 *  PMTs. The input parameter is the sigma of a gaussian, which by
     222 *  default is sigma=0.25 ns. This jitter is applied to each phe-
     223 *  independently. We have not applied this to the NSB noise, since the
     224 *  arrival time of NSB photons is random and nothing would change.
     225 *
    218226 * Revision 1.30  2004/11/17 11:36:07  moralejo
    219227 * *** empty log message ***
Note: See TracChangeset for help on using the changeset viewer.