Changeset 4560 for trunk/MagicSoft
- Timestamp:
- 08/10/04 13:34:13 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.cc
r4545 r4560 450 450 // -------------------------------------------------------------------------- 451 451 // 452 // Setup an inversed deep blue sea palette.453 // 454 void MHTelAxisFromStars::SetColors() const 455 { 456 gStyle->SetPalette(51, NULL); 457 Int_t c[50]; 458 for (int i=0; i<50; i++) 459 c[49-i] = gStyle->GetColorPalette(i); 460 gStyle->SetPalette(50, c);452 // Finalize : 453 // 454 // it is called in the postprocessing 455 // reset pointers in order to allow cloning of the object 456 // 457 Bool_t MHTelAxisFromStars::Finalize() 458 { 459 460 return kTRUE; 461 461 } 462 462 … … 552 552 } 553 553 554 // -------------------------------------------------------------------------- 555 // 556 // Setup an inversed deep blue sea palette. 557 // 558 559 void MHTelAxisFromStars::SetColors() const 560 { 561 gStyle->SetPalette(51, NULL); 562 Int_t c[50]; 563 for (int i=0; i<50; i++) 564 c[49-i] = gStyle->GetColorPalette(i); 565 gStyle->SetPalette(50, c); 566 } 567 568 554 569 //--------------------------------------------------------------------- 555 570 // -
trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.h
r4545 r4560 28 28 TH2D *fEstPos2; //-> Estimated position 2 29 29 30 MStarLocalCam *fStarLocalCam; 31 MStarLocalCam *fSourceLocalCam; 32 MSrcPosCam *fSrcPos; 33 MSkyCamTrans *fSkyCamTrans; 30 MStarLocalCam *fStarLocalCam; //! 31 MStarLocalCam *fSourceLocalCam; //! 32 MSrcPosCam *fSrcPos; //! 33 MSkyCamTrans *fSkyCamTrans; //! 34 35 36 37 Float_t fMm2Deg; //! 38 Bool_t fUseMmScale; //! 39 Int_t fInputType; //! 34 40 35 41 void SetColors() const; 36 37 Float_t fMm2Deg;38 Bool_t fUseMmScale;39 Int_t fInputType;40 41 42 void Paint(Option_t *opt=""); 42 43 … … 51 52 Bool_t SetupFill(const MParList *pList); 52 53 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 54 Bool_t Finalize(); 53 55 54 56 TH1 *GetHistByName(const TString name); -
trunk/MagicSoft/Mars/mtemp/findTelAxisFromStars.C
r4545 r4560 218 218 219 219 //$$$$$$$$$$$$$$$$ ww 220 /*220 221 221 gLog << "Event loop finished; call DrawClone of MHTelAxisFromStars" << endl; 222 222 TObject *obj = plist.FindObject("MHTelAxisFromStars"); 223 223 if (obj) 224 224 { 225 obj->Print();226 obj->Dump();225 //obj->Print(); 226 //obj->Dump(); 227 227 obj->DrawClone(); 228 229 gLog << "Draw a clone of the histogram" << endl;230 TObject *o = obj->Clone();231 o->SetBit(kCanDelete);232 o->Draw();233 228 } 234 229 else 235 230 gLog << "address of MHTelAxisFromStars container is zero" << endl; 236 */231 237 232 //$$$$$$$$$$$$$$$$ ww 238 233
Note:
See TracChangeset
for help on using the changeset viewer.