Ignore:
Timestamp:
03/18/05 18:07:46 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6839 r6858  
    5353#include "MGeomCam.h"
    5454#include "MHCamEvent.h"
     55//#include "MHCamEventTH.h"
    5556#include "MPedestalCam.h"
    5657#include "MBadPixelsCam.h"
     
    610611    MHCamEvent evt5(0, "Interp'd",   "Interpolated Signal;;S [phe]");
    611612    MHCamEvent evt6(2, "Unsuitable", "Fraction of unsuitable events per Pixel;;[1]");
    612     MHCamEvent evt7(0, "Times",      "Calibrated Arrival Time;;T [fadc sl]");
     613    MHCamEvent evt7(6, "Times",      "Calibrated Arrival Time;;T [fadc sl]");
    613614    MHCamEvent evt8(0, "Conv",       "Calibration Conv. Factors;;[phe/fadc cnts]");
    614     //MHCamEvent evt9(0, "PulsePos",   "Pulse Position of cosmics"); //Calibration Conv. Factors;;[phe/fadc cnts]
    615 
     615    MHCamEvent evt9(7, "PulsePos",  "Pulse Position of cosmics (>15phe);;T"); //Calibration Conv. Factors;;[phe/fadc cnts]
     616    /*
     617     MHCamEventTH evt9(6, "PulsePos",  "Pulse Position of cosmics"); //Calibration Conv. Factors;;[phe/fadc cnts]
     618     evt9.SetNameThreshold("MCerPhotEvt");
     619     evt9.SetThreshold(15);
     620     */
     621/*
    616622    evt0.EnableSqrtVariance();
    617623    evt1.EnableSqrtVariance();
     
    622628    evt7.EnableSqrtVariance();
    623629    evt8.EnableSqrtVariance();
    624 
     630  */
    625631    MFillH fill0(&evt0, "MPedestalFundamental",    "FillPedFLG");
    626632    MFillH fill1(&evt1, "MPedestalFromExtractorRndm", "FillPedRmsFLG");
     
    630636    MFillH fill5(&evt5, "MCerPhotEvt",             "FillInterpolated");
    631637    MFillH fill6(&evt6, "MBadPixelsCam",           "FillUnsuitable");
    632     MFillH fill7(&evt7, "MArrivalTime",            "FillTimes");
     638    MFillH fill7(&evt7, "MCerPhotEvt",             "FillTimes");
    633639    MFillH fill8(&evt8, "MCalibConstCam",          "FillConv");
    634     //MFillH fill9(&evt9, "MCalibConstCam",          "FillPulse");
     640    MFillH fill9(&evt9, "MCerPhotEvt",             "FillPulse");
    635641
    636642    MTaskEnv fillflorian("FinalFantasy");
    637643    fillflorian.SetDefault();
    638 
    639     // Write the special MC tree
    640     MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW");
    641     writemc.SetName("WriteMC");
    642     writemc.AddContainer("MMcEvtBasic", "OriginalMC");
    643644
    644645    // The second rule is for the case reading raw-files!
     
    664665    write.AddContainer("MTime",                     "Events",     kFALSE);
    665666    write.AddContainer("MRawEvtHeader",             "Events");
    666     write.AddContainer("MArrivalTime",              "Events",     kFALSE);
     667    //write.AddContainer("MArrivalTime",              "Events",     kFALSE);
    667668    write.AddContainer("MPointingPos",              "Events",     kFALSE);
    668669    // Slow-Control: Current-tree
     
    688689    write.AddContainer("MReportCC",                 "CC",         kFALSE);
    689690    write.AddContainer("MTimeCC",                   "CC",         kFALSE);
     691
     692    // Write the special MC tree
     693    MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW");
     694    writemc.SetName("WriteMC");
     695    writemc.AddContainer("MMcEvtBasic", "OriginalMC");
    690696
    691697    // Now setup tasklist for events
     
    754760    if (extractor2 || extractor1->InheritsFrom("MExtractTimeAndCharge"))
    755761      tlist2.AddToList(&fill7);
     762    tlist2.AddToList(&fill9);
    756763
    757764    tlist2.AddToList(&fillflorian);
Note: See TracChangeset for help on using the changeset viewer.