- Timestamp:
- 06/03/05 20:15:28 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7131 r7134 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/06/03 Thomas Bretz 24 25 * ganymed.cc: 26 - fixed the wrong printout of ganymed 27 28 * mars.cc: 29 - allow to open a file via commandline 30 31 * mars.rc: 32 - added some more comments 33 34 * mcalib/MCalibrateRelTimes.cc: 35 - removed obsolete comments 36 37 * mmain/MEventDisplay.cc: 38 - implemented muon analysis 39 - fixed a crash caused by the DF 40 41 * mmain/Makefile: 42 - added -I../mmuon 43 44 * mmuon/MMuonCalibPar.cc: 45 - updated Print output 46 47 * mmuon/MMuonSearchPar.[h,cc]: 48 - updated print output 49 - added Paint function 50 51 * mranforest/MRFEnergyEst.h: 52 - fixed thw wrong data types in setters 53 54 * msignal/MExtractTimeAndChargeDigitalFilter.cc: 55 - don't try to find automatic weights without template file name 56 57 58 23 59 2005/06/03 24 60 -
trunk/MagicSoft/Mars/NEWS
r7133 r7134 3 3 *** Version <cvs> 4 4 5 5 - mars: show muon parameters graphically 6 7 - mars: now the file to open can be given as commandline 8 argument 9 6 10 7 11 *** Version 0.9.3 (2005/06/03) -
trunk/MagicSoft/Mars/ganymed.cc
r7091 r7134 41 41 gLog << all << endl; 42 42 gLog << "Sorry the usage is:" << endl; 43 gLog << " ganymed [ -c] [-y] [options] sequences.txt" << endl << endl;43 gLog << " ganymed [options] sequences.txt" << endl << endl; 44 44 gLog << " Arguments:" << endl; 45 45 gLog << " dataset.txt: Ascii file defining a collection of sequences" << endl; -
trunk/MagicSoft/Mars/mars.cc
r7091 r7134 6 6 #include "MLogManip.h" 7 7 8 #include "MCameraDisplay.h"9 8 #include "MArgs.h" 10 9 #include "MArray.h" … … 14 13 #include "MLogo.h" 15 14 #endif 15 16 #include "MCameraDisplay.h" 17 #include "MEventDisplay.h" 16 18 17 19 using namespace std; … … 43 45 gLog << all << endl; 44 46 gLog << "Sorry the usage is:" << endl; 45 gLog << " mars [options] " << endl << endl;47 gLog << " mars [options] [filename]" << endl << endl; 46 48 gLog << " Options:" << endl; 47 49 gLog.Usage(); … … 59 61 StartUpMessage(); 60 62 61 if (arg.HasOption("-?") || arg.HasOption("-h") )63 if (arg.HasOption("-?") || arg.HasOption("-h") || arg.GetNumArguments()>1) 62 64 { 63 65 Usage(); 64 66 return 2; 65 67 } 68 69 // 70 // This is to make argv[i] more readable insidethe code 71 // 72 const TString kFilename = arg.GetArgumentStr(0); 66 73 67 74 #ifdef HAVE_XPM … … 86 93 MParContainer::Class()->IgnoreTObjectStreamer(); 87 94 88 /*89 TGApplication app("Mars", &argc, argv);90 91 #if ROOT_VERSION_CODE < ROOT_VERSION(3,10,02)92 InitGuiFactory();93 #endif94 */95 96 95 #ifdef HAVE_XPM 97 96 logo.Popdown(); … … 101 100 // start the main window 102 101 // 103 new MCameraDisplay; 102 if (kFilename.IsNull()) 103 new MCameraDisplay; 104 else 105 new MEventDisplay(kFilename); 104 106 105 107 // -
trunk/MagicSoft/Mars/mars.rc
r6569 r7134 23 23 # whole calibration chain 24 24 # ------------------------------------------------------------------------- 25 ExtractSignal: MExtractTimeAndChargeDigitalFilter 25 #ExtractSignal: MExtractTimeAndChargeDigitalFilter 26 #ExtractSignal.WeightsFile: msignal/MC_weights46.dat 26 27 # ------------------------------------------------------------------------- 27 28 # Define here an extractor which can be used for the December 04 data. -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r6855 r7134 84 84 // - MBadPixelsCam 85 85 // 86 // The following output containers are also searched and created if87 // they were not found:88 //89 // - MArrivalTime90 //91 86 Int_t MCalibrateRelTimes::PreProcess(MParList *pList) 92 87 { … … 127 122 Int_t MCalibrateRelTimes::Process() 128 123 { 129 /*130 if (fCalibrations->GetNumPixels() != (UInt_t)fSignals->GetSize())131 {132 // FIXME: MArrivalTime must be of variable size -133 // like MSignalCam - because we must be able134 // to reduce size by zero supression135 // For the moment this check could be done in ReInit...136 *fLog << err << "MArrivalTime and MCalibrationCam have different sizes... abort." << endl;137 return kFALSE;138 }139 */140 141 124 const UInt_t npix = fSignals->GetSize(); 142 125 -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r7061 r7134 83 83 #include "MMcCalibrationUpdate.h" // MMcCalibrationUpdate 84 84 #include "MCalibrateData.h" // MCalibrateData 85 #include "MMuonSearchParCalc.h" // MMuonSearchParCalc 86 #include "MMuonCalibParCalc.h" // MMuonCalibParCalc 85 87 //#include "MMcTriggerLvl2Calc.h" // MMcTriggerLvl2Calc 86 88 … … 100 102 #include "MPedPhotCam.h" // MPedPhotCam 101 103 #include "MCalibrationChargeCam.h" // MCalibrationChargeCam 104 #include "MMuonSearchPar.h" // MMuonCalibPar 102 105 //#include "MMcTriggerLvl2.h" // MMcTriggerLvl2 103 106 … … 212 215 //plist->AddToList(atime); 213 216 214 MHEvent *evt01 = new MHEvent(MHEvent::kEvtSignal Raw);215 MHEvent *evt02 = new MHEvent(MHEvent::kEvtSignal Raw);217 MHEvent *evt01 = new MHEvent(MHEvent::kEvtSignalDensity); 218 MHEvent *evt02 = new MHEvent(MHEvent::kEvtSignalDensity); 216 219 MHEvent *evt03 = new MHEvent(type==1?MHEvent::kEvtPedPhot:MHEvent::kEvtPedestal); 217 220 MHEvent *evt04 = new MHEvent(type==1?MHEvent::kEvtPedPhotRMS:MHEvent::kEvtPedestalRMS); … … 247 250 248 251 MExtractTimeAndChargeDigitalFilter *digf = new MExtractTimeAndChargeDigitalFilter; 249 digf-> ReadWeightsFile("msignal/MC_weights.dat");252 digf->SetNameWeightsFile("msignal/cosmics_weights46.dat"); 250 253 251 254 MTaskEnv *taskenv1=new MTaskEnv("ExtractSignal"); … … 253 256 taskenv1->SetOwner(); 254 257 255 MSignalCalc *nanal= new MSignalCalc;256 MFillH *fill01= new MFillH(evt01, "MSignalCam", "MFillH01");257 MImgCleanStd *clean= new MImgCleanStd;258 MFillH *fill02= new MFillH(evt02, "MSignalCam", "MFillH02");259 MFillH *fill03= new MFillH(evt03, type==1?"MPedPhotFundamental":"MPedestalCam", "MFillH03");260 MFillH *fill04= new MFillH(evt04, type==1?"MPedPhotFromExtractorRndm":"MPedestalCam", "MFillH04");261 MFillH *fill06a= new MFillH(evt06a, "MCameraData", "MFillH06a");262 MFillH *fill06b= new MFillH(evt06b, "MCameraData", "MFillH06b");263 MHillasCalc *hcalc= new MHillasCalc;258 MSignalCalc *nanal = new MSignalCalc; 259 MFillH *fill01 = new MFillH(evt01, "MSignalCam", "MFillH01"); 260 MImgCleanStd *clean = new MImgCleanStd; 261 MFillH *fill02 = new MFillH(evt02, "MSignalCam", "MFillH02"); 262 MFillH *fill03 = new MFillH(evt03, type==1?"MPedPhotFundamental":"MPedestalCam", "MFillH03"); 263 MFillH *fill04 = new MFillH(evt04, type==1?"MPedPhotFromExtractorRndm":"MPedestalCam", "MFillH04"); 264 MFillH *fill06a = new MFillH(evt06a, "MCameraData", "MFillH06a"); 265 MFillH *fill06b = new MFillH(evt06b, "MCameraData", "MFillH06b"); 266 MHillasCalc *hcalc = new MHillasCalc; 264 267 //MMcTriggerLvl2Calc *trcal = new MMcTriggerLvl2Calc; 265 268 //MFillH *fill09 = new MFillH(evt09, "MMcTriggerLvl2", "MFillH09"); 266 MFillH *fill10= new MFillH(evt10, "MSignalCam", "MFillH10");267 268 MBadPixelsCalc *bcalc= new MBadPixelsCalc;269 MBadPixelsTreat *btreat= new MBadPixelsTreat;269 MFillH *fill10 = new MFillH(evt10, "MSignalCam", "MFillH10"); 270 271 MBadPixelsCalc *bcalc = new MBadPixelsCalc; 272 MBadPixelsTreat *btreat = new MBadPixelsTreat; 270 273 btreat->SetProcessTimes(kFALSE); 271 274 if (type==1) … … 336 339 } 337 340 tlist->AddToList(hcalc); 341 // -------------------------------------------------- 342 MMuonSearchParCalc *muscalc = new MMuonSearchParCalc; 343 MMuonCalibParCalc *mcalc = new MMuonCalibParCalc; 344 MFillH *fillmuon = new MFillH("MHSingleMuon", "", "FillMuon"); 345 tlist->AddToList(muscalc); 346 tlist->AddToList(fillmuon); 347 tlist->AddToList(mcalc); 348 // -------------------------------------------------- 338 349 339 350 // … … 542 553 plist->FindObject("MImagePar")->Print(); 543 554 ((MNewImagePar*)plist->FindObject("MNewImagePar"))->Print(*geom); 555 plist->FindObject("MMuonCalibPar")->Print(); 556 ((MMuonSearchPar*)plist->FindObject("MMuonSearchPar"))->Print(*geom); 544 557 545 558 // … … 589 602 TObject *hillas1 = plist->FindObject("MHillas"); 590 603 TObject *hillas2 = plist->FindObject("MHillasSrc"); 604 TObject *hmuon = plist->FindObject("MMuonSearchPar"); 591 605 for (int i=1; i<7;i++) 592 606 { 593 607 TCanvas *c = GetCanvas(i); 594 608 c->GetPad(1)->cd(1); 609 hmuon->Draw(); 595 610 hillas1->Draw(); 596 611 hillas2->Draw(); -
trunk/MagicSoft/Mars/mmain/Makefile
r6856 r7134 23 23 -I../mfileio -I../mimage -I../mhistmc -I../mgbase -I../mfbase \ 24 24 -I../mdata -I../msignal -I../mcalib -I../mbadpixels \ 25 -I../mpointing -I../mpedestal 25 -I../mpointing -I../mpedestal -I../mmuon 26 26 27 27 SRCFILES = MBrowser.cc \ -
trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc
r7009 r7134 52 52 { 53 53 fName = name ? name : "MMuonCalibPar"; 54 fTitle = title ? title : " Muon calibration parameters";54 fTitle = title ? title : "Parameters to calculate Muon calibration"; 55 55 56 56 Reset(); … … 76 76 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 77 77 // *fLog << " - Arc Length [deg] = " << fArcLength << endl; 78 *fLog << " - Arc Phi 79 *fLog << " - Arc Width 80 *fLog << " - Chi Arc Phi 81 *fLog << " - Chi Arc Width 78 *fLog << " - Arc Phi [deg] = " << fArcPhi << endl; 79 *fLog << " - Arc Width [deg] = " << fArcWidth << endl; 80 *fLog << " - Chi Arc Phi [x2/ndf]= " << fChiArcPhi << endl; 81 *fLog << " - Chi Arc Width[x2/ndf]= " << fChiArcWidth << endl; 82 82 // *fLog << " - Est. I. P. [m] = " << fEstImpact << endl; 83 *fLog << " - Size of muon 84 *fLog << " - Peak Phi 83 *fLog << " - Size of muon [phe] = " << fMuonSize << endl; 84 *fLog << " - Peak Phi [deg] = " << fPeakPhi << endl; 85 85 } 86 86 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r7009 r7134 54 54 55 55 #include <TMinuit.h> 56 #include <TEllipse.h> 56 57 57 58 #include "MLog.h" … … 77 78 { 78 79 fName = name ? name : "MMuonSearchPar"; 79 fTitle = title ? title : " Muon search parameters";80 fTitle = title ? title : "Parameters to find Muons"; 80 81 } 81 82 … … 261 262 *fLog << all; 262 263 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 263 *fLog << " - Est. Radius [mm]= " << fRadius << endl;264 *fLog << " - Deviation [mm]= " << fDeviation << endl;265 *fLog << " - Center Pos. X [mm]= " << fCenterX << endl;266 *fLog << " - Center Pos. Y [mm]= " << fCenterY << endl;264 *fLog << " - Est. Radius [mm] = " << fRadius << endl; 265 *fLog << " - Deviation [mm] = " << fDeviation << endl; 266 *fLog << " - Center Pos. X [mm] = " << fCenterX << endl; 267 *fLog << " - Center Pos. Y [mm] = " << fCenterY << endl; 267 268 } 268 269 … … 271 272 *fLog << all; 272 273 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 273 *fLog << " - Est. Radius [deg] = " << fRadius*geom.GetConvMm2Deg() << endl; 274 *fLog << " - Deviation [deg] = " << fDeviation*geom.GetConvMm2Deg() << endl; 275 *fLog << " - Center Pos. X [deg] = " << fCenterX*geom.GetConvMm2Deg() << endl; 276 *fLog << " - Center Pos. Y [deg] = " << fCenterY*geom.GetConvMm2Deg() << endl; 277 } 274 *fLog << " - Est. Radius [deg] = " << fRadius*geom.GetConvMm2Deg() << endl; 275 *fLog << " - Deviation [deg] = " << fDeviation*geom.GetConvMm2Deg() << endl; 276 *fLog << " - Center Pos. X [deg] = " << fCenterX*geom.GetConvMm2Deg() << endl; 277 *fLog << " - Center Pos. Y [deg] = " << fCenterY*geom.GetConvMm2Deg() << endl; 278 } 279 280 // -------------------------------------------------------------------------- 281 // 282 // Paint the ellipse corresponding to the parameters 283 // 284 void MMuonSearchPar::Paint(Option_t *opt) 285 { 286 if (fRadius<180 || fRadius>400 || fDeviation>45) 287 return; 288 289 TEllipse e1(fCenterX, fCenterY, fRadius-fDeviation, fRadius-fDeviation); 290 TEllipse e2(fCenterX, fCenterY, fRadius+fDeviation, fRadius+fDeviation); 291 e1.SetLineWidth(1); 292 e2.SetLineWidth(1); 293 e1.SetLineColor(kYellow); 294 e2.SetLineColor(kYellow); 295 e1.Paint(); 296 e2.Paint(); 297 } -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h
r6979 r7134 32 32 MMuonSearchPar(const char *name=NULL, const char *title=NULL); 33 33 34 // MParContainer 34 35 void Reset(); 35 36 37 // Getter 36 38 Float_t GetRadius() const { return fRadius; } 37 39 Float_t GetDeviation() const { return fDeviation; } … … 39 41 Float_t GetCenterY() const { return fCenterY; } 40 42 43 // MMuonSearchPar 41 44 void CalcMinimumDeviation(const MGeomCam &geom, const MSignalCam &evt, 42 45 Double_t &x, Double_t &y, Double_t &sigma, Double_t &rad); … … 45 48 const MHillas &hillas); 46 49 50 // TObject 51 void Paint(Option_t *opt=""); 47 52 void Print(Option_t *opt=NULL) const; 48 53 void Print(const MGeomCam &geom, Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.h
r7130 r7134 41 41 void SetFileName(TString str) { fFileName = str; } 42 42 43 void SetNumTrees( UShort_t n=-1) { fNumTrees = n; }44 void SetNdSize( UShort_t n=-1) { fNdSize = n; }45 void SetNumTry( UShort_t n=-1) { fNumTry = n; }43 void SetNumTrees(Int_t n=-1) { fNumTrees = n; } 44 void SetNdSize(Int_t n=-1) { fNdSize = n; } 45 void SetNumTry(Int_t n=-1) { fNumTry = n; } 46 46 47 47 void SetTestMatrix(MHMatrix *m=0) { fTestMatrix=m; } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r7099 r7134 846 846 return kTRUE; 847 847 848 if (fNameWeightsFile.IsNull()) 849 { 850 *fLog << err << "ERROR - Cannot get automatic weights without default filename." << endl; 851 return kFALSE; 852 } 853 848 854 *fLog << dbg << endl; 849 855 *fLog << underline << GetDescriptor() << endl;
Note:
See TracChangeset
for help on using the changeset viewer.