Changeset 6993 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 05/03/05 18:02:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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 -
TabularUnified 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; -
TabularUnified 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); -
TabularUnified 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 -
TabularUnified 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 \
Note:
See TracChangeset
for help on using the changeset viewer.