Ignore:
Timestamp:
02/12/03 11:55:01 (22 years ago)
Author:
blanch
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1730 r1754  
    2121//
    2222// $RCSfile: camera.cxx,v $
    23 // $Revision: 1.53 $
     23// $Revision: 1.54 $
    2424// $Author: blanch $
    25 // $Date: 2003-01-23 18:35:21 $
     25// $Date: 2003-02-12 11:55:01 $
    2626//
    2727////////////////////////////////////////////////////////////////////////
     
    38103810    cx = photon.get_x();
    38113811    cy = photon.get_y();
    3812  
     3812
    38133813    // get wavelength
    38143814         
     
    39453945  float tmax_ns;  // maximum arrival time of all phes
    39463946  float integtime_ns; // integration time from the starfield generator
     3947  char flag_new[4];
    39473948
    39483949  // open input file
     
    39853986    }
    39863987    else { // found start of run
     3988
     3989      if (reflector_file_version > 5){
     3990
     3991        fread( flag_new, 4, 1, infile );
     3992
     3993        if(!isA( flag_new, FLAG_START_OF_HEADER)){
     3994         
     3995          //  We break the main loop
     3996          cout<<"Warning: Expected start of run header flag, but found:"<<flag_new<<endl;
     3997          cout<<"         We assume no Star Light"<<endl;
     3998          return(0);
     3999        }
     4000       
     4001        Float_t flag_temp[SIZE_OF_MCRUNHEADER];
     4002       
     4003        fread( flag_temp, (SIZE_OF_MCRUNHEADER)*sizeof(float), 1, infile );
     4004       
     4005      }
    39874006     
    39884007      fread( cflag, SIZE_OF_FLAGS, 1, infile );
    39894008     
    39904009      if( isA( cflag, FLAG_START_OF_EVENT   )){ // there is a event
     4010        fread( flag_new, 4, 1, infile );
     4011
     4012        if(!isA( flag_new, FLAG_EVENT_HEADER)){
     4013
     4014          //  We break while events loop
     4015          cout<<"Warning: Expected start of event header flag, but found:"<<flag_new<<endl;
     4016          cout<<"         We assume no light from Stars"<<endl;
     4017          return(0);     
     4018        }
    39914019
    39924020        // get MCEventHeader
     
    42114239//
    42124240// $Log: not supported by cvs2svn $
     4241// Revision 1.53  2003/01/23 18:35:21  blanch
     4242// *** empty log message ***
     4243//
    42134244// Revision 1.52  2003/01/20 17:19:20  blanch
    42144245// It fills the MMcCorsikaRun.
     
    43774408//
    43784409// $Log: not supported by cvs2svn $
     4410// Revision 1.53  2003/01/23 18:35:21  blanch
     4411// *** empty log message ***
     4412//
    43794413// Revision 1.52  2003/01/20 17:19:20  blanch
    43804414// It fills the MMcCorsikaRun.
Note: See TracChangeset for help on using the changeset viewer.