Changeset 8383 for trunk


Ignore:
Timestamp:
03/28/07 13:43:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8382 r8383  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/03/28 Thomas Bretz
     22
     23   * mraw/MRawRunHeader.cc:
     24     - added Getter for fFreqSampling
     25
     26
     27
    2128 2007/03/21 Stefan Ruegamer
    2229
    2330   * datacenter/scripts/runcallisto:
    2431     - removed entries for callisto_MarApr05.rc (outdated)
    25      
     32
    2633   * datacenter/scripts/makecallistolinks:
    2734     - updated reason1 because the old reason has been removed in the
     
    3542
    3643   * datacenter/db/db.php, datacenter/scripts/budb,
    37      datacenter/scripts/dbchk, /datacenter/scripts/dunotseqruns,
    38      /datacenter/scripts/findnewstars,
    39      /datacenter/scripts/findnotseqruns, /datacenter/scripts/sourcefile,
    40      /datacenter/tools/comparesequences, datacenter/tools/resetdataset,
     44     datacenter/scripts/dbchk, datacenter/scripts/dunotseqruns,
     45     datacenter/scripts/findnewstars,
     46     datacenter/scripts/findnotseqruns, datacenter/scripts/sourcefile,
     47     datacenter/tools/comparesequences, datacenter/tools/resetdataset,
    4148     sql.rc:
    4249     - changed the host from hercules to vela
  • 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    {
  • trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.cc

    r7887 r8383  
    1818!   Author(s): Thomas Bretz, 2/2006 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2006
     20!   Copyright: MAGIC Software Development, 2007
    2121!
    2222!
     
    3434
    3535#include <TCanvas.h>
     36#include <TEllipse.h>
    3637
    3738#include "MGeomCam.h"
     
    5556// Default Constructor
    5657//
    57 MHSrcPosCam::MHSrcPosCam(const char *name, const char *title)
     58MHSrcPosCam::MHSrcPosCam(Bool_t wobble, const char *name, const char *title)
    5859    : fTimeEffOn(NULL), fEffOnTime(NULL), fSourcePos(NULL)
    5960{
     
    7576    fHist.SetContour(99);
    7677
     78    const Float_t x = wobble ? 0.5499 : 0.2499;
     79    const Int_t   n = wobble ? 101    : 51;
    7780
    7881    MBinning bins;
    79     bins.SetEdges(51, -0.2499, 0.2499); // bin=0.01ø  ~0.5SE
     82    bins.SetEdges(n, -x, x); // bin=0.01ø  ~0.5SE
    8083
    8184    MH::SetBinning(&fHist, &bins, &bins);
     
    184187    gPad->SetGridy();
    185188
     189    AppendPad();
     190
    186191    fHist.Draw("colz");
    187192
    188     AppendPad();
    189 }
    190 
     193    if (fHist.GetXaxis()->GetXmax()>0.5)
     194    {
     195        TEllipse el;
     196        el.SetFillStyle(4000);
     197        el.SetLineColor(kMagenta);
     198        el.DrawEllipse(0, 0, 0.4, 0, 0, 360, 0);
     199    }
     200}
     201
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r8351 r8383  
    106106    UShort_t GetNumBytesPerSample() const { return fNumBytesPerSample; }
    107107    UInt_t   GetNumEvents() const         { return fNumEvents; }
     108    UShort_t GetFreqSampling() const      { return fFreqSampling; }
    108109    const MTime &GetRunStart() const      { return fRunStart; }
    109110    const MTime &GetRunEnd() const        { return fRunStop; }
Note: See TracChangeset for help on using the changeset viewer.