# | 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() << ": " ; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |