Changeset 5775 for trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
- Timestamp:
- 01/10/05 17:51:04 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r5657 r5775 6 6 #include "TArrayS.h" 7 7 8 #include "MArray.h" 9 #include "MParContainer.h" 8 10 #include "MParList.h" 9 11 #include "MTaskList.h" … … 34 36 #include "MCerPhotEvt.h" 35 37 #include "MPedPhotCam.h" 38 #include "MArrivalTime.h" 36 39 #include "MCalibrateData.h" 37 40 #include "MPedPhotCalc.h" … … 60 63 61 64 #include "TApplication.h" 65 #include "TClass.h" 62 66 63 67 #include <iostream> … … 101 105 102 106 const TString defaultcard="makehillas.datacard"; 103 char* chext[ 3]={"Fixed window","Sliding window","Peak Search"};107 char* chext[4]={"Fixed window","Sliding window","Peak Search","Spline"}; 104 108 /*************************************************************/ 105 109 static void Usage() … … 117 121 TApplication app("Application",0,0); 118 122 123 // to deal correctly with the streamer 124 MArray::Class()->IgnoreTObjectStreamer(); 125 MParContainer::Class()->IgnoreTObjectStreamer(); 126 119 127 // evaluate arguments 120 128 MArgs arg(argc, argv); … … 158 166 case 3: 159 167 extractor = new MExtractTimeAndChargeSpline(); 168 ((MExtractTimeAndChargeSpline*)extractor)->SetTimeType(MExtractTimeAndChargeSpline::kHalfMaximum); 160 169 ((MExtractTimeAndChargeSpline*)extractor)->SetChargeType(MExtractTimeAndChargeSpline::kIntegral); 161 170 ((MExtractTimeAndChargeSpline*)extractor)->SetRiseTime((Float_t)wsize*0.25); 162 171 ((MExtractTimeAndChargeSpline*)extractor)->SetFallTime((Float_t)wsize*0.75); 163 ((MExtractTimeAndChargeSpline*)extractor)->SetTimeType(MExtractTimeAndChargeSpline::kHalfMaximum);164 172 break; 165 173 default: … … 210 218 } 211 219 212 MPedestalCam pedcammean = pedloop1.GetPedestalCam();220 MPedestalCam& pedcammean = pedloop1.GetPedestalCam(); 213 221 extractor->SetPedestals(&pedcammean); 214 222 … … 228 236 if (!calloop.Process(pedcammean)) 229 237 return; 238 239 MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam(); 240 chargecam.Print(); 230 241 231 242 … … 316 327 plist4.AddToList(&tlist4); 317 328 plist4.AddToList(&geomcam); 318 329 plist4.AddToList(&pedcamrms); 330 319 331 //tasks 320 332 MReadMarsFile read4("Events"); … … 351 363 MCerPhotEvt nphot; 352 364 MPedPhotCam nphotrms; 365 MArrivalTime arrtime; 353 366 MHillas hillas; 354 367 MNewImagePar newimagepar; … … 382 395 plist5.AddToList(&nphot); 383 396 plist5.AddToList(&nphotrms); 397 plist5.AddToList(&arrtime); 384 398 plist5.AddToList(&source); 385 399 plist5.AddToList(&hillas);
Note:
See TracChangeset
for help on using the changeset viewer.