Changeset 302 for trunk/MagicSoft
- Timestamp:
- 11/01/99 13:29:05 (25 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/include-MC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MC/MCCphoton.hxx
r295 r302 42 42 // const char variables to use in MCCphoton::isA() function 43 43 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-";44 const char FLAG_START_OF_RUN[] = "\nSTART---RUN\n"; 45 const char FLAG_START_OF_EVENT[] = "\nSTART-EVENT\n"; 46 const char FLAG_END_OF_EVENT[] = "\nEND---EVENT\n"; 47 const char FLAG_END_OF_RUN[] = "\nEND-----RUN\n"; 48 const char FLAG_END_OF_FILE[] = "\nEND----FILE\n"; 49 const char FLAG_END_OF_STDIN[] = "\nEND---STDIN\n"; 50 50 51 #define SIZE_OF_FLAGS 4051 #define SIZE_OF_FLAGS 13 52 52 53 53 // @endcode … … 79 79 // reads photon from binary input stream 80 80 Int_t read ( ifstream &is ) { 81 int n;82 81 is.read ( (char *)this, mysize() ); 83 82 return is.gcount(); -
trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.hxx
r295 r302 144 144 ((CorePos[1][ncore])*(CorePos[1][ncore])) ) ); 145 145 } 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 } 146 156 147 157 // transport from COREventHeader to MCEventHeader
Note:
See TracChangeset
for help on using the changeset viewer.