Changeset 9336 for trunk/MagicSoft/Mars/msim/MSimMMCS.cc
- Timestamp:
- 02/15/09 13:24:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MSimMMCS.cc
r9319 r9336 84 84 return kFALSE; 85 85 86 fPointing Pos= (MPointingPos*)plist->FindObject("MPointingPos");87 if (!fPointing Pos)86 fPointingTel = (MPointingPos*)plist->FindObject("MPointingPos"); 87 if (!fPointingTel) 88 88 { 89 89 *fLog << err << "MPointingPos not found... aborting." << endl; … … 134 134 135 135 // fNumPheFromDNSB MMcPedestalNSBAdd // Number of phe/ns from diffuse NSB 136 137 // FIXME: Is there a way to write them as LAST entry in the file? 136 138 mrh->SetNumSimulatedShowers(fRunHeader->GetNumEvents()); 137 139 mrh->SetImpactMax(fRunHeader->GetImpactMax()); 140 mrh->SetCorsikaVersion(TMath::Nint(fRunHeader->GetProgramVersion()*100)); 138 141 139 142 // ---------------------------------------------------- … … 148 151 const UInt_t id = fRunHeader->GetParticleID(); 149 152 153 // FIXME: Is there a way to write them as LAST entry in the file? 150 154 rh->SetRunInfo(1, fRunHeader->GetRunNumber(), 0); 151 155 rh->SetSourceInfo(MMcEvtBasic::GetParticleName(id)); … … 166 170 fMcEvtBasic->SetImpact(fEvtHeader->GetImpact()); 167 171 168 fMcEvtBasic->SetTelescopeTheta(fPointing Pos->GetZdRad());169 fMcEvtBasic->SetTelescopePhi(fPointing Pos->GetAzRad());172 fMcEvtBasic->SetTelescopeTheta(fPointingTel->GetZdRad()); 173 fMcEvtBasic->SetTelescopePhi(fPointingTel->GetAzRad()); 170 174 171 175 fMcEvtBasic->SetReadyToSave(); … … 173 177 static_cast<MMcEvtBasic&>(*fMcEvt) = *fMcEvtBasic; 174 178 179 // Convert from corsika franme to telescope frame, taking 180 // the magnetic field into account: tel = corsika+offset 175 181 fMcEvt->SetTheta(fEvtHeader->GetZd()); 176 fMcEvt->SetPhi(fEvtHeader->GetAz() );182 fMcEvt->SetPhi(fEvtHeader->GetAz()+fRunHeader->GetMagneticFieldAz()); 177 183 178 184 fMcEvt->SetEvtNumber(fEvtHeader->GetEvtNumber());
Note:
See TracChangeset
for help on using the changeset viewer.