Changeset 1899 for trunk/MagicSoft/Mars
- Timestamp:
- 04/03/03 13:45:35 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1898 r1899 807 807 // SmearTheta [rad] 808 808 // 809 Float_t MCT1ReadPreProc::SmearTheta(Float_t theta)809 Double_t MCT1ReadPreProc::SmearTheta(Double_t theta) 810 810 { 811 811 const Int_t bin = fBinningT->FindLoEdge(theta * 180/TMath::Pi()); -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r1891 r1899 70 70 void ProcessEvent(const struct eventrecord &event); 71 71 72 Float_t SmearTheta(Float_t theta);72 Double_t SmearTheta(Double_t theta); 73 73 74 74 Bool_t PreProcess(MParList *pList); -
trunk/MagicSoft/Mars/mhist/MBinning.h
r1891 r1899 46 46 for (int i=0; i<fEdges.GetSize(); i++) 47 47 { 48 if ( val >= ((TArrayD)fEdges)[i])48 if (((TArrayD)fEdges)[i] <= val) 49 49 return i; 50 50 } … … 53 53 Int_t FindHiEdge(Double_t val) const 54 54 { 55 for (int i=0; i<fEdges.GetSize() ; i++)55 for (int i=0; i<fEdges.GetSize()-1; i++) 56 56 { 57 if (val < ((TArrayD)fEdges)[i])58 return i ;57 if (val <= ((TArrayD)fEdges)[i]) 58 return i+1; 59 59 } 60 60 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.