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.
File:
1 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//
Note: See TracChangeset for help on using the changeset viewer.