Changeset 2216
- Timestamp:
- 06/23/03 14:33:49 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2209 r2216 122 122 * mhist/MHSigmaTheta.cc: 123 123 - added a preliminary workaround to support files without MMcEvt 124 125 * manalysis/AnalysisLinkDef.h, manalysis/Makefile: 126 - removed MCT1PadONOFF 127 128 * manalysis/MCerPhotEvt.h: 129 - added -> to fPixels 130 131 * meventdisp/Makefile: 132 - added -I../mhist 124 133 125 134 -
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r2167 r2216 40 40 41 41 #pragma link C++ class MCT1PadSchweizer+; 42 #pragma link C++ class MCT1PadONOFF+;42 //#pragma link C++ class MCT1PadONOFF+; 43 43 44 44 #pragma link C++ class MCT1PointingCorrCalc+; -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r2206 r2216 19 19 private: 20 20 UInt_t fNumPixels; 21 TClonesArray *fPixels; // FIXME: Change TClonesArray away from a pointer?21 TClonesArray *fPixels; //-> FIXME: Change TClonesArray away from a pointer? 22 22 23 23 public: -
trunk/MagicSoft/Mars/manalysis/Makefile
r2167 r2216 55 55 MSigmabarCalc.cc \ 56 56 MCT1PadSchweizer.cc \ 57 MCT1PadONOFF.cc \58 57 MCT1PointingCorrCalc.cc \ 59 58 MParameters.cc \ … … 62 61 MCT1SupercutsCalc.cc \ 63 62 MFiltercutsCalc.cc 63 # MCT1PadONOFF.cc \ 64 64 65 65 SRCS = $(SRCFILES) -
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r2210 r2216 40 40 #include "MHillasSrcCalc.h" // MHillasSrcCalc 41 41 #include "MPedestalCam.h" // MPedestalCam 42 #include "MCerPhotAnal 2.h"// MCerPhotAnal42 #include "MCerPhotAnal.h" // MCerPhotAnal 43 43 #include "MMcPedestalCopy.h" // MMcPedestalCopy 44 44 #include "MMcPedestalNSBAdd.h" // MMcPedestalNSBAdd … … 120 120 MMcPedestalCopy *pcopy = new MMcPedestalCopy; 121 121 MMcPedestalNSBAdd *pdnsb = new MMcPedestalNSBAdd; 122 MCerPhotAnal 2 *ncalc = new MCerPhotAnal2;122 MCerPhotAnal *ncalc = new MCerPhotAnal; 123 123 MClone *clone = new MClone("MCerPhotEvt"); 124 124 MImgCleanStd *clean = new MImgCleanStd; … … 205 205 // together with the hillas ellipse or not. 206 206 // 207 #include <iostream> 207 208 void MGCamDisplay::UpdateDisplay() 208 209 { -
trunk/MagicSoft/Mars/meventdisp/Makefile
r1945 r2216 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../mraw -I../mgui -I../mgeom \25 -I../manalysis -I../mfileio -I../mmc -I../mimage 24 INCLUDES = -I. -I../mbase -I../mraw -I../mgui -I../mgeom -I../mhist \ 25 -I../manalysis -I../mfileio -I../mmc -I../mimage 26 26 27 27 #------------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2209 r2216 167 167 // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* 168 168 169 #if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00) 169 170 if (fBuffer) return BufferFill(x,1); 170 171 #endif 171 172 const Int_t bin = (Int_t)x+1; 172 173 AddBinContent(bin); … … 199 200 // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* 200 201 202 #if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00) 201 203 if (fBuffer) return BufferFill(x,w); 202 204 #endif 203 205 const Int_t bin = (Int_t)x+1; 204 206 AddBinContent(bin, w); … … 403 405 // box with the histogram title 404 406 ptitle->SetTextColor(gStyle->GetTitleTextColor()); 407 #if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00) 405 408 ptitle->SetTextFont(gStyle->GetTitleFont("")); 409 #endif 406 410 ptitle->Paint(); 407 411 } … … 412 416 // ======================== 413 417 //if (Hoption.Same) return; 418 #if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00) 414 419 if (TestBit(kNoTitle)) 415 420 return; 421 #endif 416 422 417 423 const Int_t nt = strlen(GetTitle()); … … 460 466 461 467 // box with the histogram title 468 #if ROOT_VERSION_CODE > ROOT_VERSION(3,05,00) 462 469 ptitle->SetFillColor(gStyle->GetTitleFillColor()); 470 ptitle->SetTextFont(gStyle->GetTitleFont("")); 471 if (gStyle->GetTitleFont("")%10 > 2) 472 ptitle->SetTextSize(gStyle->GetTitleFontSize()); 473 #endif 463 474 ptitle->SetFillStyle(gStyle->GetTitleStyle()); 464 475 ptitle->SetName("title"); 465 476 ptitle->SetBorderSize(gStyle->GetTitleBorderSize()); 466 477 ptitle->SetTextColor(gStyle->GetTitleTextColor()); 467 ptitle->SetTextFont(gStyle->GetTitleFont(""));468 if (gStyle->GetTitleFont("")%10 > 2)469 ptitle->SetTextSize(gStyle->GetTitleFontSize());470 478 ptitle->AddText(GetTitle()); 471 479 ptitle->SetBit(kCanDelete); … … 654 662 for (Int_t idx=0; idx<fNcells-2; idx++) 655 663 { 656 Fill(idx, event[idx]); // FIXME: Slow!664 Fill(idx, const_cast<TArrayD&>(event)[idx]); // FIXME: Slow! 657 665 //fArray[idx+1]+=val; 658 666 … … 690 698 for (Int_t idx=0; idx<fNcells-2; idx++) 691 699 { 692 if ( event[idx]>threshold)700 if (const_cast<TArrayD&>(event)[idx]>threshold) 693 701 Fill(idx); 694 702 -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r2209 r2216 68 68 }; 69 69 70 Bool_t IsUsed(Int_t idx) const { return TESTBIT( fUsed[idx], kIsUsed); }70 Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); } 71 71 void SetUsed(Int_t idx) { SETBIT(fUsed[idx], kIsUsed); } 72 72 void ResetUsed(Int_t idx) { CLRBIT(fUsed[idx], kIsUsed); } … … 91 91 92 92 // This is a trick to remove TH1 entries from the context menu 93 void Add(TF1 *h1, Double_t c1=1) { TH1::Add(h1, c1); } 94 void Add(const TH1 *h1, Double_t c1=1) { TH1::Add(h1, c1); } 95 void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1) { TH1::Add(h1, h2, c1, c2); } 96 void Divide(TF1 *f1, Double_t c1=1) { TH1::Divide(f1, c1); } 97 void Divide(const TH1 *h1) { TH1::Divide(h1); } 98 void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Divide(h1, h2, c1, c2, option); } 99 void Multiply(TF1 *h1, Double_t c1=1) { TH1::Multiply(h1, c1); } 100 void Multiply(const TH1 *h1) { TH1::Multiply(h1); } 101 void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Multiply(h1, h2, c1, c2, option); } 93 /* 94 void Add(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1) { TH1::Add(h1, h2, c1, c2); } 95 void Add(TF1 *h1, Double_t c1=1) { TH1::Add(h1, c1); } 96 void Add(const TH1 *h1, Double_t c1=1) { TH1::Add(h1, c1); } 97 void Divide(TF1 *f1, Double_t c1=1) { TH1::Divide(f1, c1); } 98 void Divide(const TH1 *h1) { TH1::Divide(h1); } 99 void Divide(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Divide(h1, h2, c1, c2, option); } 100 void Multiply(TF1 *h1, Double_t c1=1) { TH1::Multiply(h1, c1); } 101 void Multiply(const TH1 *h1) { TH1::Multiply(h1); } 102 void Multiply(const TH1 *h1, const TH1 *h2, Double_t c1=1, Double_t c2=1, Option_t *option="") { TH1::Multiply(h1, h2, c1, c2, option); } 103 */ 104 102 105 void FitPanel() { TH1::FitPanel(); } 103 106
Note:
See TracChangeset
for help on using the changeset viewer.