Changeset 7196 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 07/19/05 11:04:43 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7181 r7196 51 51 #include "MTaskEnv.h" 52 52 #include "MSrcPosCalc.h" 53 #include "MSrcPosCorrect.h" 53 54 #include "MHillasCalc.h" 54 55 #include "MFillH.h" … … 335 336 write->AddContainer("MNewImagePar2", "Events", kFALSE); 336 337 write->AddContainer("MHadronness", "Events", kFALSE); 337 write->AddContainer("MEnergyEst", "Events", kFALSE); 338 write->AddContainer("MSrcPosCam", "Events", kFALSE); 339 write->AddContainer("MSrcPosAnti", "Events", kFALSE); 338 340 write->AddContainer("ThetaSquared", "Events", kFALSE); 341 write->AddContainer("OpticalAxis", "Events", kFALSE); 339 342 write->AddContainer("Disp", "Events", kFALSE); 340 343 write->AddContainer("MTime", "Events", kFALSE); … … 549 552 scalc.SetMode(fIsWobble?MSrcPosCalc::kWobble:MSrcPosCalc::kOffData); /********************/ 550 553 554 MSrcPosCorrect scor; 555 551 556 MHillasCalc hcalc; 552 557 MHillasCalc hcalc2("MHillasCalcAnti"); … … 558 563 MTaskList tlist2; 559 564 tlist2.AddToList(&scalc); 565 tlist2.AddToList(&scor); 560 566 tlist2.AddToList(&hcalc); 561 567 if (fIsWobble) -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7171 r7196 77 77 #include "MFillH.h" 78 78 #include "MHillasCalc.h" 79 #include "MSrcPosCalc.h"79 //#include "MSrcPosCalc.h" 80 80 #include "MContinue.h" 81 81 … … 968 968 969 969 // Get correct source position 970 MSrcPosCalc calc;970 //MSrcPosCalc calc; 971 971 972 972 // Calculate corresponding Hillas parameters 973 MHillasCalc hcalc1; 974 MHillasCalc hcalc2("MHillasCalcAnti"); 975 hcalc1.SetFlags(MHillasCalc::kCalcHillasSrc); 976 hcalc2.SetFlags(MHillasCalc::kCalcHillasSrc); 977 hcalc2.SetNameHillasSrc("MHillasSrcAnti"); 978 hcalc2.SetNameSrcPosCam("MSrcPosAnti"); 973 /* 974 MHillasCalc hcalc1; 975 MHillasCalc hcalc2("MHillasCalcAnti"); 976 hcalc1.SetFlags(MHillasCalc::kCalcHillasSrc); 977 hcalc2.SetFlags(MHillasCalc::kCalcHillasSrc); 978 hcalc2.SetNameHillasSrc("MHillasSrcAnti"); 979 hcalc2.SetNameSrcPosCam("MSrcPosAnti"); 980 */ 979 981 980 982 // Fill collection area and energy estimator (unfolding) … … 1034 1036 if (!fRawMc && fNoThetaWeights) 1035 1037 tlist2.AddToList(&contsel); 1036 tlist2.AddToList(&calc);1037 tlist2.AddToList(&hcalc1);1038 tlist2.AddToList(&hcalc2);1038 //tlist2.AddToList(&calc); 1039 //tlist2.AddToList(&hcalc1); 1040 //tlist2.AddToList(&hcalc2); 1039 1041 tlist2.AddToList(&weight); 1040 1042 tlist2.AddToList(&fill1a); -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7171 r7196 62 62 #include "MImgCleanStd.h" 63 63 #include "MSrcPosCalc.h" 64 #include "MSrcPosCorrect.h" 64 65 #include "MHillasCalc.h" 65 66 #include "MMuonSearchParCalc.h" … … 192 193 MReadReports readreal; 193 194 readreal.AddTree("Events", "MTime.", MReadReports::kMaster); 194 readreal.AddTree("Drive", MReadReports::kRequired); 195 readreal.AddTree("Drive", MReadReports::kRequired); 196 readreal.AddTree("Starguider", MReadReports::kRequired); 195 197 readreal.AddTree("CC"); 196 //read.AddTree("Trigger");197 //read.AddTree("Camera");198 //read.AddTree("Currents");199 198 readreal.AddFiles(iter); 200 199 … … 211 210 MGeomApply apply; // Only necessary to craete geometry 212 211 MEventRateCalc rate; 213 //MEventRateCalc rate1; // 5min214 212 rate.SetNumEvents(1200); 215 //rate1.SetNumEvents(60000);216 //rate1.SetNameEventRate("MEventRate2");217 //rate1.SetNameTimeRate("MTimeRate2");218 219 /*220 MEventRateCalc rate10000;221 rate10000.SetNameEventRate("MEventRate10000");222 rate10000.SetNumEvents(10000);223 */224 //MBadPixelsMerge merge(&badpix);225 213 226 214 MFSoftwareTrigger swtrig; … … 228 216 contsw.SetInverted(); 229 217 230 231 218 MImgCleanStd clean; 232 219 clean.SetNamePedPhotCam("MPedPhotFromExtractorRndm"); 233 220 234 MSrcPosCalc poscalc; 221 //MSrcPosCalc poscalc; 222 //MSrcPosCorrect poscorrect; 235 223 MHillasCalc hcalc; 236 224 hcalc.Disable(MHillasCalc::kCalcConc); … … 241 229 evt0b.SetThreshold(0); 242 230 243 //MHCamEventRot evt0r("UsedRot", "Pixels marked Used (derotated)"); 244 //evt0r.SetThreshold(0); 245 246 MH3 h1("MEventRate.fRate"); 247 h1.SetName("MHEventRate"); 248 h1.SetTitle("Event Rate distribution;R [Hz];Counts"); 249 h1.SetLogy(); 250 /* 251 MH3 h12("MEventRate10000.fRate"); 252 h12.SetName("MHEventRate"); 253 h12.SetLogy(); 254 */ 255 MBinning b1("BinningMHEventRate"); 256 b1.SetEdges(150, 0, 1500); 257 plist.AddToList(&b1); 258 259 MHVsTime hvs("MEventRate.fRate"); 260 hvs.SetTitle("Rate per 500 events;;R [Hz]"); 261 hvs.SetNumEvents(500); 262 hvs.SetMinimum(0); 263 264 //MContinue cont1("MEventRate2.fRate/MEventRate.fRate>1.1"); 265 //MContinue cont2("MEventRate.fRate/MEventRate2.fRate>1.1"); 266 267 MFillH fillvs(&hvs, "MTime", "FillEventRate10s"); 268 269 MFillH fill0a(&evt0a, "MSignalCam", "FillSignalCam"); 270 MFillH fill0b(&evt0b, "MSignalCam", "FillCntUsedPixels"); 271 //MFillH fill0r(&evt0r, "MCerPhotEvt", "FillCntUsedRotated"); 272 MFillH fill1("MHHillas", "MHillas", "FillHillas"); 273 MFillH fill2("MHHillasExt", "", "FillHillasExt"); 274 MFillH fill3("MHHillasSrc", "MHillasSrc", "FillHillasSrc"); 275 MFillH fill4("MHImagePar", "MImagePar", "FillImagePar"); 276 MFillH fill5("MHNewImagePar", "MNewImagePar", "FillNewImagePar"); 277 //MFillH fill6("MHImageParTime","MImageParTime","FillImageParTime"); 278 //MFillH fill7("MHNewImagePar2","MNewImagePar2","FillNewImagePar2"); 279 MFillH fill8(&h1, "", "FillEventRate"); 280 MFillH fill9("MHEffectiveOnTime", "MTime", "FillEffOnTime"); 281 //MFillH fillb(&h12, "", "FillEvtRate2"); 282 //MFillH fill9("MHCerPhot"); 283 284 //fill0r.SetDrawOption("colz"); 285 fill8.SetNameTab("EvtRate"); 231 MFillH fillvs("MHRate", "MTime", "FillEventRate"); 232 MFillH fillp1("MHPointing", "MTimeDrive", "FillDrive"); 233 MFillH fillp2("MHPointing", "MTimeStarguider", "FillStarguider"); 234 fillp1.SetBit(MFillH::kDoNotDisplay); 235 //fillp2.SetNameTab("Drive"); 236 237 MFillH fill0a(&evt0a, "MSignalCam", "FillSignalCam"); 238 MFillH fill0b(&evt0b, "MSignalCam", "FillCntUsedPixels"); 239 MFillH fill1("MHHillas", "MHillas", "FillHillas"); 240 MFillH fill2("MHHillasExt", "", "FillHillasExt"); 241 MFillH fill3("MHHillasSrc", "MHillasSrc", "FillHillasSrc"); 242 MFillH fill4("MHImagePar", "MImagePar", "FillImagePar"); 243 MFillH fill5("MHNewImagePar", "MNewImagePar", "FillNewImagePar"); 244 MFillH fill9("MHEffectiveOnTime", "MTime", "FillEffOnTime"); 245 246 //fillvs.SetNameTab("Rate"); 286 247 fill9.SetNameTab("EffOnTime"); 287 248 … … 301 262 write.AddContainer("MImagePar", "Events"); 302 263 write.AddContainer("MNewImagePar", "Events"); 303 //write.AddContainer("MNewImagePar2", "Events");304 //write.AddContainer("MImageParTime", "Events");305 264 write.AddContainer("MRawEvtHeader", "Events"); 306 265 write.AddContainer("MPointingPos", "Events"); … … 333 292 else 334 293 { 335 write.AddContainer("MTime", "Events");294 write.AddContainer("MTime", "Events"); 336 295 // Drive 337 write.AddContainer("MReportDrive", "Drive"); 338 write.AddContainer("MTimeDrive", "Drive"); 296 write.AddContainer("MReportDrive", "Drive"); 297 write.AddContainer("MTimeDrive", "Drive"); 298 // Starguider 299 write.AddContainer("MReportStarguider", "Starguider"); 300 write.AddContainer("MTimeStarguider", "Starguider"); 339 301 // Effective On Time 340 302 writet.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); … … 375 337 tlist2.AddToList(&rate); 376 338 tlist2.AddToList(&fillvs); 377 tlist2.AddToList(&fill8);378 339 tlist2.AddToList(&fill9); 379 340 tlist2.AddToList(&writet); 380 341 } 381 //tlist2.AddToList(&fillb);382 342 tlist2.AddToList(&clean); 383 343 tlist2.AddToList(&fill0a); 384 344 tlist2.AddToList(&fill0b); 385 //tlist2.AddToList(& fill0r);386 tlist2.AddToList(&poscalc);345 //tlist2.AddToList(&poscalc); 346 //tlist2.AddToList(&poscorrect); 387 347 tlist2.AddToList(&hcalc); 388 348 tlist2.AddToList(&fill1); … … 439 399 tlist.AddToList(&tlist2, "Events"); 440 400 if (!ismc) 401 { 441 402 tlist.AddToList(&fillw, "CC"); 403 tlist.AddToList(&fillp1, "Drive"); 404 tlist.AddToList(&fillp2, "Starguider"); 405 } 442 406 tlist.AddToList(&write); 443 407
Note:
See TracChangeset
for help on using the changeset viewer.