Changeset 9347 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 02/18/09 12:07:41 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r9328 r9347 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1. 69 2009-02-12 20:05:06tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.70 2009-02-18 12:06:39 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 92 92 #include "MContinue.h" // MContinue 93 93 #include "MTriggerPatternDecode.h" // MTriggerPatternDecode 94 #include "MSimSignalCam.h" // MSimSignalCam 95 #include "MSimGeomCam.h" // MSimGeomCam 94 96 //#include "MMcTriggerLvl2Calc.h" // MMcTriggerLvl2Calc 95 97 … … 112 114 #include "MCalibrationChargeCam.h" // MCalibrationChargeCam 113 115 #include "MMuonSearchPar.h" // MMuonCalibPar 116 #include "MHPhotonEvent.h" // MHPhotonEvent 114 117 //#include "MMcTriggerLvl2.h" // MMcTriggerLvl2 115 118 … … 180 183 return 2; 181 184 185 if (t->FindBranch("MPhotonEvent.")) 186 return 3; 187 182 188 return -2; 183 189 } … … 197 203 case 1: gLog << all << "Calibrated Data File detected..." << endl; break; 198 204 case 2: gLog << all << "Raw Data File detected..." << endl; break; 205 case 3: gLog << all << "Ceres reflector file detected..." << endl; break; 199 206 case -2: gLog << err << "File type unknown... abort." << endl; return; 200 207 case -1: gLog << err << "Tree " << tname << " not found... abort." << endl; return; … … 237 244 tlist->AddToList(read); 238 245 246 MGeomApply *apl = new MGeomApply; 247 tlist->AddToList(apl); 248 249 if (type==3) 250 { 251 MHPhotonEvent *phevt = new MHPhotonEvent; 252 phevt->PermanentReset(); 253 plist->AddToList(phevt); 254 255 MFillH *fillh = new MFillH(phevt, "MPhotonEvent"); 256 fillh->SetNameTab("Detector"); 257 tlist->AddToList(fillh); 258 259 MSimGeomCam *simgeom = new MSimGeomCam; 260 tlist->AddToList(simgeom); 261 262 MSimSignalCam *sim = new MSimSignalCam; 263 tlist->AddToList(sim); 264 } 265 239 266 MContinue *mcevts = new MContinue("MRawEvtData.GetNumPixels==0", "ContEmpty"); 240 267 if (type==2) … … 247 274 contevt->SetInverted(); 248 275 tlist->AddToList(contevt); 249 250 MGeomApply *apl = new MGeomApply;251 tlist->AddToList(apl);252 276 253 277 MTriggerPatternDecode *decode = new MTriggerPatternDecode; … … 297 321 plist->AddToList(evt10); 298 322 299 MExtractTimeAndChargeDigitalFilter *digf = new MExtractTimeAndChargeDigitalFilter;300 digf->SetNameWeightsFile("msignal/cosmics_weights46.dat");301 302 MTaskEnv *taskenv1=new MTaskEnv("ExtractSignal");303 taskenv1->SetDefault(digf);304 taskenv1->SetOwner();305 306 MSignalCalc *nanal = new MSignalCalc;307 323 MFillH *fill01 = new MFillH(evt01, "MSignalCam", "MFillH01"); 308 324 MImgCleanStd *clean = new MImgCleanStd; … … 317 333 MFillH *fill10 = new MFillH(evt10, "MSignalCam", "MFillH10"); 318 334 335 MExtractTimeAndChargeDigitalFilter *digf = new MExtractTimeAndChargeDigitalFilter; 336 digf->SetNameWeightsFile("msignal/cosmics_weights46.dat"); 337 338 MTaskEnv *taskenv1=new MTaskEnv("ExtractSignal"); 339 taskenv1->SetDefault(digf); 340 taskenv1->SetOwner(); 341 342 MSignalCalc *nanal = new MSignalCalc; 343 319 344 MBadPixelsCalc *bcalc = new MBadPixelsCalc; 320 345 MBadPixelsTreat *btreat = new MBadPixelsTreat; … … 379 404 if (type==2) 380 405 tlist->AddToList(fill03); 381 tlist->AddToList(fill04); 406 if (type!=3) 407 tlist->AddToList(fill04); 382 408 tlist->AddToList(fill06a); 383 409 tlist->AddToList(fill06b); … … 393 419 //tlist->AddToList(fill09); 394 420 } 395 if (type==1 )421 if (type==1 || type==3) 396 422 { 397 423 MFillH *fill08 = new MFillH(evt08, "MSignalCam", "MFillH8"); … … 662 688 *fLog << all; 663 689 fLog->Separator(MString::Format("Entry %d", reader->GetNumEntry()+1)); 690 664 691 ((MHillas*) plist->FindObject("MHillas"))->Print(*geom); 665 692 ((MHillasExt*) plist->FindObject("MHillasExt"))->Print(*geom); … … 716 743 }; 717 744 745 const Int_t ismc = plist->FindObject("MHPhotonEvent") ? 1 : 0; 718 746 719 747 for (int i=1; i<7; i++) 720 748 { 721 TCanvas *c = GetCanvas(i); 749 TCanvas *c = GetCanvas(i+ismc); 750 if (!c) 751 continue; 752 722 753 c->cd(1); 723 754 -
trunk/MagicSoft/Mars/mmain/Makefile
r9328 r9347 24 24 -I../mdata -I../msignal -I../mcalib -I../mbadpixels \ 25 25 -I../mpointing -I../mpedestal -I../mmuon -I../mfilter -I../mjobs \ 26 -I../mtrigger 26 -I../mtrigger -I../mcorsika -I../msimcamera -I../msim 27 27 28 28 SRCFILES = MBrowser.cc \
Note:
See TracChangeset
for help on using the changeset viewer.