Ignore:
Timestamp:
01/10/05 17:51:04 (20 years ago)
Author:
rico
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc

    r5657 r5775  
    66#include "TArrayS.h"
    77
     8#include "MArray.h"
     9#include "MParContainer.h"
    810#include "MParList.h"
    911#include "MTaskList.h"
     
    3436#include "MCerPhotEvt.h"
    3537#include "MPedPhotCam.h"
     38#include "MArrivalTime.h"
    3639#include "MCalibrateData.h"
    3740#include "MPedPhotCalc.h"
     
    6063
    6164#include "TApplication.h"
     65#include "TClass.h"
    6266
    6367#include <iostream>
     
    101105
    102106const TString defaultcard="makehillas.datacard";
    103 char* chext[3]={"Fixed window","Sliding window","Peak Search"};
     107char* chext[4]={"Fixed window","Sliding window","Peak Search","Spline"};
    104108/*************************************************************/
    105109static void Usage()
     
    117121  TApplication app("Application",0,0);
    118122
     123  // to deal correctly with the streamer
     124  MArray::Class()->IgnoreTObjectStreamer();
     125  MParContainer::Class()->IgnoreTObjectStreamer();
     126
    119127  // evaluate arguments
    120128  MArgs arg(argc, argv);
     
    158166    case 3:
    159167      extractor = new MExtractTimeAndChargeSpline();
     168      ((MExtractTimeAndChargeSpline*)extractor)->SetTimeType(MExtractTimeAndChargeSpline::kHalfMaximum);
    160169      ((MExtractTimeAndChargeSpline*)extractor)->SetChargeType(MExtractTimeAndChargeSpline::kIntegral);     
    161170      ((MExtractTimeAndChargeSpline*)extractor)->SetRiseTime((Float_t)wsize*0.25);
    162171      ((MExtractTimeAndChargeSpline*)extractor)->SetFallTime((Float_t)wsize*0.75);
    163       ((MExtractTimeAndChargeSpline*)extractor)->SetTimeType(MExtractTimeAndChargeSpline::kHalfMaximum);
    164172      break;
    165173    default:
     
    210218    }
    211219
    212   MPedestalCam pedcammean = pedloop1.GetPedestalCam();     
     220  MPedestalCam& pedcammean = pedloop1.GetPedestalCam();     
    213221  extractor->SetPedestals(&pedcammean);
    214222
     
    228236    if (!calloop.Process(pedcammean))
    229237      return;
     238
     239  MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam();
     240  chargecam.Print();
    230241
    231242
     
    316327      plist4.AddToList(&tlist4);
    317328      plist4.AddToList(&geomcam);
    318      
     329      plist4.AddToList(&pedcamrms);
     330
    319331      //tasks
    320332      MReadMarsFile read4("Events");
     
    351363  MCerPhotEvt     nphot;
    352364  MPedPhotCam     nphotrms;
     365  MArrivalTime    arrtime;
    353366  MHillas         hillas;
    354367  MNewImagePar    newimagepar;
     
    382395  plist5.AddToList(&nphot);
    383396  plist5.AddToList(&nphotrms);
     397  plist5.AddToList(&arrtime);
    384398  plist5.AddToList(&source);
    385399  plist5.AddToList(&hillas);
Note: See TracChangeset for help on using the changeset viewer.