Changeset 7223 for trunk/MagicSoft/Mars/mhvstime
- Timestamp:
- 07/26/05 15:14:13 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mhvstime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r7210 r7223 95 95 // 96 96 MHSectorVsTime::MHSectorVsTime(const char *name, const char *title) 97 : fGraph(0), fEvt(NULL), fType(0), fTypeErr(-1) 97 : fGraph(0), fEvt(NULL), fMinimum(-1111), fMaximum(-1111), 98 fType(0), fTypeErr(-1) 98 99 { 99 100 // … … 191 192 fGraph->SetMarkerStyle(kFullDotMedium); 192 193 194 if (fMinimum!=-1111) 195 fGraph->SetMinimum(fMinimum); 196 if (fMaximum!=-1111) 197 fGraph->SetMaximum(fMaximum); 198 193 199 fMin = FLT_MAX; 194 200 fMax = -FLT_MAX; … … 248 254 const Double_t add = (fMax-fMin)*0.15; 249 255 250 fGraph->SetMinimum(fMin-add); 251 fGraph->SetMaximum(fMax+add); 256 if (fMinimum==-1111) 257 fGraph->SetMinimum(fMin-add); 258 if (fMaximum==-1111) 259 fGraph->SetMaximum(fMax+add); 252 260 253 261 return kTRUE; -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h
r7210 r7223 35 35 MHCamera fHCamera; //! 36 36 37 Double_t fMin; //! 38 Double_t fMax; //! 37 Double_t fMin; //! Calculation of minimum 38 Double_t fMax; //! Calculation of maximum 39 40 Double_t fMinimum; // User defined minimum 41 Double_t fMaximum; // User defined maximum 39 42 40 43 TString fNameEvt; … … 63 66 void SetAreaIndex(const TArrayI &a) { fAreaIndex=a; } 64 67 68 void SetMinimum(Double_t min=-1111) { fMinimum = min; } 69 void SetMaximum(Double_t max=-1111) { fMaximum = max; } 70 65 71 // Getter 66 72 TH1 *GetHistByName(const TString name="") const;
Note:
See TracChangeset
for help on using the changeset viewer.