Changeset 1899 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/03/03 13:45:35 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r1898 r1899  
    807807//   SmearTheta [rad]
    808808//
    809 Float_t MCT1ReadPreProc::SmearTheta(Float_t theta)
     809Double_t MCT1ReadPreProc::SmearTheta(Double_t theta)
    810810{
    811811    const Int_t bin = fBinningT->FindLoEdge(theta * 180/TMath::Pi());
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h

    r1891 r1899  
    7070    void   ProcessEvent(const struct eventrecord &event);
    7171
    72     Float_t SmearTheta(Float_t theta);
     72    Double_t SmearTheta(Double_t theta);
    7373
    7474    Bool_t PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/mhist/MBinning.h

    r1891 r1899  
    4646        for (int i=0; i<fEdges.GetSize(); i++)
    4747        {
    48             if (val >= ((TArrayD)fEdges)[i])
     48            if (((TArrayD)fEdges)[i] <= val)
    4949                return i;
    5050        }
     
    5353    Int_t FindHiEdge(Double_t val) const
    5454    {
    55         for (int i=0; i<fEdges.GetSize(); i++)
     55        for (int i=0; i<fEdges.GetSize()-1; i++)
    5656        {
    57             if (val < ((TArrayD)fEdges)[i])
    58                 return i;
     57            if (val <= ((TArrayD)fEdges)[i])
     58                return i+1;
    5959        }
    6060        return -1;
Note: See TracChangeset for help on using the changeset viewer.