- Timestamp:
- 11/26/03 16:10:09 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2571 r2572 8 8 * mhist/MHVsTime.[h,cc]: 9 9 - implemented usage of Event number 10 11 * mhist/MHPixVsTime.[h,cc]: 12 - implemented usage of time (untested - may not work) 10 13 11 14 -
trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc
r2244 r2572 43 43 #include "MGeomCam.h" 44 44 45 #include "MRawEvtHeader.h" 46 #include "MTime.h" 47 45 48 ClassImp(MHPixVsTime); 46 49 … … 63 66 TString t("Pixel Index #"); 64 67 t += idx; 65 t += " vs. time"; 68 t += " vs "; 69 t += fUseEventTime ? "Time" : "Event Number"; 66 70 67 71 fGraph.SetName("MCamEvent"); … … 104 108 } 105 109 110 if (fUseEventTime) 111 { 112 fTime = (MTime*)plist->FindObject("MTime"); 113 if (!fTime) 114 { 115 *fLog << err << "MTime not found... abort." << endl; 116 return kFALSE; 117 } 118 } 119 else 120 { 121 fHeader = (MRawEvtHeader*)plist->FindObject("MRawEvtHeader"); 122 if (!fHeader) 123 { 124 *fLog << err << "MRawEvtHeader not found... abort." << endl; 125 return kFALSE; 126 } 127 } 128 106 129 return kTRUE; 107 130 } … … 125 148 return kCONTINUE; 126 149 127 fGraph.SetPoint(fGraph.GetN(), fGraph.GetN(), val); 150 Double_t t = 0; 151 if (fUseEventTime) 152 t = (*fTime); 153 else 154 t = fHeader ? fHeader->GetDAQEvtNumber() : fGraph.GetN(); 155 156 fGraph.SetPoint(fGraph.GetN(), t, val); 128 157 return kTRUE; 129 158 } -
trunk/MagicSoft/Mars/mhist/MHPixVsTime.h
r2244 r2572 14 14 class MGeomCam; 15 15 16 class MRawEvtHeader; 17 class MTime; 18 16 19 class MHPixVsTime : public MH 17 20 { … … 23 26 MGeomCam *fCam; //! the camera geometry 24 27 28 MRawEvtHeader *fHeader; //! 29 MTime *fTime; //! 30 25 31 TString fNameEvt; 26 32 27 33 Int_t fType; 28 34 Int_t fTypeErr; 35 36 Bool_t fUseEventTime; 29 37 30 38 Bool_t SetupFill(const MParList *pList); … … 42 50 TGraph &GetGraph() { return fGraph; } 43 51 52 void SetUseEventTime(Bool_t use = kTRUE) { fUseEventTime = use; } 53 44 54 void Draw(Option_t *o=""); 45 55
Note:
See TracChangeset
for help on using the changeset viewer.