Changeset 6993 for trunk/MagicSoft/Mars
- Timestamp:
- 05/03/05 18:02:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6992 r6993 29 29 * mpointing/MSrcPosCalc.cc: 30 30 - removed dependancy on MTime for MC 31 32 * star.cc: 33 - addde possibility to switch off muon analysis 34 35 * star.rc: 36 - added parameters for muon analysis 37 38 * mbadpixels/MBadPixelsCam.cc: 39 - fixed a typo in a comment 40 41 * mjobs/MJStar.[h,cc]: 42 - added possibility to switch off muon analysis 43 44 * mjobs/Makefile: 45 - added -I../mmuon 46 47 * mjobs/MJCut.cc, mjobs/MJSpectrum.cc: 48 - renamed MHAlpha to Hist (to have a common naming for all options) 49 - renamed MHAlphaOff to HistOff 31 50 32 51 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r6705 r6993 299 299 // -------------------------------------------------------------------------- 300 300 // 301 // Returns the size of the biggest cluster with the given U SuitableType301 // Returns the size of the biggest cluster with the given UnsuitableType 302 302 // type and the given area index. 303 303 // -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6992 r6993 258 258 259 259 // Save also the result, not only the setup 260 const MHAlpha *halpha = (MHAlpha*)plist.FindObject( fNameHist, "MHAlpha");260 const MHAlpha *halpha = (MHAlpha*)plist.FindObject("Hist", "MHAlpha"); 261 261 if (halpha) 262 262 arr.Add((TObject*)(&halpha->GetAlphaFitter())); … … 365 365 } 366 366 367 const TString objname(Form("%s%s", fNameHist.Data(), name));367 const TString objname(Form("%s%s", "Hist"/*fNameHist.Data()*/, name)); 368 368 MHAlpha *h = (MHAlpha*)plist.FindCreateObj(fNameHist, objname); 369 369 if (!h) … … 446 446 447 447 MHAlpha *halphaoff = CreateNewHist(plist, "Off"); 448 MFillH falpha(halphaoff, " MHillasSrc", "FillAlpha");448 MFillH falpha(halphaoff, "", "FillHist"); 449 449 MFillH ffs("MHFalseSourceOff [MHFalseSource]", "MHillas", "FillFS"); 450 450 … … 675 675 */ 676 676 MHAlpha *halphaon=CreateNewHist(plist); 677 MFillH falpha2(halphaon, " MHillasSrc", "FillAlpha");677 MFillH falpha2(halphaon, "", "FillHist"); 678 678 MFillH ffs2("MHFalseSource", "MHillas", "FillFS"); 679 679 -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r6987 r6993 66 66 // Tasks/Filter 67 67 #include "MReadMarsFile.h" 68 #include "MReadMarsFile.h" 68 69 #include "MFEventSelector2.h" 69 70 #include "MFDataMember.h" … … 173 174 174 175 TH1D *vstime = (TH1D*)arr.FindObjectInCanvas("Theta", "TH1D", "OnTime"); 175 TH1D *size = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", " MHAlpha");176 TH1D *size = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", "Hist"); 176 177 if (!vstime || !size) 177 178 return -1; … … 183 184 184 185 if (fDisplay) 185 arr.DisplayIn(*fDisplay, " MHAlpha");186 arr.DisplayIn(*fDisplay, "Hist"); 186 187 187 188 if (!ReadTask(fCut0, "Cut0")) … … 343 344 taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 344 345 345 MFillH fill1(" MHAlphaOff [MHAlpha]", "MHillasSrc", "FillAlphaOff");346 MFillH fill2(" MHAlphaOn [MHAlpha]", "MHillasSrc", "FillAlphaOn");346 MFillH fill1("HistOff [MHAlpha]", "MHillasSrc", "FillHistOff"); 347 MFillH fill2("HistOn [MHAlpha]", "MHillasSrc", "FillHistOn"); 347 348 348 349 MFDataMember f0("DataType.fVal", '<', 0.5, "FilterOffData"); … … 381 382 } 382 383 383 const MHAlpha *halpha = (MHAlpha *)plist.FindObject(" MHAlphaOn");384 const MHAlpha *halpha = (MHAlpha *)plist.FindObject("HistOn"); 384 385 if (!halpha) 385 386 { 386 *fLog << err << GetDescriptor() << ": MHAlphaOn [MHAlpha] not found... abort." << endl;387 *fLog << err << GetDescriptor() << ": HistOn [MHAlpha] not found... abort." << endl; 387 388 return kFALSE; 388 389 } … … 615 616 cout << "Searching..." << endl; 616 617 617 TH1 *excess = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", " MHAlpha");618 TH1 *excess = (TH1D*)arr.FindObjectInCanvas("Excess", "TH1D", "Hist"); 618 619 if (!excess) 619 620 return kFALSE; -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r6987 r6993 62 62 #include "MSrcPosCalc.h" 63 63 #include "MHillasCalc.h" 64 #include "../mmuon/MMuonSearchParCalc.h" 65 #include "../mmuon/MMuonCalibParCalc.h" 66 #include "../mmuon/MMuonSetup.h" 64 #include "MMuonSearchParCalc.h" 65 #include "MMuonCalibParCalc.h" 67 66 #include "MFillH.h" 68 67 #include "MWriteRootFile.h" 69 68 69 #include "MMuonSetup.h" 70 70 #include "MObservatory.h" 71 71 #include "MPointingPosCalc.h" … … 81 81 // Sets fRuns to 0, fExtractor to NULL, fDataCheck to kFALSE 82 82 // 83 MJStar::MJStar(const char *name, const char *title) 83 MJStar::MJStar(const char *name, const char *title) : fMuonAnalysis(kTRUE) 84 84 { 85 85 fName = name ? name : "MJStar"; 86 86 fTitle = title ? title : "Standard analysis and reconstruction"; 87 } 88 89 Bool_t MJStar::CheckEnvLocal() 90 { 91 DisableMuonAnalysis(!GetEnv("MuonAnalysis", fMuonAnalysis)); 92 return kTRUE; 87 93 } 88 94 … … 357 363 tlist2.AddToList(&fill5); 358 364 359 // ********************************************************* 360 MMuonSetup setup; 361 plist.AddToList(&setup); 362 365 // ----------------------- Muon Analysis ---------------------- 363 366 MF fmuon1("MHillas.fSize>150", "MuonPreCut"); 364 365 MF fmuon2("(MMuonSearchPar.fRadius>180) &&" 366 "(MMuonSearchPar.fRadius<400) &&" 367 MF fmuon2("(MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) &&" 367 368 "(MMuonSearchPar.fDeviation<45)", "MuonSearchCut"); 368 fmuon2.SetFilter(&fmuon1); 369 370 MF fmuon3("(MMuonCalibPar.fArcPhi>175) &&" 371 "(MMuonSearchPar.fDeviation<37)", "MuonFinalCut"); 369 MF fmuon3("(MMuonCalibPar.fArcPhi>175) && (MMuonSearchPar.fDeviation<37)", 370 "MuonFinalCut"); 372 371 373 372 MMuonSearchParCalc muscalc; … … 377 376 mcalc.SetFilter(&fmuon2); 378 377 379 MFillH fill11("MHSingleMuon", "", "FillMuon"); 380 MFillH fill10("MHMuonPar", "", "FillMuonPar"); 381 fill11.SetFilter(&fmuon2); 382 fill10.SetFilter(&fmuon3); 383 384 tlist2.AddToList(&fmuon1); 385 tlist2.AddToList(&muscalc); 386 tlist2.AddToList(&fmuon2); 387 tlist2.AddToList(&fill11); 388 tlist2.AddToList(&mcalc); 389 tlist2.AddToList(&fmuon3); 390 tlist2.AddToList(&fill10); 391 392 // ********************************************************* 378 MFillH fillmuon("MHSingleMuon", "", "FillMuon"); 379 MFillH fillmpar("MHMuonPar", "", "FillMuonPar"); 380 fillmuon.SetFilter(&fmuon2); 381 fillmpar.SetFilter(&fmuon3); 382 383 if (fMuonAnalysis) 384 { 385 tlist2.AddToList(&fmuon1); 386 tlist2.AddToList(&muscalc); 387 tlist2.AddToList(&fmuon2); 388 tlist2.AddToList(&fillmuon); 389 tlist2.AddToList(&mcalc); 390 tlist2.AddToList(&fmuon3); 391 tlist2.AddToList(&fillmpar); 392 } 393 // ------------------------------------------------------------ 393 394 394 395 //tlist2.AddToList(&fill6); -
trunk/MagicSoft/Mars/mjobs/MJStar.h
r6987 r6993 9 9 { 10 10 private: 11 Bool_t fMuonAnalysis; 12 11 13 Bool_t WriteResult(); 14 Bool_t CheckEnvLocal(); 12 15 13 16 public: 14 17 MJStar(const char *name=NULL, const char *title=NULL); 15 18 19 // Setup 20 void DisableMuonAnalysis(Bool_t b=kTRUE) { fMuonAnalysis = !b; } 21 22 // Process 16 23 Bool_t Process(Bool_t ismc=kFALSE); 17 24 -
trunk/MagicSoft/Mars/mjobs/Makefile
r6958 r6993 23 23 -I../mbadpixels -I../msignal -I../mraw -I../mpedestal -I../mtools \ 24 24 -I../mimage -I../mpointing -I../mastro -I../mfbase -I../mhvstime \ 25 -I../mtrigger 25 -I../mtrigger -I../mmuon 26 26 27 27 SRCFILES = MSequence.cc \ -
trunk/MagicSoft/Mars/star.cc
r6987 r6993 66 66 gLog << " --out=path Path to write the all results to [def=local path]" << endl; 67 67 gLog << " (overwrites --outc and --outy)" << endl; 68 gLog << " --no-muons Switch off Muon analysis (for fast tests)" << endl; 68 69 gLog << " --print-seq Print Sequence information" << endl; 69 70 gLog << " --print-files Print Files taken from Sequence" << endl; … … 122 123 //const Bool_t kForceExec = arg.HasOnlyAndRemove("-ff"); 123 124 const Bool_t kIsMC = arg.HasOnlyAndRemove("-mc"); 125 const Bool_t kNoMuons = arg.HasOnlyAndRemove("--no-muons"); 124 126 125 127 const TString kInpath = arg.GetStringAndRemove("--ind=", ""); … … 224 226 job.SetPathData(kInpath); 225 227 // job.SetPathIn(kInpath); // not yet needed 228 if (kNoMuons) 229 job.DisableMuonAnalysis(); 226 230 227 231 if (!job.Process(kIsMC)) -
trunk/MagicSoft/Mars/star.rc
r6986 r6993 43 43 #MJStar.MaxEvents: 10000 44 44 #MJStar.Overwrite: yes,no 45 #MJStar.46 45 47 46 # ------------------------------------------------------------------------- 48 # Setup the muon analysis here47 # Setup or switch off the muon analysis here 49 48 # ------------------------------------------------------------------------- 50 # MMuonSetup.Margin: 0.2 51 # MMuonSetup.ThresholdArcPhi: 30 52 # MMuonSetup.ThresholdArcWidth: 30 53 # BinningRadius.Raw: 20 0.5 1.5 54 # BinningArcWidth.Raw: 60 0.0 0.3 55 # BinningRingBroadening.Raw: 20 0.5 1.5 56 # BinningSizeVsArcRadius.Raw: 20 0.5 1.5 57 # BinningsArcPhi.Raw: 21 -180 180 58 # BinningsMuonWidth.Raw: 28 0.3 1.7 49 50 #MJStar.MuonAnalysis: On 51 52 #MMuonSetup.Margin: 0.2 53 #MMuonSetup.ThresholdArcPhi: 30 54 #MMuonSetup.ThresholdArcWidth: 30 55 56 #BinningRadius.Raw: 20 0.5 1.5 57 #BinningArcWidth.Raw: 60 0.0 0.3 58 #BinningRingBroadening.Raw: 20 0.5 1.5 59 #BinningSizeVsArcRadius.Raw: 20 0.5 1.5 60 #BinningsArcPhi.Raw: 21 -180 180 61 #BinningsMuonWidth.Raw: 28 0.3 1.7 62 63 #MuonPreCut.Condition: MHillas.fSize>150 64 #MuonSearcCut.Condition: (MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) && (MMuonSearchPar.fDeviation<45) 65 #MuonFinalCut.Condition: (MMuonCalibPar.fArcPhi>175) && (MMuonSearchPar.fDeviation<37) 59 66 60 67 # ------------------------------------------------------------------------- 61 68 # ------------------------------------------------------------------------- 62 M JStar.MImgCleanStd.CleanLevel1: 4.563 M JStar.MImgCleanStd.CleanLevel2: 3.064 M JStar.MImgCleanStd.CleanMethod: Scaled69 MImgCleanStd.CleanLevel1: 4.5 70 MImgCleanStd.CleanLevel2: 3.0 71 MImgCleanStd.CleanMethod: Scaled 65 72 66 73 # -------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.