Changeset 5775 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 01/10/05 17:51:04 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r5673 r5775 19 19 -*-*- END OF LINE -*-*- 20 20 21 2005/01/10 Javier Rico 22 * programs/makeHillas, programs/makehillas.datacard 23 - adapt to new mars version 24 21 25 2004/12/22 Eva Domingo 22 26 * library/MImageParDisp.[cc,h] -
trunk/MagicSoft/Mars/mtemp/mifae/programs/Makefile
r5281 r5775 18 18 include ../../../Makefile.conf.general 19 19 20 PROGRAMS = makeHillas psffit falseSource srcPos optimizeCuts controlPlot 20 PROGRAMS = makeHillas 21 #psffit falseSource srcPos optimizeCuts controlPlot 21 22 SOLIB = $(MARSSYS)/libmars.so 22 23 -
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); -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r5657 r5775 11 11 12 12 // Maximun number of (data) events to be processed) 13 NEVENTS 9999999913 NEVENTS 5000 14 14 15 15 // data file directory 16 IDIR / mnt/magic/Data/rootdata/CrabNebula/Period021/2004_09_22/16 IDIR /local_disk/jrico/rawdata/ 17 17 18 18 // Pedestal (PRUNS), calibration (CRUNS) and data runs (DRUNS), e.g 1500-23444,25444,25455-26544 19 19 // if PRUNS 0, take pedestals from low gains 20 PCRUNS 39313 21 CRUNS 39315 22 DRUNS 39261,39262,39264,39265,39269,39271,39273,39274,39276,39277,39279,39280,39282,39283,39285 23 //,39286,39288,39290,39292-39294,39296-39299,39301,39302,39304-39306,39308,39309,39311,39318,39319,39321,39322,39324,39325,39327,39328,39330,39331,39333,39334,39336-39338,39340-39342,39344,39348-39350,39352-39355,39357,39358,39360-39362,39364-39366,39368-39370,39372,39373 24 // 37478-37480,37482-37484,37486,37487,37489-37491,37493-37495,37497-37499,37501-37502,37504-37505,37507-37508,37510-37512,37514,37516-37519,37521,37522,37524,37525,37527-37529,37531,37532,37534,37535,37537-37539,37541-37544,37546-37551,37553-37555 20 PCRUNS 45380 21 CRUNS 45419 22 DRUNS 45428 25 23 26 24 // output file name … … 54 52 // 11: kDefault(F factor) + bad pixel interpolation 55 53 // 21: kDemocratic + bad pixel interpolation 56 CALFLAG 1 54 CALFLAG 11 57 55 58 56 // calibration time:
Note:
See TracChangeset
for help on using the changeset viewer.