Changeset 2275
- Timestamp:
- 07/13/03 19:01:14 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2274 r2275 1 1 -*-*- END OF LINE -*-*- 2 3 2003/07/13: Thomas Bretz 4 5 * mbase/MArgs.[h,cc]: 6 - fixed compile problem with root 3.02/07 7 8 * meventdisp/MGCamDisplay.cc, mevtdisp/MGEvtDislay.cc: 9 - fixed missing MHCamera::SetOptStat 10 11 2 12 3 13 2003/07/12: Thomas Bretz -
trunk/MagicSoft/Mars/mbase/MArgs.cc
r2267 r2275 44 44 } 45 45 46 MArgs::MArgs(int argc, const char **argv) : fArgc(argc) , fArgv()46 MArgs::MArgs(int argc, const char **argv) : fArgc(argc) 47 47 { 48 48 fName = argv[0]; 49 49 50 fArgv.SetOwner(); 50 fArgv = new TList; 51 fArgv->SetOwner(); 51 52 52 53 for (int i=1; i<argc; i++) … … 54 55 MArgsEntry &o = *new MArgsEntry(argv[i]); 55 56 dynamic_cast<TString&>(o) = o.Strip(TString::kBoth); 56 fArgv .Add(&o);57 fArgv->Add(&o); 57 58 } 59 } 60 61 MArgs::~MArgs() 62 { 63 delete fArgv; 58 64 } 59 65 … … 61 67 { 62 68 gLog << all << underline << fName << ":" << endl; 63 fArgv .Print();69 fArgv->Print(); 64 70 } 65 71 … … 76 82 TString MArgs::GetString(const TString name) const 77 83 { 78 TIter Next( &fArgv);84 TIter Next(fArgv); 79 85 TString *s = NULL; 80 86 while ((s=dynamic_cast<TString*>(Next()))) … … 98 104 const TString name = n.Strip(TString::kBoth); 99 105 100 TIter Next( &fArgv);106 TIter Next(fArgv); 101 107 TString *s = NULL; 102 108 while ((s=dynamic_cast<TString*>(Next()))) … … 104 110 { 105 111 TString str = s->Data()+s->Index(name)+name.Length(); 106 delete fArgv .Remove(dynamic_cast<TObject*>(s));112 delete fArgv->Remove(dynamic_cast<TObject*>(s)); 107 113 return str; 108 114 } … … 124 130 Int_t num = 0; 125 131 126 TIter Next( &fArgv);132 TIter Next(fArgv); 127 133 TString *s = NULL; 128 134 while ((s=dynamic_cast<TString*>(Next()))) … … 142 148 Int_t num = 0; 143 149 144 TIter Next( &fArgv);150 TIter Next(fArgv); 145 151 TString *s = NULL; 146 152 while ((s=dynamic_cast<TString*>(Next()))) … … 155 161 const TString name = n.Strip(TString::kBoth); 156 162 157 TIter Next( &fArgv);163 TIter Next(fArgv); 158 164 TString *s = NULL; 159 165 while ((s=dynamic_cast<TString*>(Next()))) … … 167 173 const TString name = n.Strip(TString::kBoth); 168 174 169 TIter Next( &fArgv);175 TIter Next(fArgv); 170 176 TString *s = NULL; 171 177 while ((s=dynamic_cast<TString*>(Next()))) -
trunk/MagicSoft/Mars/mbase/MArgs.h
r2273 r2275 27 27 { 28 28 private: 29 Int_t fArgc;30 TList fArgv;29 Int_t fArgc; 30 TList *fArgv; //-> 31 31 32 32 public: 33 33 MArgs(int argc, const char **argv); 34 ~MArgs(); 34 35 35 36 void Print(const Option_t *o="") const; -
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r2266 r2275 26 26 27 27 #include <TList.h> // TList::Add 28 #include <TStyle.h> // gStyle->SetOptStat 28 29 #include <TCanvas.h> // TCanvas::cd 29 30 #include <TGButton.h> // TGPictureButton … … 176 177 // Show camera display for the actual geometry 177 178 // 179 gStyle->SetOptStat(1100); 178 180 for (int i=0; i<5; i++) 179 181 { 180 182 fCanvas2[i]->cd(); 181 183 fDisplay[i] = new MHCamera(*geom); 182 fDisplay[i]->SetOptStat(1100);183 184 fDisplay[i]->Draw(); 184 185 fDisplay[i]->AddNotify(*(MCamEvent*)GetParList()->FindObject("MRawEvtData")); -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r2266 r2275 280 280 MGeomCamMagic geom; 281 281 MHCamera *display = new MHCamera(geom); 282 display->Set OptStat(0);282 display->SetBit(TH1::kNoStats); 283 283 display->Draw(); 284 284 display->DrawPixelIndices();
Note:
See TracChangeset
for help on using the changeset viewer.