Changeset 1471 for trunk/MagicSoft/Mars
- Timestamp:
- 08/01/02 12:31:56 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1466 r1471 2 2 3 3 2002/08/01: Thomas Bretz 4 5 * manalysis/MHillasSrcCalc.[h,cc], manalysis/MImgCleanStd.[h,cc], 6 manalysis/MSrcPosCam.[h,cc], mbase/MEvtLoop.[h,cc], 7 mbase/MParContainer.[h,cc], mbase/MParList.[h,cc], 8 mbase/MTaskList.[h,cc], mfileio/MReadTree.[h,cc], 9 mfileio/MWriteRootFile.[h,cc], mhist/MFillH.[h,cc]: 10 - added SavePrimitive 4 11 5 12 * manalysis/MHillas.[h,cc]: -
trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.cc
r1434 r1471 32 32 ////////////////////////////////////////////////////////////////////////////// 33 33 #include "MHillasSrcCalc.h" 34 35 #include <fstream.h> 34 36 35 37 #include "MParList.h" … … 94 96 } 95 97 98 99 void MHillasSrcCalc::SavePrimitive(ofstream &out, Option_t *o="") 100 { 101 out << " MHillasSrcCalc " << ToLower(fName) << "(\""; 102 out << fSrcName << "\", \"" << fHillasName << "\", \""; 103 out << fName << "\", \"" << fTitle << "\");" << endl; 104 } -
trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.h
r1203 r1471 27 27 Bool_t Process(); 28 28 29 void SavePrimitive(ofstream &out, Option_t *o=""); 30 29 31 ClassDef(MHillasSrcCalc, 0) // task to calculate the source position depandant hillas parameters 30 32 }; -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
r1461 r1471 44 44 45 45 #include <stdlib.h> // atof 46 #include <fstream.h> // ofstream, SavePrimitive 46 47 47 48 #include <TGFrame.h> // TGFrame … … 406 407 return kTRUE; 407 408 } 409 410 void MImgCleanStd::SavePrimitive(ofstream &out, Option_t *o="") 411 { 412 out << " MImgCleanStd " << ToLower(fName) << "("; 413 out << fCleanLvl1 << ", " << fCleanLvl2 << ", \""; 414 out << fName << "\", \"" << fTitle << "\");" << endl; 415 } -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.h
r1457 r1471 34 34 35 35 void Print(Option_t *o="") const; 36 void SavePrimitive(ofstream &out, Option_t *o=""); 36 37 37 38 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2); -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc
r1460 r1471 81 81 } 82 82 */ 83 84 void MSrcPosCam::SavePrimitive(ofstream &out, Option_t *o="") 85 { 86 out << " MSrcPosCam " << ToLower(fName) << "(\""; 87 out << fName << "\", " << fTitle << "\");" << endl; 88 89 out << " " << ToLower(fName) << ".SetXY(" << fX << ", " << fY << ");" << endl;} -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h
r1460 r1471 29 29 //void AsciiWrite(ofstream &fout) const; 30 30 31 void SavePrimitive(ofstream &out, Option_t *o=""); 32 31 33 ClassDef(MSrcPosCam, 1) // container to store source position in the camera plain 32 34 }; -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1191 r1471 54 54 #include "MEvtLoop.h" 55 55 56 #include <fstream.h> // ofstream, SavePrimitive 56 57 #include <iostream.h> 57 58 … … 274 275 } 275 276 277 void MEvtLoop::SavePrimitive(ofstream &out, Option_t *) 278 { 279 fParList->SavePrimitive(out); 280 281 out << " MEvtLoop evtloop;" << endl; 282 out << " evtloop.SetParList(&" << ToLower(fParList->GetName()) << ")" << endl; 283 out << " if (!evtloop.Eventloop())" << endl; 284 out << " return;" << endl; 285 } -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r1268 r1471 46 46 Bool_t Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList"); 47 47 48 void SavePrimitive(ofstream &out, Option_t *o=""); 49 48 50 ClassDef(MEvtLoop, 0) // Class to execute the tasks in a tasklist 49 51 }; -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1299 r1471 346 346 return call; 347 347 } 348 349 void MParContainer::SavePrimitive(ofstream &out, Option_t *o="") 350 { 351 out << " // SavePrimitive not overloaded... using default." << endl; 352 out << " " << ClassName() << " " << ToLower(fName) << "(\""; 353 out << fName << "\", \"" << fTitle << "\");" << endl; 354 } 355 -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r1348 r1471 61 61 virtual void Print(Option_t *option="") const; 62 62 virtual Int_t Sizeof() const; 63 virtual void SavePrimitive(ofstream &out, Option_t *o=""); 63 64 64 65 virtual void SetLogStream(MLog *lg) { fLog = lg; } -
trunk/MagicSoft/Mars/mbase/MParList.cc
r1337 r1471 41 41 #include "MParList.h" 42 42 43 #include <fstream.h> // ofstream, SavePrimitive 44 43 45 #include <TNamed.h> 44 46 #include <TClass.h> … … 657 659 return list; 658 660 } 661 662 void MParList::SavePrimitive(ofstream &out, Option_t *o="") 663 { 664 out << " MParList " << ToLower(fName) << ";" << endl << endl; 665 666 TIter Next(fContainer); 667 668 TObject *cont = NULL; 669 while ((cont=Next())) 670 { 671 cont->SavePrimitive(out, ""); 672 out << " " << ToLower(fName) << ".AddToList(&"; 673 out << ToLower(cont->GetName()) << ");" << endl << endl; 674 } 675 } -
trunk/MagicSoft/Mars/mbase/MParList.h
r1337 r1471 78 78 79 79 void Print(Option_t *t = NULL) const; 80 void SavePrimitive(ofstream &out, Option_t *o=""); 80 81 81 82 ClassDef(MParList, 0) // list of parameter containers (MParContainer) -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1337 r1471 57 57 #include "MTaskList.h" 58 58 59 #include <fstream.h> // ofstream, SavePrimitive 60 59 61 #include <TClass.h> 60 62 #include <TBaseClass.h> … … 512 514 } 513 515 516 517 void MTaskList::SavePrimitive(ofstream &out, Option_t *o="") 518 { 519 out << " MTaskList " << ToLower(fName) << ";" << endl << endl; 520 521 TIter Next(fTasks); 522 523 TObject *cont = NULL; 524 while ((cont=Next())) 525 { 526 cont->SavePrimitive(out, ""); 527 out << " " << ToLower(fName) << ".AddToList(&"; 528 out << ToLower(cont->GetName()) << ");" << endl << endl; 529 } 530 } -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r1283 r1471 56 56 void SetOwner(Bool_t enable=kTRUE); 57 57 58 void SavePrimitive(ofstream &out, Option_t *o=""); 59 58 60 const TList *GetList() const { return fTasks; } 59 61 -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r1465 r1471 801 801 *fLog << " Next Entry to read: " << fNumEntry << endl; 802 802 } 803 804 void MReadTree::SavePrimitive(ofstream &out, Option_t *o="") 805 { 806 TString name = ToLower(fName); 807 808 out << " " << ClassName() << " " << name << "("; 809 out << fChain->GetName() << ", \"" << fName << "\", \"" << fTitle << "\");" << endl; 810 811 TIter Next(fChain->GetListOfFiles()); 812 TObject *obj = NULL; 813 while ((obj=Next())) 814 out << " " << name << ".AddFile(\"" << obj->GetTitle() << "\");" << endl; 815 816 if (!fAutoEnable) 817 out << " " << name << ".DisableAutoScheme();" << endl; 818 819 if (fNumEntry!=0) 820 out << " " << name << ".SetEventNum(" << fNumEntry << ");" << endl; 821 822 823 } -
trunk/MagicSoft/Mars/mfileio/MReadTree.h
r1381 r1471 71 71 72 72 virtual Bool_t Notify(); 73 virtual void SavePrimitive(ofstream &out, Option_t *o=""); 73 74 74 75 ClassDef(MReadTree, 0) // Reads a tree from file(s) -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r1381 r1471 34 34 // // 35 35 ///////////////////////////////////////////////////////////////////////////// 36 37 36 #include "MWriteRootFile.h" 37 38 #include <fstream.h> 38 39 39 40 #include <TFile.h> … … 383 384 } 384 385 386 void MWriteRootFile::SavePrimitive(ofstream &out, Option_t *o="") 387 { 388 out << " MWriteRootFile " << ToLower(fName) << "(\""; 389 out << fOut->GetName() << "\", \""; 390 out << fOut->GetOption() << "\", \""; 391 out << fOut->GetTitle() << "\", "; 392 out << fOut->GetCompressionLevel() << ", \""; 393 out << fName << "\", " << fTitle << "\");" << endl;; 394 395 MRootFileBranch *entry; 396 TIter Next(&fBranches); 397 while ((entry=(MRootFileBranch*)Next())) 398 { 399 out << " " << ToLower(fName) << ".AddContainer(\""; 400 out << entry->GetContName() << "\", \""; 401 out << entry->GetName() << "\", \""; 402 out << entry->GetTitle() << "\")" << endl; 403 } 404 } -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r1381 r1471 85 85 86 86 void Print(Option_t *t=NULL) const; 87 void SavePrimitive(ofstream &out, Option_t *o=""); 87 88 88 89 ClassDef(MWriteRootFile, 0) // Class to write one container to a root file -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r1336 r1471 69 69 #include "MFillH.h" 70 70 71 #include <fstream.h> 72 71 73 #include "MLog.h" 72 74 #include "MLogManip.h" … … 331 333 return kTRUE; 332 334 } 335 336 void MFillH::SavePrimitive(ofstream &out, Option_t *o="") 337 { 338 out << " MFillH " << ToLower(fName) << "(\""; 339 out << fHName << "\", \"" << fParContainerName << "\")" << endl; 340 } -
trunk/MagicSoft/Mars/mhist/MFillH.h
r1209 r1471 33 33 Bool_t PostProcess(); 34 34 35 void SavePrimitive(ofstream &out, Option_t *o=""); 36 35 37 ClassDef(MFillH, 0) // Task to fill a histogram with data from a parameter container 36 38 };
Note:
See TracChangeset
for help on using the changeset viewer.