Changeset 2207
- Timestamp:
- 06/23/03 11:19:04 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2194 r2207 340 340 void MStatusDisplay::SetLogStream(MLog *log, Bool_t enable) 341 341 { 342 if (gROOT->IsBatch()) 343 return; 344 342 345 if (log && fLogBox==NULL) 343 346 { … … 455 458 void MStatusDisplay::SetStatusLine1(const char *txt) 456 459 { 460 if (gROOT->IsBatch()) 461 return; 457 462 fStatusBar->SetText(txt, 0); 458 463 gClient->ProcessEventsFor(fStatusBar); … … 465 470 void MStatusDisplay::SetStatusLine2(const char *txt) 466 471 { 472 if (gROOT->IsBatch()) 473 return; 467 474 fStatusBar->SetText(txt, 1); 468 475 gClient->ProcessEventsFor(fStatusBar); … … 491 498 // 492 499 MStatusDisplay::MStatusDisplay(Long_t t) 493 : TGMainFrame(gClient ->GetRoot(), 1, 1), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLog(&gLog), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0)500 : TGMainFrame(gClient ? gClient->GetRoot() : NULL, 1, 1), fTimer(this, t, kTRUE), fStatus(kLoopNone), fLog(&gLog), fLogIdx(-1), fLogTimer(this, 250, kTRUE), fLogBox(NULL), fIsLocked(0) 494 501 { 495 502 gROOT->GetListOfSpecials()->Add(this); 496 gROOT->GetListOfCleanups()->Add(this);497 503 498 504 fFont = gVirtualX->LoadQueryFont("7x13bold"); 505 506 fBatch.SetOwner(); 499 507 500 508 // … … 521 529 // Add Widgets (from top to bottom) 522 530 // 523 AddMenuBar(); 524 AddTabs(); 525 AddProgressBar(); 526 AddStatusBar(); 531 if (gClient) // BATCH MODE 532 { 533 AddMenuBar(); 534 AddTabs(); 535 AddProgressBar(); 536 AddStatusBar(); 537 } 527 538 528 539 // … … 547 558 MStatusDisplay::~MStatusDisplay() 548 559 { 560 gROOT->GetListOfSpecials()->Remove(this); 561 549 562 SetLogStream(NULL); 550 563 … … 553 566 if (fFont) 554 567 gVirtualX->DeleteFont(fFont); 555 556 gROOT->GetListOfSpecials()->Remove(this); 557 gROOT->GetListOfCleanups()->Remove(this); 558 } 568 } 559 569 560 570 // -------------------------------------------------------------------------- … … 594 604 TCanvas *MStatusDisplay::GetCanvas(int i) const 595 605 { 606 if (gROOT->IsBatch()) 607 return (TCanvas*)fBatch.At(i-1); 608 596 609 if (i<0 || i>=fTab->GetNumberOfTabs()) 597 610 { … … 656 669 TCanvas &MStatusDisplay::AddTab(const char *name) 657 670 { 671 if (gROOT->IsBatch()) 672 { 673 TCanvas *c = new TCanvas(name, name); 674 fBatch.Add(c); 675 return *c; 676 } 677 658 678 // Add new tab 659 679 TGCompositeFrame *f = fTab->AddTab(name); 660 680 661 // create root emb edded canvas and add it to the tab681 // create root emb 0edded canvas and add it to the tab 662 682 TRootEmbeddedCanvas *ec = new TRootEmbeddedCanvas(name, f, f->GetWidth(), f->GetHeight(), 0); 663 683 f->AddFrame(ec, fLayCanvas); … … 676 696 // layout and map new tab 677 697 //#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00) 698 // MapSubwindows(); 699 // Layout(); 700 //#else 701 Layout(); 678 702 MapSubwindows(); 679 703 Layout(); 680 //#else681 // Layout();682 // MapSubwindows();683 704 //#endif 684 705 … … 707 728 return; 708 729 709 c->Modified(); 710 c->Update(); 711 c->Paint(); 730 // Code taken from TCanvas::Update() and TCanvas::Paint 731 c->FeedbackMode(kFALSE); // Goto double buffer mode 732 c->Paint(); // Repaint all pad's 733 c->Flush(); // Copy all pad pixmaps to the screen 734 //c->SetCursor(kCross); 735 736 // Old version 737 //c->Modified(); 738 //c->Update(); 739 //c->Paint(); 712 740 } 713 741 … … 803 831 Bool_t MStatusDisplay::HasCanvas(const TCanvas *c) const 804 832 { 833 if (gROOT->IsBatch()) 834 return fBatch.FindObject(c); 835 805 836 for (int i=1; i<fTab->GetNumberOfTabs(); i++) 806 837 if (c==GetCanvas(i)) … … 829 860 case kLoopStop: 830 861 case kFileExit: 831 if (id==kFileExit && !fIsLocked)862 if (id==kFileExit) 832 863 delete this; 833 864 fStatus = (Status_t)id; … … 1154 1185 void MStatusDisplay::SetNoContextMenu(Bool_t flag) 1155 1186 { 1156 if (fIsLocked>1 )1187 if (fIsLocked>1 || gROOT->IsBatch()) 1157 1188 return; 1158 1189 … … 1173 1204 Bool_t MStatusDisplay::HandleTimer(TTimer *timer) 1174 1205 { 1206 if (gROOT->IsBatch()) 1207 return kTRUE; 1208 1175 1209 const Int_t c = fTab->GetCurrent(); 1176 1210 … … 1302 1336 } 1303 1337 1304 if ( num>=fTab->GetNumberOfTabs())1338 if (!gROOT->IsBatch() && num>=fTab->GetNumberOfTabs()) 1305 1339 { 1306 1340 *fLog << warn << "MStatusDisplay::Write: Tab doesn't exist... skipped." << endl; 1307 1341 return 0; 1308 1342 } 1343 if (gROOT->IsBatch() && num>fBatch.GetSize()) 1344 { 1345 *fLog << warn << "MStatusDisplay::Write: Tab doesn't exist... skipped." << endl; 1346 return 0; 1347 } 1309 1348 1310 1349 TObjArray list; 1311 1350 1312 const Int_t from = num<0 ? 1 : num; 1313 const Int_t to = num<0 ? fTab->GetNumberOfTabs() : num+1; 1351 const Int_t max = gROOT->IsBatch() ? fBatch.GetSize()+1 : fTab->GetNumberOfTabs(); 1352 const Int_t from = num<0 ? 1 : num; 1353 const Int_t to = num<0 ? max : num+1; 1314 1354 1315 1355 TCanvas *c; … … 1406 1446 Bool_t MStatusDisplay::CheckTabForCanvas(int num) const 1407 1447 { 1448 if (gROOT->IsBatch()) 1449 return num>0 && num<=fBatch.GetSize() || num<0; 1450 1408 1451 if (num>=fTab->GetNumberOfTabs()) 1409 1452 { … … 1530 1573 // Maintain tab numbers 1531 1574 // 1532 const Int_t from = num<0 ? 1 : num; 1533 const Int_t to = num<0 ? fTab->GetNumberOfTabs() : num+1; 1575 const Int_t max = gROOT->IsBatch() ? fBatch.GetSize()+1 : fTab->GetNumberOfTabs(); 1576 const Int_t from = num<0 ? 1 : num; 1577 const Int_t to = num<0 ? max : num+1; 1534 1578 1535 1579 for (int i=from; i<to; i++) … … 1572 1616 CanvasSetFillColor(*n, kWhite); 1573 1617 l.Add(n); 1574 1575 1618 // 1576 1619 // Paint canvas into root file … … 1578 1621 if (num<0) 1579 1622 *fLog << inf << " - "; 1580 *fLog << inf << "Writing Tab #" << i << ": " << c->GetName() << " (" << n<< ") ";1623 *fLog << inf << "Writing Tab #" << i << ": " << c->GetName() << " (" << c << ") "; 1581 1624 if (num>0) 1582 1625 *fLog << "to " << name; … … 1614 1657 1615 1658 gPad = NULL; // Important! 1616 1617 1659 l.Delete(); 1618 1660 … … 1621 1663 1622 1664 gVirtualPS = psave; 1623 padsav->cd(); 1665 if (padsav) 1666 padsav->cd(); 1624 1667 1625 1668 *fLog << inf << "done." << endl; … … 1632 1675 Bool_t MStatusDisplay::SaveAsGIF(Int_t num, TString name) 1633 1676 { 1677 if (gROOT->IsBatch()) 1678 { 1679 *fLog << warn << "Sorry, writing gif-files is not available in batch mode." << endl; 1680 return 0; 1681 } 1634 1682 SetStatusLine1("Writing GIF file..."); 1635 1683 SetStatusLine2(""); -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.h
r2178 r2207 74 74 75 75 UInt_t fIsLocked; 76 77 TList fBatch; 76 78 77 79 void AddMenuBar(); -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r2173 r2207 65 65 } 66 66 67 Bool_t MMcCollectionAreaCalc::PreProcess (MParList *pList)67 Int_t MMcCollectionAreaCalc::PreProcess (MParList *pList) 68 68 { 69 69 // connect the raw data with this task … … 151 151 } 152 152 153 Bool_t MMcCollectionAreaCalc::Process()153 Int_t MMcCollectionAreaCalc::Process() 154 154 { 155 155 const Double_t energy = fMcEvt->GetEnergy(); … … 178 178 } 179 179 180 Bool_t MMcCollectionAreaCalc::PostProcess()180 Int_t MMcCollectionAreaCalc::PostProcess() 181 181 { 182 182 // -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h
r2036 r2207 30 30 Bool_t fAllEvtsTriggered; 31 31 32 Bool_t ReInit(MParList *plist); 33 34 Int_t PreProcess(MParList *pList); 35 Int_t Process(); 36 Int_t PostProcess(); 37 32 38 public: 33 39 MMcCollectionAreaCalc(const char *input=NULL, 34 40 const char *name=NULL, const char *title=NULL); 35 36 Bool_t ReInit(MParList *plist);37 38 Bool_t PreProcess(MParList *pList);39 Bool_t Process();40 Bool_t PostProcess();41 41 42 42 ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
r2173 r2207 100 100 // connect Monte Carlo data with this task 101 101 // 102 Bool_t MMcThresholdCalc::PreProcess(MParList* pList)102 Int_t MMcThresholdCalc::PreProcess(MParList* pList) 103 103 { 104 104 // … … 142 142 // distribution to get the energy threshold. 143 143 // 144 Bool_t MMcThresholdCalc::Process()144 Int_t MMcThresholdCalc::Process() 145 145 { 146 146 const Float_t energy = fMcEvt->GetEnergy(); … … 160 160 // Some iterations are done to be sure the fit parameters converge. 161 161 // 162 Bool_t MMcThresholdCalc::PostProcess()162 Int_t MMcThresholdCalc::PostProcess() 163 163 { 164 164 for (UInt_t i=0; i<fNum; i++) -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h
r1016 r2207 14 14 #endif 15 15 #ifndef ROOT_TObjArray 16 #include "TObjArray.h"16 #include <TObjArray.h> 17 17 #endif 18 18 … … 39 39 MHMcEnergy *GetHEnergy(UInt_t i) { return (MHMcEnergy*)(*fEnergy)[i]; } 40 40 41 Int_t PreProcess(MParList* pList); 42 Int_t Process(); 43 Int_t PostProcess(); 44 41 45 public: 42 43 46 MMcThresholdCalc(const Int_t dim = 0, 44 47 const char* name = NULL, const char* title = NULL); 45 48 ~MMcThresholdCalc(); 46 47 Bool_t PreProcess(MParList* pList);48 Bool_t Process();49 Bool_t PostProcess();50 49 51 50 ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold -
trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.cc
r2173 r2207 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! … … 63 63 // options, either Montecarlo files with a single trigger option. 64 64 // 65 Bool_t MMcTimeGenerate::PreProcess (MParList *pList)65 Int_t MMcTimeGenerate::PreProcess (MParList *pList) 66 66 { 67 67 // connect the raw data with this task … … 77 77 // 78 78 // 79 Bool_t MMcTimeGenerate::Process()79 Int_t MMcTimeGenerate::Process() 80 80 { 81 81 Double_t dt; -
trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.h
r1211 r2207 20 20 Double_t fDeadTime; 21 21 22 Int_t PreProcess(MParList *pList); 23 Int_t Process(); 24 22 25 public: 23 26 MMcTimeGenerate(const char *name=NULL, const char *title=NULL); … … 25 28 ~MMcTimeGenerate(); 26 29 27 Bool_t PreProcess(MParList *pList);28 Bool_t Process();29 30 30 ClassDef(MMcTimeGenerate, 0) // To generate a random time 31 31 }; -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r2173 r2207 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! Author(s): Harald Kornmayer 1/2001 20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2003 22 22 ! 23 ! Modified 4/7/2002 Abelardo Moralejo: now the dimension of fTrigger is24 ! set dinamically, to allow an arbitrary large number of trigger25 ! conditions to be processed.26 !27 23 ! 28 24 \* ======================================================================== */ 25 26 ///////////////////////////////////////////////////////////////////////////// 27 // 28 // Modified 4/7/2002 Abelardo Moralejo: now the dimension of fTrigger is 29 // set dinamically, to allow an arbitrary large number of trigger 30 // conditions to be processed. 31 // 32 ///////////////////////////////////////////////////////////////////////////// 29 33 #include "MMcTriggerRateCalc.h" 30 34 … … 32 36 33 37 #include <TCanvas.h> 38 #include <TGraphErrors.h> 34 39 35 40 #include "MLog.h" … … 215 220 // options, either Montecarlo files with a single trigger option. 216 221 // 217 Bool_t MMcTriggerRateCalc::PreProcess (MParList *pList)222 Int_t MMcTriggerRateCalc::PreProcess (MParList *pList) 218 223 { 219 224 // connect the raw data with this task … … 266 271 // MHMcRate container. 267 272 // 268 Bool_t MMcTriggerRateCalc::Process()273 Int_t MMcTriggerRateCalc::Process() 269 274 { 270 275 // … … 318 323 // The PostProcess-function calculates and shows the trigger rate 319 324 // 320 Bool_t MMcTriggerRateCalc::PostProcess()325 Int_t MMcTriggerRateCalc::PostProcess() 321 326 { 322 327 for (UInt_t i=0; i<fNum; i++) … … 374 379 sure, that the histograms are not overwritten. 375 380 Also the comment for the function doesn't match the rules. 376 381 BTW: please replace all arrays by Root lists (TArray*, TList, etc) 377 382 TCanvas *c = MH::MakeDefCanvas("Rate"); 378 383 -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h
r2173 r2207 9 9 #endif 10 10 11 #include <TGraphErrors.h>12 13 11 class MParList; 14 12 class MMcEvt; … … 17 15 class MMcTrig; 18 16 class MHMcRate; 17 class TH1F; 19 18 20 19 class MMcTriggerRateCalc : public MTask 21 20 { 22 21 private: 23 MMcEvt *fMcEvt; 22 MMcEvt *fMcEvt; //! 24 23 25 24 TObjArray *fMcRate; … … 29 28 MMcCorsikaRunHeader *fMcCorRunHeader; 30 29 31 UInt_t fNum; 30 UInt_t fNum; // decoded dimension 32 31 UInt_t fFirst; 33 32 UInt_t fLast; 34 33 35 Float_t *fTrigNSB; // Number of triggers due to NSB alone34 Float_t *fTrigNSB; // Number of triggers due to NSB alone 36 35 Float_t fSimNSB; // Number of simulated NSB-only events 37 36 38 Float_t * fTrigger;// Number of triggered showers39 Float_t fShowers; 40 Float_t fAnalShow; 37 Float_t *fTrigger; // Number of triggered showers 38 Float_t fShowers; // Number of simulated showers 39 Float_t fAnalShow; // Number of analysed showers 41 40 42 Int_t fPartId; // Incident particle that generates showers 41 Int_t fPartId; // Incident particle that generates showers 42 43 TH1F *fHist[5]; 43 44 44 45 void Init(int dim, float *trigbg, … … 48 49 MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); } 49 50 50 TH1F* fHist[5]; 51 Bool_t ReInit(MParList *plist); 52 53 Int_t PreProcess(MParList *pList); 54 Int_t Process(); 55 Int_t PostProcess(); 51 56 52 57 public: … … 59 64 ~MMcTriggerRateCalc(); 60 65 61 Bool_t ReInit(MParList *plist);62 63 Bool_t PreProcess(MParList *pList);64 Bool_t Process();65 Bool_t PostProcess();66 67 66 TH1F* GetHist(Int_t i) {return fHist[i];} 68 67 -
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc
r2173 r2207 91 91 // number of columns (with the same meaning). 92 92 // 93 Bool_t MRanForestCalc::PreProcess(MParList *plist)93 Int_t MRanForestCalc::PreProcess(MParList *plist) 94 94 { 95 95 fRanForest = (MRanForest*)plist->FindObject("MRanForest"); … … 137 137 // 138 138 // 139 Bool_t MRanForestCalc::Process()139 Int_t MRanForestCalc::Process() 140 140 { 141 141 // first copy the data from the data array to a vector event -
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.h
r2071 r2207 24 24 MRanTree *fRanTree; 25 25 26 Int_t PreProcess(MParList *plist); 27 Int_t Process(); 28 26 29 public: 27 30 MRanForestCalc(const char *name=NULL, const char *title=NULL); … … 33 36 void SetUseNumTrees(UShort_t n=100) { fNum = n; } 34 37 35 Bool_t PreProcess(MParList *plist);36 Bool_t Process();37 38 38 ClassDef(MRanForestCalc, 0) // Task 39 39 }; -
trunk/MagicSoft/Mars/mranforest/MRanForestFill.cc
r2173 r2207 72 72 73 73 // -------------------------------------------------------------------------- 74 Bool_t MRanForestFill::PreProcess(MParList *plist)74 Int_t MRanForestFill::PreProcess(MParList *plist) 75 75 { 76 76 fRanTree = (MRanTree*)plist->FindObject("MRanTree"); … … 96 96 // 97 97 // 98 Bool_t MRanForestFill::Process()98 Int_t MRanForestFill::Process() 99 99 { 100 100 fNum++; … … 105 105 } 106 106 107 Bool_t MRanForestFill::PostProcess()107 Int_t MRanForestFill::PostProcess() 108 108 { 109 109 fRanForest->SetNumTrees(fNum); -
trunk/MagicSoft/Mars/mranforest/MRanForestFill.h
r2173 r2207 20 20 Int_t fNum; 21 21 22 Int_t PreProcess(MParList *plist); 23 Int_t Process(); 24 Int_t PostProcess(); 25 22 26 public: 23 27 MRanForestFill(const char *name=NULL, const char *title=NULL); … … 26 30 void SetNumTrees(UShort_t n=100) { fNumTrees = n; } 27 31 28 Bool_t PreProcess(MParList *plist);29 Bool_t Process();30 Bool_t PostProcess();31 32 32 ClassDef(MRanForestFill, 0) // Task 33 33 }; -
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.cc
r2173 r2207 75 75 // number of columns (with the same meaning). 76 76 // 77 Bool_t MRanForestGrow::PreProcess(MParList *plist)77 Int_t MRanForestGrow::PreProcess(MParList *plist) 78 78 { 79 79 fMGammas = (MHMatrix*)plist->FindObject("MatrixGammas", "MHMatrix"); … … 122 122 // 123 123 // 124 Bool_t MRanForestGrow::Process()124 Int_t MRanForestGrow::Process() 125 125 { 126 126 Bool_t not_last=fRanForest->GrowForest(); … … 130 130 } 131 131 132 Bool_t MRanForestGrow::PostProcess()132 Int_t MRanForestGrow::PostProcess() 133 133 { 134 134 fRanTree->SetReadyToSave(); -
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
r2071 r2207 31 31 Int_t fNdSize; 32 32 33 Int_t PreProcess(MParList *pList); 34 Int_t Process(); 35 Int_t PostProcess(); 36 33 37 public: 34 38 MRanForestGrow(const char *name=NULL, const char *title=NULL); … … 38 42 void SetNdSize(Int_t n) { fNdSize=n; } 39 43 40 Bool_t PreProcess(MParList *pList);41 Bool_t Process();42 Bool_t PostProcess();43 44 44 ClassDef(MRanForestGrow, 0) // Task to grow a random forest 45 45 }; -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2200 r2207 64 64 #include "MArrayS.h" 65 65 #include "MArrayB.h" 66 #include "MGeomCam.h" 66 67 #include "MRawRunHeader.h" 67 68 #include "MRawEvtPixelIter.h" … … 472 473 } 473 474 474 Bool_t MRawEvtData::GetPixelContent( Float_t &val, Int_t idx, Float_t ratio, Int_t type) const475 Bool_t MRawEvtData::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const 475 476 { 476 477 MRawEvtPixelIter Next(const_cast<MRawEvtData*>(this)); … … 478 479 return kFALSE; 479 480 480 val = Next.GetSumHiGainSamples(); 481 val = Next.GetSumHiGainSamples()-(float)GetNumHiGainSamples()*fHiGainFadcSamples->GetArray()[0]; 482 val *= cam.GetPixRatio(idx); 483 481 484 return kTRUE; 482 485 } -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r2200 r2207 64 64 void ReadEvt(istream &fin); 65 65 66 Bool_t GetPixelContent( Float_t &val, Int_t idx, Float_t ratio=1, Int_t type=0) const;66 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; 67 67 void DrawPixelContent(Int_t num) const 68 68 { -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2178 r2207 203 203 } 204 204 205 Byte_t MRawEvtPixelIter::GetNumMaxHiGainSample() const 206 { 207 Byte_t max = 0; 208 Byte_t maxi = 0; 209 210 for (int i=0; i<fNumHiGainSamples; i++) 211 if (fHiGainPos[i]>max) 212 { 213 max = fHiGainPos[i]; 214 maxi = i; 215 } 216 217 return maxi; 218 } 219 205 220 // -------------------------------------------------------------------------- 206 221 // -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r2178 r2207 81 81 Float_t GetVarHiGainSamples() const; 82 82 83 Byte_t GetNumMaxHiGainSample() const; 84 83 85 Bool_t HasLoGain() const 84 86 { -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r2173 r2207 128 128 // Now the EvtHeader and EvtData containers are initialized. 129 129 // 130 Bool_t MRawFileRead::PreProcess(MParList *pList)130 Int_t MRawFileRead::PreProcess(MParList *pList) 131 131 { 132 132 // … … 192 192 // - the raw data information of one event is read 193 193 // 194 Bool_t MRawFileRead::Process()194 Int_t MRawFileRead::Process() 195 195 { 196 196 // … … 236 236 // if it doesn't match. 237 237 // 238 Bool_t MRawFileRead::PostProcess()238 Int_t MRawFileRead::PostProcess() 239 239 { 240 240 // -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r2173 r2207 29 29 ifstream *fIn; //! buffered input stream (file to read from) 30 30 31 Int_t PreProcess(MParList *pList); 32 Int_t Process(); 33 Int_t PostProcess(); 34 35 31 36 public: 32 37 MRawFileRead(const char *filename, const char *name=NULL, const char *title=NULL); 33 38 ~MRawFileRead(); 34 35 Bool_t PreProcess(MParList *pList);36 Bool_t Process();37 Bool_t PostProcess();38 39 39 40 ClassDef(MRawFileRead, 0) // Task to read the raw data binary file -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r2173 r2207 109 109 // are created. 110 110 // 111 Bool_t MRawFileWrite::PreProcess (MParList *pList)111 Int_t MRawFileWrite::PreProcess (MParList *pList) 112 112 { 113 113 // … … 231 231 // event should be filled in and fills it into this tree. 232 232 // 233 Bool_t MRawFileWrite::Process()233 Int_t MRawFileWrite::Process() 234 234 { 235 235 // -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r2199 r2207 41 41 ~MRawFileWrite(); 42 42 43 Bool_t PreProcess(MParList *pList);44 Bool_t Process();43 Int_t PreProcess(MParList *pList); 44 Int_t Process(); 45 45 46 46 ClassDef(MRawFileWrite, 0) // Task to write the raw data containers to a root file -
trunk/MagicSoft/Mars/mraw/Makefile
r2178 r2207 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../ MBase -I../mgui24 INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../MBase 25 25 26 26 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.