Ignore:
Timestamp:
05/25/08 11:28:15 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

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

    r8897 r8898  
    432432    // data file will be processed. In any case there are no interleaved
    433433    // calibration events in such data, so this is fine.
     434    // We allow only cosmics triggered events to pass (before prescaling)
    434435    MFTriggerPattern fcalped;
    435436    fcalped.SetInverted();
    436437    fcalped.SetDefault(kTRUE);
    437     //    ftp.RequireCalibration();
    438     fcalped.DenyCalibration();
    439     fcalped.DenyPedestal();
    440     //    ftp.DenyPinDiode();
     438    fcalped.DenyAll();
     439    fcalped.AllowTriggerLvl1();
     440    fcalped.AllowTriggerLvl2();
     441    //fcalped.AllowSumTrigger();
    441442
    442443    // This will skip interleaved events with a cal- or ped-trigger
     
    505506    // without artifially calibration events
    506507    //
     508    // Deny or allow is done before prescaling.
     509    //
    507510    MFTriggerPattern fped;
    508511    fped.SetDefault(kTRUE);
     
    510513    if (!extractor1->HasLoGain())
    511514    {
     515        fped.DenyAll();
    512516        fped.RequirePedestal();
    513         fped.DenyTriggerLvl1();
    514         fped.DenyTriggerLvl2();
    515517    }
    516518
     
    565567    MExtractBlindPixel      bldext;
    566568
     569    // Execute for all events with the calibration trigger. If no
     570    // trigger pattern is available do not execute it
     571    // The selection is done before prescaling.
    567572    MFTriggerPattern        fcalib("CalibFilter");
    568573    fcalib.SetDefault(kFALSE);
     574    fcalib.DenyAll();
    569575    fcalib.RequireCalibration();
    570     //fcalib.DenyPedestal(); // This should never happen!
    571576
    572577    MCalibrationChargeCalc  chcalc;
     
    769774    if (fIsInterlaced)
    770775    {
     776        // The task list is executed for all events with the calibration
     777        // trigger
    771778        tlist2.AddToList(&fcalib);     // MFTriggerPattern
    772779        tlist2.AddToList(&tlist4);
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8804 r8898  
    1919!   Author(s): Markus Gaug, 02/2004 <mailto:markus@ifae.es>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2007
     21!   Copyright: MAGIC Software Development, 2000-2008
    2222!
    2323!
     
    17151715    // anyway. So we set the default such that the MContinue ccalib
    17161716    // will never be executed.
     1717    // We allow to have only calibration events before Prescaling.
     1718    // We require that the calibration events have not been prescaled (why?)
    17171719    MTriggerPatternDecode     trgpat;
    17181720    MFTriggerPattern          fcalib("CalibFilter");
    17191721    fcalib.SetDefault(kFALSE);
    17201722    fcalib.DenyCalibration(MFTriggerPattern::kPrescaled);
     1723    fcalib.DenyAll();
     1724    fcalib.AllowCalibration();
    17211725
    17221726    MContinue                 ccalib(&fcalib,"ContTrigPattern");
     
    18311835
    18321836    //
    1833     // Apply a filter against cosmics
    1834     // (will have to be needed in the future
    1835     // when the calibration hardware-trigger is working)
     1837    // Apply a filter against cosmics (this is for the old times in which
     1838    // the calibration events where triggered by level 1 and for
     1839    // sanity against empty trigger events)
    18361840    //
    18371841    MFCosmics cosmics;
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8892 r8898  
    10961096    // data file will be processed. In any case there are no interleaved
    10971097    // calibration events in such data, so this is fine.
     1098    // The selection is done with the trigger bits before prescaling
    10981099    MTriggerPatternDecode decode;
    10991100    MFTriggerPattern fcalib("CalibFilter");
    11001101    fcalib.SetDefault(kTRUE);
    1101     fcalib.DenyCalibration();
    1102     fcalib.DenyPedestal();
     1102    fcalib.DenyAll();
     1103    fcalib.AllowTriggerLvl1();
     1104    fcalib.AllowTriggerLvl2();
     1105    //fcalib.AllowSumTrigger();
    11031106
    11041107    tlist.AddToList(&decode);
     
    11301133
    11311134    //------------------------------
     1135    // Require that before the Prescaling we had only a pedestal trigger
    11321136    MFTriggerPattern ftp2("PedestalFilter");
    11331137    ftp2.SetDefault(kTRUE);
     1138    ftp2.DenyAll();
    11341139    ftp2.RequirePedestal();
    1135     ftp2.DenyCalibration();
    1136 
    1137     // NEW!
    1138     ftp2.DenyTriggerLvl1();
    1139     ftp2.DenyTriggerLvl2();
    11401140
    11411141    if (!fSequence.IsMonteCarlo() && (!fExtractor || !fExtractor->HasLoGain()))
Note: See TracChangeset for help on using the changeset viewer.