Ignore:
Timestamp:
05/10/05 12:13:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r6979 r7005  
    390390
    391391  // Check for interleaved events
     392  // This will make that for data with version less than 5, where trigger
     393  // patterns were not yet correct, all the events in the file will be
     394  // processed. For those data there are no interleaved calibration events,
     395  // so it makes no sense to run this test on a _D_ file. So we assume it
     396  // will be a _C_ file, and accept all events.
    392397  MTriggerPatternDecode decode;
    393398  MFTriggerPattern      fcalib;
    394399  fcalib.DenyCalibration();
     400  fcalib.SetDefault(kFALSE);
    395401  MContinue conttp(&fcalib, "ContTrigPattern");
    396402
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6979 r7005  
    460460    MTriggerPatternDecode     decode;
    461461
     462    // This will make that for data with version less than 5, where
     463    // trigger patterns were not yet correct, all the events in the real
     464    // data file will be processed. In any case there are no interleaved
     465    // calibration events in such data, so this is fine.
    462466    MFTriggerPattern ftp;
    463467    ftp.SetDefault(kTRUE);
     
    467471    //    ftp.DenyPinDiode();
    468472    ftp.SetInverted();
     473
     474    // This will skip interleaved calibration events and pedestal events (if any)
     475    // --> tlist2
    469476    MContinue conttp(&ftp, "ContTrigPattern");
    470     // --> tlist2
    471477
    472478    // Do signal and pedestal calculation
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6998 r7005  
    17991799    // Other Tasks
    18001800    //
     1801
     1802    // Set the default for data version earlier than 5, where no valid
     1803    // trigger pattern exists. There should not be pin diode or other
     1804    // types of events inside the calibration files which should be skipped,
     1805    // anyway. So we set the default such that the MContinue ccalib
     1806    // will never be executed.
    18011807    MTriggerPatternDecode     trgpat;
    18021808    MFTriggerPattern          fcalib("CalibFilter");
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7001 r7005  
    7777MJCut::MJCut(const char *name, const char *title)
    7878    : fStoreSummary(kFALSE), fStoreResult(kTRUE), fWriteOnly(kFALSE),
    79     fIsWobble(kFALSE), fIsMonteCarlo(kFALSE),  fFullDisplay(kFALSE),
     79    fIsWobble(kFALSE), fIsMonteCarlo(kFALSE),  fFullDisplay(kTRUE),
    8080    fNameHist("MHThetaSq"), fCalcHadronness(0)
    8181{
     
    334334    write->AddContainer("MHadronness",    "Events", kFALSE);
    335335    write->AddContainer("MEnergyEst",     "Events", kFALSE);
     336    write->AddContainer("ThetaSquared",   "Events", kFALSE);
    336337    write->AddContainer("MMcEvt",         "Events", kFALSE);
    337338    write->AddContainer("DataType",       "Events");
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6998 r7005  
    940940    }
    941941
     942    // This will make that for data with version less than 5, where
     943    // trigger patterns were not yet correct, all the events in the real
     944    // data file will be processed. In any case there are no interleaved
     945    // calibration events in such data, so this is fine.
    942946    MFTriggerPattern fcalib("CalibFilter");
     947    fcalib.SetDefault(kFALSE);
    943948    fcalib.RequireCalibration();
    944949    fcalib.SetInverted();
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r7001 r7005  
    178178        return -1;
    179179
    180     TObject *hist = arr.FindObjectInCanvas("Hist", "MHAlpha", "Hist");
    181     cout << "HIST: " << hist << endl;
    182     if (hist)
    183         cout << "TYPE: " << hist->ClassName() << endl;
    184     arr.Print();
    185 
    186180    vstime->Copy(h1);
    187181    size->Copy(h2);
     
    335329Bool_t MJSpectrum::Refill(MParList &plist, TH1D &h2) const
    336330{
     331    // Try to find the class used to determin the signal!
     332    TString cls("MHAlpha");
     333    if (fDisplay)
     334    {
     335        TCanvas *c = fDisplay->GetCanvas("Hist");
     336        if (c)
     337        {
     338            TIter Next(c->GetListOfPrimitives());
     339            TObject *obj=0;
     340            while ((obj=Next()))
     341                if (obj->InheritsFrom(MHAlpha::Class()))
     342                    break;
     343            if (obj)
     344                cls = obj->ClassName();
     345        }
     346    }
     347
     348    cout << "FOUND: "<< cls << endl;
     349
     350    // Now fill the histogram
    337351    *fLog << endl;
    338352    fLog->Separator("Refill Excess");
     
    350364    taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est);
    351365
    352     MFillH fill1("HistEOff [MHAlpha]", "MHillasSrc", "FillHistEOff");
    353     MFillH fill2("HistE    [MHAlpha]", "MHillasSrc", "FillHistE");
     366    MFillH fill1(Form("HistEOff [%s]", cls.Data()), "", "FillHistEOff");
     367    MFillH fill2(Form("HistE    [%s]", cls.Data()), "", "FillHistE");
    354368
    355369    MFDataMember f0("DataType.fVal", '<', 0.5, "FilterOffData");
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r6997 r7005  
    325325        write.AddContainer("MMcConfigRunHeader",   "RunHeaders");
    326326        write.AddContainer("MMcCorsikaRunHeader",  "RunHeaders");
    327         write.AddCopySource("OriginalMC");
    328327    }
    329328    else
     
    354353        writem.AddContainer("MMcTrig",    "Muons");
    355354    }
     355
     356    if (ismc)
     357        if (fMuonAnalysis)
     358            writem.AddCopySource("OriginalMC");
     359        else
     360            write.AddCopySource("OriginalMC");
    356361
    357362    MTaskList tlist2("Events");
Note: See TracChangeset for help on using the changeset viewer.