Changeset 405
- Timestamp:
- 06/29/00 13:37:09 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Corsika/Simone/simone.cxx
r324 r405 24 24 25 25 // char path[100] = "/hd61/Maggi/Data/mcMAGIC-1-30:30000-1" ; 26 char path[100] = "/hd 31/Data/mmcs_prod_1009_30:30000_14" ;26 char path[100] = "/hd02/Maggi/Data/prot_15/" ; 27 27 // char path[100] = "/data/mmcs/" ; 28 28 char cername[120] ; … … 32 32 33 33 COREventHeader Event ; 34 CORParticle Photon ; 35 36 MSimone Infos ; 34 37 35 MSimone Infos ; 36 Infos.Print() ; 38 Int_t iPhotonInShower ; 39 40 Float_t lambda ; 37 41 // 38 42 // now create a root-file for the ntuple output … … 43 47 TNtuple *Ntup = new TNtuple("simone", 44 48 "Simone info of mmcs", 45 " PartId:Energy:Theta:Phi");49 "fPartId:fEnergy:fTheta:fPhi"); 46 50 47 51 48 for (int i_cer = 1; i_cer < 1000; i_cer++ ) { 52 for (int i_cer = 1; i_cer <= 100; i_cer++ ) { 53 54 // 55 // info of progress 56 // 57 if (!( i_cer %10) ) 58 { 59 cout << i_cer << endl ; 60 } 49 61 50 62 // … … 68 80 } 69 81 70 cout << " Read event " << endl ; 82 // 83 // cout << " Read event " << endl ; 84 // 85 71 86 Event.read( cerfile ); 72 73 87 Infos.Transfer ( &Event ) ; 74 88 75 Infos.Print() ; 76 89 // 90 // fill the ntuple 91 // 77 92 Infos.NtupFill ( Ntup ) ; 78 93 94 // 95 // loop over the particles (cerenkov photons) in 96 // the file 97 // 98 99 iPhotonInShower = 0 ; 100 101 while( ! (cerfile.eof() || cerfile.bad() )) { 102 103 // 104 // read in the particles 105 // 106 107 Photon.read ( cerfile ) ; 108 109 // 110 // only if the wavelength lambda is greater than 111 // 1.0 it is a real cerenkov photon 112 // 113 lambda = Photon.get_wl() ; 114 115 if ( lambda < 1.0 ) 116 break ; 117 118 iPhotonInShower++ ; 119 120 Photon.print() ; 121 122 } 123 124 cout << iPhotonInShower << endl ; 125 126 127 79 128 cerfile.close(); 129 130 80 131 81 132 } … … 87 138 outfile->Write() ; 88 139 89 } 140 141 // 142 // 143 // 144 145 } 90 146 91 147
Note:
See TracChangeset
for help on using the changeset viewer.