Ignore:
Timestamp:
03/28/07 13:43:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8244 r8383  
    5555#include "MTaskEnv.h"
    5656#include "MPointingDevCalc.h"
     57#include "MParameterCalc.h"
    5758#include "MSrcPosRndm.h"
    5859#include "MSrcPosCalc.h"
     
    375376    write->AddContainer("MMcEvt",         "Events", kFALSE);
    376377    write->AddContainer("DataType",       "Events");
     378    write->AddContainer("RunNumber",      "Events");
     379    write->AddContainer("EvtNumber",      "Events");
    377380    //    write->AddContainer("MMuonSearchPar", "Events", kFALSE);
    378381    //    write->AddContainer("MMuonCalibPar",  "Events", kFALSE);
     
    549552    MParList plist;
    550553
    551     MHSrcPosCam hsrcpos;
     554    MHSrcPosCam hsrcpos(fIsWobble);
    552555    if (!fIsWobble && source.IsInitialized() && fRndmSrcPos)
    553556    {
     
    662665    taskenv3.SetDefault(fCalcDisp);
    663666
     667    MParameterCalc setevtnum("MRawEvtHeader.fDAQEvtNumber", "SetEvtNumber");
     668    setevtnum.SetNameParameter("EvtNumber");
     669
     670    MParameterCalc setrunnum("MRawRunHeader.fRunNumber", "SetRunNumber");
     671    setrunnum.SetNameParameter("RunNumber");
     672
    664673    //    MFillH fill0a("OnPos [MHSrcPosCam]", "MSrcPosCam", "FillSrcPosCam");
    665674    MFillH fill1a("MHHillasOffPre  [MHHillas]",      "MHillas",      "FillHillasPre");
     
    714723    tlist2.AddToList(&taskenv2);
    715724    tlist2.AddToList(&taskenv3);
     725    tlist2.AddToList(&setrunnum);
     726    tlist2.AddToList(&setevtnum);
    716727    if (write0)
    717728        tlist2.AddToList(write0);
     
    895906        tlist2.RemoveFromList(&srcrndm);
    896907    }
     908
     909    MFillH fillsrc(&hsrcpos, "MSrcPosCam", "FillSrcPosCam");
     910    fillsrc.SetNameTab("SrcPos");
     911    if (fIsWobble)
     912        tlist2.AddToListBefore(&fillsrc, &hcalc);
     913
    897914    if (!fWriteOnly)
    898915    {
Note: See TracChangeset for help on using the changeset viewer.