Changeset 302 for trunk


Ignore:
Timestamp:
11/01/99 13:29:05 (25 years ago)
Author:
harald
Message:
Changed the reflector output format. This was done by Dirk in Barcelona.
The change solely consists in a shortening of the flag definition in
MCCphoton.hxx.

The change was necessary for saving space and for better debugging.

From now on the format of reflector can be frozen.

Also a smaller change in MCEventHeader.hxx to get the X- and Y-coordinate
of the shower core.
Location:
trunk/MagicSoft/Simulation/Detector/include-MC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MC/MCCphoton.hxx

    r295 r302  
    4242// const char variables to use in MCCphoton::isA() function
    4343
    44 const char FLAG_START_OF_RUN[]   = "START-RUN-START-RUN-START-RUN-START-RUN-";
    45 const char FLAG_START_OF_EVENT[] = "START-EVENT-START-EVENT-START-EVENT-STAR";
    46 const char FLAG_END_OF_EVENT[] =   "END-EVENT-END-EVENT-END-EVENT-END-EVENT-";
    47 const char FLAG_END_OF_RUN[] =     "END-RUN-END-RUN-END-RUN-END-RUN-END-RUN-";
    48 const char FLAG_END_OF_FILE[] =    "END-FILE-END-FILE-END-FILE-END-FILE-END-";
    49 const char FLAG_END_OF_STDIN[] =   "END-STDIN-END-STDIN-END-STDIN-END-STDIN-";
     44const char FLAG_START_OF_RUN[]   = "\nSTART---RUN\n";
     45const char FLAG_START_OF_EVENT[] = "\nSTART-EVENT\n";
     46const char FLAG_END_OF_EVENT[] =   "\nEND---EVENT\n";
     47const char FLAG_END_OF_RUN[] =     "\nEND-----RUN\n";
     48const char FLAG_END_OF_FILE[] =    "\nEND----FILE\n";
     49const char FLAG_END_OF_STDIN[] =   "\nEND---STDIN\n";
    5050
    51 #define SIZE_OF_FLAGS  40
     51#define SIZE_OF_FLAGS  13
    5252
    5353// @endcode
     
    7979  // reads photon from binary input stream
    8080  Int_t read ( ifstream &is ) {
    81     int n;
    8281    is.read (  (char *)this, mysize() );
    8382    return is.gcount();
  • trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.hxx

    r295 r302  
    144144                              ((CorePos[1][ncore])*(CorePos[1][ncore])) ) );
    145145  }
     146 
     147  // get the core position in X
     148  inline Float_t get_coreX ( Int_t ncore = 0 ) {
     149    return ( (Float_t) CorePos[0][ncore] );
     150  }
     151
     152  // get the core position in Y
     153  inline Float_t get_coreY ( Int_t ncore = 0 ) {
     154    return ( (Float_t) CorePos[1][ncore] );
     155  }
    146156
    147157  // transport from COREventHeader to MCEventHeader
Note: See TracChangeset for help on using the changeset viewer.