ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/joshmt/MiscUtil.cxx
(Generate patch)

Comparing UserCode/joshmt/MiscUtil.cxx (file contents):
Revision 1.13 by kreis, Fri Jun 8 17:09:02 2012 UTC vs.
Revision 1.15 by joshmt, Fri Apr 19 10:17:30 2013 UTC

# Line 120 | Line 120 | namespace jmt {
120      return TMath::Sqrt(deltaR2 (eta1, phi1, eta2, phi2));
121    }
122  
123 +  int signOf(double a) {
124 +    return (a>= 0.0) ? 1 : -1;
125 +  }
126 +
127    // == error propagation ==
128  
129    //because not all versions of ROOT have it built in
# Line 218 | Line 222 | namespace jmt {
222    
223    
224    void printHist(const TH1D* h, int binlow=1, int binhigh=-1, bool withErrors=true) {
221    cout << "print debug" << endl;
225      if (binhigh == -1) binhigh = h->GetNbinsX();
226  
227      std::cout << h->GetName() << ": " ;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines