- Timestamp:
- 04/20/04 17:16:55 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc
r3784 r3785 67 67 // 68 68 MHCamEventRot::MHCamEventRot(const char *name, const char *title) 69 : fTime(0), fPointPos(0), fObservatory(0), fType(0) 69 : fTime(0), fPointPos(0), fObservatory(0), fType(0), fNameTime("MTime") 70 70 { 71 71 // … … 100 100 } 101 101 102 MBinning binsa;103 binsa.SetEdges(18, 0, 90);104 105 102 const MBinning *bins = (MBinning*)plist->FindObject("BinningCamEvent"); 106 103 if (!bins) 107 104 { 108 const Float_t r = (fGeom ? fGeom->GetMaxRadius()/3 : 200)*fGeom->GetConvMm2Deg();105 const Float_t r = fGeom->GetMaxRadius()*fGeom->GetConvMm2Deg(); 109 106 110 107 MBinning b; 111 b.SetEdges( 20, -r, r);108 b.SetEdges(41, -r, r); 112 109 SetBinning(&fHist, &b, &b); 113 110 } … … 119 116 *fLog << warn << "MPointingPos not found... no derotation." << endl; 120 117 121 fTime = (MTime*)plist->FindObject(AddSerialNumber( "MTime"));118 fTime = (MTime*)plist->FindObject(AddSerialNumber(fNameTime)); 122 119 if (!fTime) 123 120 *fLog << warn << "MTime not found... no derotation." << endl; … … 130 127 // for the current pointing position and add a offset in the 131 128 // Fill function! 132 fRa = fPointPos->GetRa(); 133 fDec = fPointPos->GetDec(); 129 if (fPointPos) 130 { 131 fRa = fPointPos->GetRa(); 132 fDec = fPointPos->GetDec(); 133 } 134 134 135 135 return kTRUE; -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.h
r3784 r3785 33 33 Double_t fDec; 34 34 35 TString fNameTime; 35 36 //Int_t DistancetoPrimitive(Int_t px, Int_t py); 36 37 //void Modified(); … … 48 49 49 50 TH1 *GetHistByName(const TString name) { return &fHist; } 51 52 void SetNameTime(const char *name) { fNameTime=name; } 50 53 51 54 //void FitSignificance(Float_t sigint=15, Float_t sigmax=70, Float_t bgmin=40, Float_t bgmax=70, Byte_t polynom=1); //*MENU*
Note:
See TracChangeset
for help on using the changeset viewer.