Ignore:
Timestamp:
06/08/08 13:55:36 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8903 r8929  
    1818!   Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2007
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    3535#include <TFile.h>
    3636
     37// Core
    3738#include "MLog.h"
    3839#include "MLogManip.h"
     
    4546#include "MStatusDisplay.h"
    4647
     48// Histograms
    4749#include "MHSectorVsTime.h"
    4850#include "MHEffectiveOnTime.h"
     
    5052#include "MBinning.h"
    5153
     54///NEEWWWW
     55#include "MH3.h"
     56
     57// Tasks
    5258#include "MReadReports.h"
    5359#include "MReadMarsFile.h"
    54 #include "MFDataPhrase.h"
    55 #include "MFilterList.h"
    56 #include "MFDataMember.h"
    57 #include "MFDeltaT.h"
    58 #include "MFSoftwareTrigger.h"
    5960#include "MContinue.h"
    6061#include "MGeomApply.h"
     
    6970#include "MWriteRootFile.h"
    7071
     72// Filter
     73#include "MFDataPhrase.h"
     74#include "MFTriggerPattern.h"
     75#include "MFilterList.h"
     76#include "MFDataMember.h"
     77#include "MFDeltaT.h"
     78#include "MFSoftwareTrigger.h"
     79
     80// Parameter container
    7181#include "MMuonSetup.h"
    7282#include "MObservatory.h"
     83//#include "MTriggerPattern.h"
    7384#include "MPointingPosCalc.h"
    7485
     
    242253    fill0d.SetNameTab("Sparks");
    243254
     255    // FIXME: This should be replaced by a cut working for all triggers!
     256    MTriggerPattern par;   // An empty trigger pattern for older files
     257    plist.AddToList(&par); // without MTriggerPattern stored in the file
     258
     259    // For the effective on-time calculation we don't want SUM-only events
     260    MFTriggerPattern fsum;
     261    fsum.SetDefault(kTRUE);
     262    fsum.DenySumTrigger();
     263    fsum.AllowTriggerLvl1();
     264    fill9.SetFilter(&fsum);
     265
     266    // Plot the trigger pattern rates vs. run-number
     267    MH3 hrate("MRawRunHeader.fRunNumber", "MTriggerPattern.GetUnprescaled");
     268    hrate.SetWeight("1./MRawRunHeader.GetRunLength");
     269    hrate.SetName("Rate");
     270    hrate.SetTitle("Event rate after cleaning [Hz];Run Number;Trigger Type;");
     271    hrate.InitLabels(MH3::kLabelsX);
     272    hrate.DefaultLabelY("ERROR");
     273    hrate.DefineLabelY( 0, "0");        //  0: No pattern
     274    hrate.DefineLabelY( 1, "Trig");     //  1: Lvl1
     275    hrate.DefineLabelY( 4, "Trig");     //  4: Lvl2
     276    hrate.DefineLabelY( 5, "Trig");     //     Lvl2+Lvl1
     277    hrate.DefineLabelY(32, "Sum");      // 32: Sum
     278    hrate.DefineLabelY(33, "Trig");     //     Sum+Lvl1
     279    hrate.DefineLabelY(36, "Trig");     //     Sum+Lvl2
     280    hrate.DefineLabelY(37, "Trig");     //     Sum+Lvl1+Lvl2
     281
     282    MFillH frate(&hrate, "", "FillRate");
     283    frate.SetDrawOption("box");
     284
    244285    // ------------------ Setup write task ----------------
    245286
     
    260301    write.AddContainer("MRawEvtHeader",             "Events");
    261302    write.AddContainer("MPointingPos",              "Events");
     303    write.AddContainer("MTriggerPattern",           "Events");
    262304
    263305    // Run Header
     
    333375        tlist2.AddToList(&rate);
    334376        tlist2.AddToList(&fillvs);
     377        tlist2.AddToList(&fsum);
    335378        tlist2.AddToList(&fill9);
    336379        tlist2.AddToList(&writet);
     
    358401    tlist2.AddToList(&fill0d);
    359402    tlist2.AddToList(&fill0b);
     403    tlist2.AddToList(&frate);
    360404    tlist2.AddToList(&fill1);
    361405    tlist2.AddToList(&fill2);
     
    409453    MHSectorVsTime histdc, histrms;
    410454    histdc.SetNameTime("MTimeCurrents");
    411     histdc.SetTitle("Mean of all DC Currents;;<I> [nA]");
     455    histdc.SetTitle("Average DC currents of all pixels vs time;;<I> [nA]");
    412456    histdc.SetMinimum(0);
    413457    histdc.SetMaximum(10);
    414458    histrms.SetNameTime("MTimeCurrents");
    415     histrms.SetTitle("Mean pedestal rms of all pixels;;<\\sigma_{p}> [phe]");
     459    histrms.SetTitle("Average pedestal rms of all pixels vs time;;<\\sigma_{p}> [phe]");
    416460    histrms.SetType(5);
    417461    histrms.SetMinimum(0);
Note: See TracChangeset for help on using the changeset viewer.