Ignore:
Timestamp:
04/28/04 11:15:08 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3854 r3862  
    5454#include "MReadMarsFile.h"
    5555#include "MGeomApply.h"
    56 #include "MExtractSignal.h"
     56#include "MExtractSlidingWindow.h"
     57#include "MExtractor.h"
    5758#include "MFillH.h"
    5859#include "MCalibrate.h"
     
    6566
    6667using namespace std;
    67 
    68 MJExtractCalibTest::MJExtractCalibTest(const char *name, const char *title) : fRuns(0)
     68// --------------------------------------------------------------------------
     69//
     70// Default constructor.
     71//
     72// Sets fRuns to 0, fExtractor to NULL
     73//
     74MJExtractCalibTest::MJExtractCalibTest(const char *name, const char *title)
     75    : fRuns(NULL), fExtractor(NULL)
    6976{
    7077    fName  = name  ? name  : "MJExtractCalibTest";
     
    93100 
    94101  // Create histograms to display
    95   MHCamera disp1 (geomcam, "Cal;Photons",           "Mean of calibrated Photons");
    96   MHCamera disp2 (geomcam, "Cal;SigmaPhotons",      "Sigma of calibrated photons");
    97   MHCamera disp3 (geomcam, "Cal;PhotonsPerArea",    "Mean Photons per Area");
    98   MHCamera disp4 (geomcam, "Cal;SigmaPhotPerArea",  "Sigma Photons per Area");
     102  MHCamera disp1 (geomcam, "Test;Photons",           "Mean of calibrated Photons");
     103  MHCamera disp2 (geomcam, "Test;SigmaPhotons",      "Sigma of calibrated photons");
     104  MHCamera disp3 (geomcam, "Test;PhotonsPerArea",    "Equiv. Cherenkov Photons per Area");
     105  MHCamera disp4 (geomcam, "Test;SigmaPhotPerArea",  "Sigma equiv. Cher. Photons per Area");
    99106
    100107  // Fitted charge means and sigmas
     
    199206  static_cast<MRead&>(read).AddFiles(*fRuns);
    200207 
    201   MGeomApply      apply; // Only necessary to craete geometry
    202   MExtractSignal  extract;
    203   MCalibrate      photcalc;
     208  MGeomApply            apply; // Only necessary to craete geometry
     209  MExtractSlidingWindow extract2;
     210  MCalibrate            photcalc;
    204211  photcalc.SetCalibrationMode(MCalibrate::kFfactor);
    205212
     
    223230  tlist.AddToList(&read);
    224231  tlist.AddToList(&apply);
    225   tlist.AddToList(&extract);
     232
     233  if (fExtractor)
     234    tlist.AddToList(fExtractor);
     235    else
     236    {
     237      *fLog << warn << GetDescriptor()
     238            << ": No extractor has been chosen, take default MExtractSlidingWindow " << endl;
     239      tlist.AddToList(&extract2);
     240    }
     241
    226242  if (TestBit(kEnableGraphicalOutput))
    227243    tlist.AddToList(&fill);
     
    328344    plist.AddToList(&tlist);
    329345
    330     MGeomApply      apply; // Only necessary to craete geometry
    331     MExtractSignal  extract;
    332     MCalibrate      calib;
    333     MPedPhotCalc    calc;
     346    MGeomApply            apply; // Only necessary to craete geometry
     347    MExtractSlidingWindow extract2;
     348    MCalibrate            calib;
     349    MPedPhotCalc          calc;
    334350
    335351    MHCamEvent evt1("ExtOffset");
     
    342358    tlist.AddToList(&read);
    343359    tlist.AddToList(&apply);
    344     tlist.AddToList(&extract);
     360
     361    if (fExtractor)
     362      tlist.AddToList(fExtractor);
     363    else
     364      {
     365      *fLog << warn << GetDescriptor()
     366            << ": No extractor has been chosen, take default MExtractSlidingWindow " << endl;
     367      tlist.AddToList(&extract2);
     368    }
     369
    345370    if (TestBit(kEnableGraphicalOutput))
    346371        tlist.AddToList(&fill1);
Note: See TracChangeset for help on using the changeset viewer.