Changeset 9352 for trunk/MagicSoft


Ignore:
Timestamp:
02/19/09 20:09:42 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9351 r9352  
    6767     - clean isolated pixels away before calculating image parameters
    6868     - don't clean calibration runs
     69     - correct displayed az ba magnetic field
     70
     71   * readcorsika.cc:
     72     - implemented -ff option
     73
     74   * mcorsika/MCorsikaRunHeader.cc:
     75     - improved Print output
     76
     77   * mimage/MImgCleanStd.cc:
     78     - fixed the checks for the cleaning parameters there
     79       where some wrong conditions
     80
     81   * msim/MSimMMCS.cc:
     82     - fixed typo in a comment
    6983
    7084
  • trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc

    r9348 r9352  
    261261
    262262    *fLog << "MagneticField:  X/Z=(" << fMagneticFieldX << "/";
    263     *fLog << fMagneticFieldZ << ")  Az=" << fMagneticFieldAz*TMath::RadToDeg() << "deg" << endl;
     263    *fLog << fMagneticFieldZ << ")" << UTF8::kMu << "T  Az=" << fMagneticFieldAz*TMath::RadToDeg() << "deg  (magnetic North w.r.t. North)" << endl;
    264264
    265265    *fLog << "Spectrum:       Slope=" << fSlopeSpectrum << "  (" << fEnergyMin << "GeV-" << fEnergyMax << "GeV)" <<  endl;
     
    267267
    268268    if (fViewConeOuterAngle>0)
    269         *fLog << "ViewCone:       " << fViewConeInnerAngle << "deg-" << fViewConeOuterAngle << "deg" << endl;
     269        *fLog << "ViewCone:       " << fViewConeInnerAngle << UTF8::kDeg << "-" << fViewConeOuterAngle << UTF8::kDeg << endl;
    270270
    271271    if (fZdMax>=0)
    272272    {
    273         *fLog << "Zd/Az:          " << fZdMin << "deg";
     273        *fLog << "Zd/Az:          " << fZdMin << UTF8::kDeg;
    274274        if (fZdMin==fZdMax)
    275275            *fLog << " (fixed)";
    276276        else
    277             *fLog << "-" << fZdMax << "deg";
    278         *fLog << " / " << fAzMin << "deg";
     277            *fLog << "-" << fZdMax << UTF8::kDeg;
     278        *fLog << " / " << fAzMin << UTF8::kDeg;
    279279        if (fAzMin==fAzMax)
    280280            *fLog << " (fixed)";
    281281        else
    282             *fLog << "-" << fAzMax << "deg";
    283         *fLog << endl;
    284     }
    285 
    286     *fLog << "Atm.Coeff A:   ";
    287     for (int i=0; i<5; i++)
    288         *fLog << " " << fAtmosphericCoeffA[i];
    289     *fLog << endl;
    290     *fLog << "Atm.Coeff B:   ";
    291     for (int i=0; i<5; i++)
    292         *fLog << " " << fAtmosphericCoeffB[i];
    293     *fLog << endl;
    294     *fLog << "Atm.Coeff C:   ";
    295     for (int i=0; i<5; i++)
    296         *fLog << " " << fAtmosphericCoeffC[i];
    297     *fLog << endl;
     282            *fLog << "-" << fAzMax << UTF8::kDeg;
     283        *fLog << "  w.r.t. magnetic North." << endl;
     284    }
    298285
    299286    *fLog << "Options used:  ";
     
    315302        *fLog << " SLANT";
    316303    *fLog << endl;
    317 }
    318 
     304
     305    *fLog << "Atm.Coeff A:   ";
     306    for (int i=0; i<5; i++)
     307        *fLog << " " << fAtmosphericCoeffA[i];
     308    *fLog << endl;
     309    *fLog << "Atm.Coeff B:   ";
     310    for (int i=0; i<5; i++)
     311        *fLog << " " << fAtmosphericCoeffB[i];
     312    *fLog << endl;
     313    *fLog << "Atm.Coeff C:   ";
     314    for (int i=0; i<5; i++)
     315        *fLog << " " << fAtmosphericCoeffC[i];
     316    *fLog << endl;
     317
     318}
     319
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r8646 r9352  
    775775    }
    776776
    777     if (fKeepIsolatedPixels && fTimeLvl2<fCleanLvl1)
     777    if (fKeepIsolatedPixels && fCleanLvl0<fCleanLvl1)
    778778    {
    779779        *fLog << warn << "WARNING - fKeepIsolatedPixels set but CleanLvl0 (" << fTimeLvl2 << ") < fCleanLvl1 (" << fCleanLvl1 << ")... resetting fTimeLvl2." << endl;
    780780        fTimeLvl2 = fCleanLvl1;
    781781    }
    782     if (!fKeepIsolatedPixels && fTimeLvl2>fCleanLvl1)
     782    if (!fKeepIsolatedPixels && fCleanLvl0>fCleanLvl1)
    783783    {
    784784        *fLog << warn << "WARNING - fKeepIsolatedPixels not set but CleanLvl0 (" << fTimeLvl2 << ") > fCleanLvl1 (" << fCleanLvl1 << ")... setting fKeepIsolatedCorePixels." << endl;
  • trunk/MagicSoft/Mars/mjobs/MJSimulation.cc

    r9351 r9352  
    194194    hist.InitTitle("FirstInteractionHeight;h [km]");
    195195
    196     hist.AddHist("MCorsikaEvtHeader.fAz*TMath::RadToDeg()", "MCorsikaEvtHeader.fZd*TMath::RadToDeg()");
     196    hist.AddHist("(MCorsikaEvtHeader.fAz+MCorsikaRunHeader.fMagneticFieldAz)*TMath::RadToDeg()", "MCorsikaEvtHeader.fZd*TMath::RadToDeg()");
    197197    hist.InitName("SkyOrigin;Az;Zd");
    198198    hist.InitTitle("Sky Origin;Az [deg];Zd [deg]");
  • trunk/MagicSoft/Mars/msim/MSimMMCS.cc

    r9336 r9352  
    177177    static_cast<MMcEvtBasic&>(*fMcEvt) = *fMcEvtBasic;
    178178
    179     // Convert from corsika franme to telescope frame, taking
     179    // Convert from corsika frame to telescope frame, taking
    180180    // the magnetic field into account: tel = corsika+offset
    181181    fMcEvt->SetTheta(fEvtHeader->GetZd());
  • trunk/MagicSoft/Mars/readcorsika.cc

    r9228 r9352  
    4040    gLog << "   readcorsika [-h] [-?] [-vn] [-dec] [-a0] inputfile[.raw]" << endl << endl;
    4141    gLog << "     input file:   Magic DAQ binary file." << endl;
     42    gLog << "   -ff                       Force reading of file even if problems occur" << endl;
    4243    gLog.Usage();
    4344//    gLog << "     -f:  force reading of runheader" << endl;
     
    7071    const Int_t  kCompLvl = arg.GetIntAndRemove("--comp=", 1);
    7172    const Bool_t kForce   = arg.HasOnlyAndRemove("-f");
     73    const Bool_t kForceRd = arg.HasOnlyAndRemove("-ff");
    7274
    7375    //
     
    145147    //
    146148    MCorsikaRead read(kNamein);
     149    read.SetForceMode(kForceRd);
    147150    tasks.AddToList(&read);
    148151
Note: See TracChangeset for help on using the changeset viewer.