Changeset 1720 for trunk/MagicSoft/Simulation/Detector/Camera
- Timestamp:
- 01/20/03 17:19:20 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r1706 r1720 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.5 1$23 // $Revision: 1.52 $ 24 24 // $Author: blanch $ 25 // $Date: 2003-01- 14 13:40:17$25 // $Date: 2003-01-20 17:19:20 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 416 416 ofstream datafile; //@< stream for the data file 417 417 418 MCRunHeader mcrunh; //@< Run Header class (MC) 418 419 MCEventHeader mcevth; //@< Event Header class (MC) 419 420 MCEventHeader_2 mcevth_2; //@< Event Header class (MC) for reflector > 0.6 … … 1270 1271 } 1271 1272 1272 Float_t flag_temp[SIZE_OF_MCRUNHEADER]; 1273 1274 fread( flag_temp, (SIZE_OF_MCRUNHEADER)*sizeof(float), 1, inputfile ); 1273 //Float_t flag_temp[SIZE_OF_MCRUNHEADER]; 1274 1275 //fread( flag_temp, (SIZE_OF_MCRUNHEADER)*sizeof(float), 1, inputfile ); 1276 fread((char*)&mcrunh,(SIZE_OF_MCRUNHEADER)*sizeof(float), 1, inputfile ); 1275 1277 1276 1278 nshow=0; … … 1750 1752 (UInt_t) ncph, 1751 1753 (UInt_t) inumphe, 1752 (UInt_t) inumphensb+inumphe); 1754 (UInt_t) inumphensb+inumphe, 1755 -1.0, 1756 -1.0, 1757 -1.0); 1753 1758 } 1754 1759 else{ … … 1784 1789 (UInt_t) ncph, 1785 1790 (UInt_t) inumphe, 1786 (UInt_t) inumphensb+inumphe); 1791 (UInt_t) inumphensb+inumphe, 1792 mcevth_2.get_ElecFraction(), 1793 mcevth_2.get_MuonFraction(), 1794 mcevth_2.get_OtherFraction()); 1787 1795 } 1788 1796 } … … 1930 1938 (UInt_t) ncph, 1931 1939 (UInt_t) inumphe, 1932 (UInt_t) inumphensb+inumphe); 1940 (UInt_t) inumphensb+inumphe, 1941 -1.0, 1942 -1.0, 1943 -1.0); 1933 1944 } 1934 1945 else{ … … 1964 1975 (UInt_t) ncph, 1965 1976 (UInt_t) inumphe, 1966 (UInt_t) inumphensb+inumphe); 1977 (UInt_t) inumphensb+inumphe, 1978 mcevth_2.get_ElecFraction(), 1979 mcevth_2.get_MuonFraction(), 1980 mcevth_2.get_OtherFraction()); 1967 1981 } 1968 1982 } … … 2197 2211 RunHeader->SetNumEvents(nstoredevents); 2198 2212 2213 // Fill MMcCorsikaRunHeader 2214 2215 Float_t constantC[50]; 2216 mcrunh.get_constantC(&constantC[0]); 2217 Float_t constantCKA[40]; 2218 mcrunh.get_constantCKA(&constantCKA[0]); 2219 Float_t constantCETA[5]; 2220 mcrunh.get_constantCETA(&constantCETA[0]); 2221 Float_t constantCSTRBA[11]; 2222 mcrunh.get_constantCSTRBA(&constantCSTRBA[0]); 2223 Float_t constantAATM[5]; 2224 mcrunh.get_constantAATM(&constantAATM[0]); 2225 Float_t constantBATM[5]; 2226 mcrunh.get_constantBATM(&constantBATM[0]); 2227 Float_t constantCATM[5]; 2228 mcrunh.get_constantCATM(&constantCATM[0]); 2229 Float_t constantNFL[4]; 2230 mcrunh.get_constantNFL(&constantNFL[0]); 2231 2232 if(reflector_file_version>5) 2233 McCorsikaRunHeader->Fill(rnum, 2234 mcrunh.get_date(), 2235 corsika, 2236 1, 2237 heights, 2238 mcevth_2.get_slope(), 2239 mcrunh.get_ELow(), 2240 mcrunh.get_EUpp(), 2241 mcrunh.get_EGS4(), 2242 mcrunh.get_NKG(), 2243 mcrunh.get_Ecutoffh(), 2244 mcrunh.get_Ecutoffm(), 2245 mcrunh.get_Ecutoffe(), 2246 mcrunh.get_Ecutoffg(), 2247 constantC, 2248 constantCKA, 2249 constantCETA, 2250 constantCSTRBA, 2251 constantAATM, 2252 constantBATM, 2253 constantCATM, 2254 constantNFL, 2255 mcrunh.get_wobble(), 2256 mcrunh.get_atmophere() 2257 ); 2199 2258 2200 2259 // Store qe for each PMT in output file … … 4152 4211 // 4153 4212 // $Log: not supported by cvs2svn $ 4213 // Revision 1.51 2003/01/14 13:40:17 blanch 4214 // MRawRunHeader::fNumEvents has been filled with the number of events in 4215 // this file. 4216 // Problems in fImpact computation have been solved. 4217 // Option to set a dc value to rise the discriminator threshold has been added. 4218 // 4154 4219 // Revision 1.50 2003/01/07 16:33:31 blanch 4155 4220 // Star Field Rotation has been implemented by Raul Orduna. Now there is a … … 4309 4374 // 4310 4375 // $Log: not supported by cvs2svn $ 4376 // Revision 1.51 2003/01/14 13:40:17 blanch 4377 // MRawRunHeader::fNumEvents has been filled with the number of events in 4378 // this file. 4379 // Problems in fImpact computation have been solved. 4380 // Option to set a dc value to rise the discriminator threshold has been added. 4381 // 4311 4382 // Revision 1.50 2003/01/07 16:33:31 blanch 4312 4383 // Star Field Rotation has been implemented by Raul Orduna. Now there is a
Note:
See TracChangeset
for help on using the changeset viewer.