Changeset 7297 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 08/22/05 10:46:31 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.h
r7001 r7297 221 221 void SetInvDeepBlueSeaPalette(); // *MENU* 222 222 223 void SetAutoScale() { fMinimum = fMaximum = -1111; } // *MENU*224 225 223 void SetFreezed(Bool_t f=kTRUE) { f ? SetBit(kFreezed) : ResetBit(kFreezed); } // *TOGGLE* *GETTER=IsFreezed 226 224 Bool_t IsFreezed() const { return TestBit(kFreezed); } … … 228 226 229 227 void SetAbberation(Float_t f=0.0713) { fAbberation=f; } // *MENU* 228 229 void SetAutoScale() { fMinimum = fMaximum = -1111; } // *MENU* 230 void SetMinMax(Double_t min=-1111, Double_t max=-1111) { SetMinimum(min); SetMaximum(max); } // *MENU* 230 231 231 232 void AddNotify(TObject *event); -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r7180 r7297 71 71 // -------------------------------------------------------------------------- 72 72 // 73 MHEvent::MHEvent(EventType_t type) : fHist(NULL), fType(type) 73 MHEvent::MHEvent(EventType_t type) : fHist(NULL), fType(type), 74 fMinimum(-1111), fMaximum(-1111) 74 75 { 75 76 fName = "MHEvent"; … … 121 122 fHist = new MHCamera(*cam); 122 123 fHist->AddNotify(fClone); 124 125 fHist->SetMinimum(fMinimum); 126 fHist->SetMaximum(fMaximum); 123 127 124 128 switch (fType) … … 167 171 break; 168 172 case kEvtArrTime: 173 case kEvtArrTimeCleaned: 169 174 fHist->SetName("Arrival Time"); 170 175 fHist->SetYTitle("t [slice id]"); … … 241 246 case kEvtArrTime: 242 247 fHist->SetCamContent(*event, 6); 248 break; 249 case kEvtArrTimeCleaned: 250 fHist->SetCamContent(*event, 8); 243 251 break; 244 252 case kEvtTrigPix: -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r7180 r7297 25 25 kEvtPedPhot, kEvtPedPhotRMS, 26 26 kEvtCleaningLevels, kEvtCleaningData, 27 kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex 27 kEvtIdxMax, kEvtArrTime, kEvtArrTimeCleaned, 28 kEvtTrigPix, kEvtIslandIndex 28 29 }; 29 30 … … 45 46 EventType_t fType; 46 47 48 Double_t fMinimum; 49 Double_t fMaximum; 50 47 51 TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; } 48 52 … … 53 57 MHEvent(EventType_t type=kEvtSignalRaw); 54 58 ~MHEvent(); 59 60 void SetMinimum(Double_t min=-1111) { fMinimum=min; } 61 void SetMaximum(Double_t max=-1111) { fMaximum=max; } 55 62 56 63 MHCamera *GetHist() { return fHist; }
Note:
See TracChangeset
for help on using the changeset viewer.