Ignore:
Timestamp:
07/12/00 11:17:53 (24 years ago)
Author:
harald
Message:
Added the memberfunction Print() to show some members  of a instance of
the class.
Location:
trunk/MagicSoft/Simulation/Detector/include-CORSIKA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventHeader.hxx

    r412 r417  
    251251  }
    252252
     253  void Print () {
     254    //
     255    //  Print the important content on the screen
     256    //
     257
     258    cout << endl ;
     259    cout << " **********" << endl ;
     260    cout << " EventNb: " << EvtNumber << " Particle " << PrimaryID << endl ;
     261    cout << " Energy: " << Etotal
     262         << " Theta: "  << Theta
     263         << " Phi: " << Phi
     264         << endl ;
     265    cout << " Core(x/y): (" << get_coreX() <<"/"<< get_coreY() << ")"
     266         << endl ; 
     267   
     268    cout << endl ;
     269  }
    253270};
    254271// @endcode
  • trunk/MagicSoft/Simulation/Detector/include-CORSIKA/CORParticle.hxx

    r406 r417  
    101101  inline void print()
    102102    {
    103       cout << "Id: " << get_particle() 
     103      cout << "      PartId: " << get_particle() 
    104104           << " Pos: " << x << "/" << y
    105105           << " lam: " << w - 1000.*((int)floor(w/1000.))
    106106           << " hei: " << h
     107           << " tim: " << t
     108           << " dir: " << u << "/" << v
    107109           << endl ;
    108110    }
Note: See TracChangeset for help on using the changeset viewer.