Changeset 8310 for trunk/MagicSoft/Mars/mjobs/MJStar.cc
- Timestamp:
- 02/09/07 09:02:23 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r8280 r8310 18 18 ! Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 ! … … 51 51 #include "MReadReports.h" 52 52 #include "MReadMarsFile.h" 53 #include "MF.h" 53 #include "MFDataPhrase.h" 54 #include "MFilterList.h" 54 55 #include "MFDataMember.h" 55 56 #include "MFDeltaT.h" … … 209 210 // ------------------ Setup histograms and fill tasks ---------------- 210 211 MHCamEvent evt0a(0, "Cleaned", "Signal after Cleaning;;S [\\gamma]"); 212 MHCamEvent evt0c(0, "Cleaned", "Signal after Cleaning and Spark cuts;;S [\\gamma]"); 213 MHCamEvent evt0d(0, "Cleaned", "Signal after Cleaning for Spark cuts;;S [\\gamma]"); 211 214 MHCamEvent evt0b(0, "UsedPix", "Fraction of Events in which Pixels are used;;Fraction"); 212 215 evt0a.SetErrorSpread(kFALSE); 213 216 evt0b.SetErrorSpread(kFALSE); 217 evt0c.SetErrorSpread(kFALSE); 218 evt0d.SetErrorSpread(kFALSE); 214 219 evt0b.SetThreshold(0); 215 220 … … 223 228 MFillH fill0a(&evt0a, "MSignalCam", "FillSignalCam"); 224 229 MFillH fill0b(&evt0b, "MSignalCam", "FillCntUsedPixels"); 230 MFillH fill0c(&evt0c, "MSignalCam", "FillSignalCamSparkless"); 231 MFillH fill0d(&evt0d, "MSignalCam", "FillSignalCamSparks"); 225 232 MFillH fill1("MHHillas", "MHillas", "FillHillas"); 226 233 MFillH fill2("MHHillasExt", "", "FillHillasExt"); … … 232 239 //fillvs.SetNameTab("Rate"); 233 240 fill9.SetNameTab("EffOnTime"); 241 fill0c.SetNameTab("Sparkless"); 242 fill0d.SetNameTab("Sparks"); 234 243 235 244 // ------------------ Setup write task ---------------- … … 327 336 tlist2.AddToList(&writet); 328 337 } 338 339 // Spark cut 340 MFDataPhrase fsparks("log10(MNewImagePar.fConc1) < (-0.371)*log10(MHillas.fSize) + 0.596", "SparkCut"); 341 fill0c.SetFilter(&fsparks); 342 343 // Inverted spark cut (need not to be a member of the task list 344 // because it fsparks is 345 MFilterList fnsparks(&fsparks); 346 fill0d.SetFilter(&fnsparks); 347 329 348 tlist2.AddToList(&clean); 330 tlist2.AddToList(&fill0a);331 tlist2.AddToList(&fill0b);332 349 tlist2.AddToList(&poscalc); 333 350 tlist2.AddToList(&hcalc); 351 tlist2.AddToList(&fsparks); 352 tlist2.AddToList(&fill0a); 353 tlist2.AddToList(&fill0c); 354 tlist2.AddToList(&fill0d); 355 tlist2.AddToList(&fill0b); 334 356 tlist2.AddToList(&fill1); 335 357 tlist2.AddToList(&fill2); … … 340 362 // ----------------------- Muon Analysis ---------------------- 341 363 // Filter to start muon analysis 342 MF fmuon1("MHillas.fSize>150", "MuonPreCut");364 MFDataPhrase fmuon1("MHillas.fSize>150", "MuonPreCut"); 343 365 // Filter to calculate further muon parameters 344 MF fmuon2("(MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) &&"345 "(MMuonSearchPar.fDeviation<45)", "MuonSearchCut");366 MFDataPhrase fmuon2("(MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) &&" 367 "(MMuonSearchPar.fDeviation<45)", "MuonSearchCut"); 346 368 // Filter to fill the MHMuonPar 347 MF fmuon3("(MMuonCalibPar.fArcPhi>190) && (MMuonSearchPar.fDeviation<35) &&"348 "(MMuonCalibPar.fArcWidth<0.20) && (MMuonCalibPar.fArcWidth>0.04)",349 "MuonFinalCut");369 MFDataPhrase fmuon3("(MMuonCalibPar.fArcPhi>190) && (MMuonSearchPar.fDeviation<35) &&" 370 "(MMuonCalibPar.fArcWidth<0.20) && (MMuonCalibPar.fArcWidth>0.04)", 371 "MuonFinalCut"); 350 372 // Filter to write Muons to Muon tree 351 373 MFDataMember fmuon4("MMuonCalibPar.fArcPhi", '>', -0.5, "MuonWriteCut");
Note:
See TracChangeset
for help on using the changeset viewer.