Changeset 2497 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 11/10/03 14:08:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r2173 r2497 61 61 // 62 62 TGCompositeFrame *frame = CreateNewTab("Setup"); 63 63 /* 64 64 TGGroupFrame *grp = new TGGroupFrame(frame, "Setup Display"); 65 65 fList->Add(grp); … … 87 87 grp->AddFrame(fCheckButton1, laybut); 88 88 grp->AddFrame(fCheckButton2, laybut); 89 89 */ 90 90 TGLayoutHints *laygrp = new TGLayoutHints(kLHintsNormal|kLHintsExpandX, 20, 20, 20); 91 91 fList->Add(laygrp); 92 92 /* 93 93 frame->AddFrame(grp, laygrp); 94 */ 94 95 95 96 /* … … 120 121 // ====================================================================== 121 122 123 #include "MStatusDisplay.h" 122 124 #include "MParList.h" 123 125 #include "MTaskList.h" … … 138 140 #include "MEvtLoop.h" 139 141 #include "MHillas.h" 142 #include "MGeomApply.h" 140 143 141 144 void MAnalysis::CalculateHillas() … … 145 148 // parameter out of a Magic root file. 146 149 147 const Bool_t displhillas = fCheckButton1->GetState();148 const Bool_t displstarmap = fCheckButton2->GetState();150 const Bool_t displhillas = kTRUE;//fCheckButton1->GetState(); 151 const Bool_t displstarmap = kTRUE;//fCheckButton2->GetState(); 149 152 150 153 // … … 193 196 // 194 197 MReadMarsFile read("Events", fInputFile); 195 198 read.DisableAutoScheme(); 199 200 MGeomApply apply; 196 201 MMcPedestalCopy pcopy; 197 202 MMcPedestalNSBAdd pdnsb; … … 216 221 217 222 tlist.AddToList(&read); 223 tlist.AddToList(&apply); 218 224 tlist.AddToList(&pcopy); 219 225 tlist.AddToList(&pdnsb); … … 245 251 // Add ProgressBar to window 246 252 // 247 TGProgressBar *bar = CreateProgressBar(fTop2); 248 evtloop.SetProgressBar(bar); 253 TGProgressBar *bar = NULL; 254 if (displhillas || displstarmap) 255 { 256 MStatusDisplay *d=new MStatusDisplay; 257 evtloop.SetDisplay(d); 258 } 259 else 260 { 261 bar = CreateProgressBar(fTop2); 262 evtloop.SetProgressBar(bar); 263 } 264 249 265 250 266 // 251 267 // Execute your analysis 252 268 // 253 Bool_t rc =evtloop.Eventloop();269 /*Bool_t rc =*/ evtloop.Eventloop(); 254 270 255 271 // 256 272 // Remove progressbar from window 257 273 // 258 DestroyProgressBar(bar); 259 274 if (bar) 275 DestroyProgressBar(bar); 276 277 /* 260 278 if (!rc) 261 279 return; … … 270 288 plist.FindObject("MHHillasSrc")->DrawClone(); 271 289 plist.FindObject("MHNewImagePar")->DrawClone(); 272 /*273 plist.FindObject("HistSource")->DrawClone();274 plist.FindObject("HistAntiSrc")->DrawClone();275 */276 290 } 277 291 … … 281 295 cout << endl; 282 296 cout << "Calculation of Hillas Parameters finished without error!" << endl; 297 */ 283 298 } 284 299 -
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r2173 r2497 197 197 #include "MMcCollectionAreaCalc.h" 198 198 199 #if ROOT_VERSION_CODE < ROOT_VERSION(3,05,05) 199 200 #include "../mmc/MMcTrig.hxx" // FIXME: see FIXME below 201 #endif 200 202 201 203 Int_t MMonteCarlo::GetDim() const … … 228 230 plist.AddToList(&tlist); 229 231 232 #if ROOT_VERSION_CODE < ROOT_VERSION(3,05,05) 230 233 // 231 234 // FIXME: This line is needed that root finds the MMc-classes in the … … 235 238 // 236 239 MMcTrig trig; 240 #endif 237 241 238 242 // … … 326 330 plist.AddToList(&hists); 327 331 332 #if ROOT_VERSION_CODE < ROOT_VERSION(3,05,05) 328 333 // 329 334 // FIXME: This line is needed that root finds the MMc-classes in the … … 333 338 // 334 339 MMcTrig trig; 340 #endif 335 341 336 342 // … … 412 418 plist.AddToList(&hists); 413 419 420 #if ROOT_VERSION_CODE < ROOT_VERSION(3,05,05) 414 421 // 415 422 // FIXME: This line is needed that root finds the MMc-classes in the … … 419 426 // 420 427 MMcTrig trig; 428 #endif 421 429 422 430 //
Note:
See TracChangeset
for help on using the changeset viewer.