Changeset 7210 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 07/22/05 13:18:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7202 r7210 47 47 #include "MH3.h" 48 48 #include "MHVsTime.h" 49 #include "MHSectorVsTime.h" 49 50 #include "MHCamEvent.h" 50 51 #include "MHCamEventRot.h" … … 195 196 readreal.AddTree("Drive", MReadReports::kRequired); 196 197 readreal.AddTree("Starguider", MReadReports::kRequired); 198 readreal.AddTree("Currents", MReadReports::kRequired); 197 199 readreal.AddTree("CC"); 198 200 readreal.AddFiles(iter); … … 219 221 clean.SetNamePedPhotCam("MPedPhotFromExtractorRndm"); 220 222 221 //MSrcPosCalc poscalc; 222 //MSrcPosCorrect poscorrect; 223 MHillasCalc hcalc; 223 MSrcPosCalc poscalc; 224 MHillasCalc hcalc; 224 225 hcalc.Disable(MHillasCalc::kCalcConc); 225 226 … … 233 234 MFillH fillp2("MHPointing", "MTimeStarguider", "FillStarguider"); 234 235 fillp1.SetBit(MFillH::kDoNotDisplay); 235 //fillp2.SetNameTab("Drive"); 236 fillp1.SetBit(MFillH::kCanSkip); 237 fillp2.SetBit(MFillH::kCanSkip); 236 238 237 239 MFillH fill0a(&evt0a, "MSignalCam", "FillSignalCam"); … … 258 260 259 261 // Data 260 write.AddContainer("MHillas", "Events");261 write.AddContainer("MHillasExt", "Events");262 write.AddContainer("MHillasSrc", "Events");263 write.AddContainer("MImagePar", "Events");264 write.AddContainer("MNewImagePar", "Events");265 write.AddContainer("MRawEvtHeader", "Events");266 write.AddContainer("MPointingPos", "Events");262 write.AddContainer("MHillas", "Events"); 263 write.AddContainer("MHillasExt", "Events"); 264 write.AddContainer("MHillasSrc", "Events"); 265 write.AddContainer("MImagePar", "Events"); 266 write.AddContainer("MNewImagePar", "Events"); 267 write.AddContainer("MRawEvtHeader", "Events"); 268 write.AddContainer("MPointingPos", "Events"); 267 269 268 270 // Run Header 269 write.AddContainer("MRawRunHeader", "RunHeaders");270 write.AddContainer("MBadPixelsCam", "RunHeaders");271 write.AddContainer("MGeomCam", "RunHeaders");272 write.AddContainer("MObservatory", "RunHeaders");271 write.AddContainer("MRawRunHeader", "RunHeaders"); 272 write.AddContainer("MBadPixelsCam", "RunHeaders"); 273 write.AddContainer("MGeomCam", "RunHeaders"); 274 write.AddContainer("MObservatory", "RunHeaders"); 273 275 274 276 // Muon Setup 275 write.AddContainer("BinningRadius", "RunHeaders");276 write.AddContainer("BinningArcWidth", "RunHeaders");277 write.AddContainer("BinningRingBroadening", "RunHeaders");278 write.AddContainer("BinningSizeVsArcRadius", "RunHeaders");279 write.AddContainer("MMuonSetup", "RunHeaders");277 write.AddContainer("BinningRadius", "RunHeaders"); 278 write.AddContainer("BinningArcWidth", "RunHeaders"); 279 write.AddContainer("BinningRingBroadening", "RunHeaders"); 280 write.AddContainer("BinningSizeVsArcRadius", "RunHeaders"); 281 write.AddContainer("MMuonSetup", "RunHeaders"); 280 282 281 283 if (ismc) 282 284 { 283 285 // Monte Carlo Data 284 write.AddContainer("MMcEvt", "Events");285 write.AddContainer("MMcTrig", "Events");286 write.AddContainer("MMcEvt", "Events"); 287 write.AddContainer("MMcTrig", "Events"); 286 288 // Monte Carlo Run Headers 287 write.AddContainer("MMcRunHeader", "RunHeaders");288 write.AddContainer("MMcTrigHeader", "RunHeaders");289 write.AddContainer("MMcFadcHeader", "RunHeaders");290 write.AddContainer("MMcConfigRunHeader", "RunHeaders");291 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders");289 write.AddContainer("MMcRunHeader", "RunHeaders"); 290 write.AddContainer("MMcTrigHeader", "RunHeaders"); 291 write.AddContainer("MMcFadcHeader", "RunHeaders"); 292 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 293 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 292 294 } 293 295 else … … 298 300 write.AddContainer("MTimeDrive", "Drive"); 299 301 // Starguider 300 write.AddContainer("MReportStarguider", "Starguider" );301 write.AddContainer("MTimeStarguider", "Starguider" );302 write.AddContainer("MReportStarguider", "Starguider", kFALSE); 303 write.AddContainer("MTimeStarguider", "Starguider", kFALSE); 302 304 // Effective On Time 303 305 writet.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); … … 306 308 307 309 // What to write in muon tree 308 writem.AddContainer("MMuonSearchPar", "Muons");309 writem.AddContainer("MMuonCalibPar", "Muons");310 writem.AddContainer("MHillas", "Muons");311 writem.AddContainer("MHillasExt", "Muons");312 writem.AddContainer("MHillasSrc", "Muons");313 writem.AddContainer("MImagePar", "Muons");314 writem.AddContainer("MNewImagePar", "Muons");315 writem.AddContainer("MRawEvtHeader", "Muons");316 writem.AddContainer("MPointingPos", "Muons");310 writem.AddContainer("MMuonSearchPar", "Muons"); 311 writem.AddContainer("MMuonCalibPar", "Muons"); 312 writem.AddContainer("MHillas", "Muons"); 313 writem.AddContainer("MHillasExt", "Muons"); 314 writem.AddContainer("MHillasSrc", "Muons"); 315 writem.AddContainer("MImagePar", "Muons"); 316 writem.AddContainer("MNewImagePar", "Muons"); 317 writem.AddContainer("MRawEvtHeader", "Muons"); 318 writem.AddContainer("MPointingPos", "Muons"); 317 319 if (ismc) 318 320 { 319 321 // Monte Carlo Data 320 writem.AddContainer("MMcEvt", "Muons");321 writem.AddContainer("MMcTrig", "Muons");322 writem.AddContainer("MMcEvt", "Muons"); 323 writem.AddContainer("MMcTrig", "Muons"); 322 324 } 323 325 … … 344 346 tlist2.AddToList(&fill0a); 345 347 tlist2.AddToList(&fill0b); 346 //tlist2.AddToList(&poscalc); 347 //tlist2.AddToList(&poscorrect); 348 tlist2.AddToList(&poscalc); 348 349 tlist2.AddToList(&hcalc); 349 350 tlist2.AddToList(&fill1); … … 389 390 // ------------------------------------------------------------ 390 391 392 // Initialize histogram 393 MHSectorVsTime histdc; 394 histdc.SetNameTime("MTimeCurrents"); 395 histdc.SetTitle("Mean of all DC Currents;;<I> [nA]"); 396 /* 397 // Define area index [0=inner, 1=outer] 398 // TArrayI inner(1); inner[0] = 0; histdc.SetAreaIndex(inner); 399 */ 400 401 // Task to fill the histogram 402 MFillH filldc(&histdc, "MCameraDC", "FillDC"); 403 filldc.SetNameTab("Currents"); 404 391 405 MFillH fillw("MHWeather", "MTimeCC", "FillWeather"); 392 //tlist2.AddToList(&fill6);393 //tlist2.AddToList(&fill7);394 //tlist2.AddToList(&fill9);395 406 396 407 MPointingPosCalc pcalc; 408 409 // ------------------------------------------------------------ 397 410 398 411 tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal); … … 404 417 tlist.AddToList(&fillp1, "Drive"); 405 418 tlist.AddToList(&fillp2, "Starguider"); 419 tlist.AddToList(&filldc, "Currents"); 406 420 } 407 421 tlist.AddToList(&write);
Note:
See TracChangeset
for help on using the changeset viewer.