ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Betchart/Book.h
(Generate patch)

Comparing UserCode/Betchart/Book.h (file contents):
Revision 1.1 by bbetchar, Mon Jul 20 12:21:17 2009 UTC vs.
Revision 1.2 by bbetchar, Mon Jul 20 13:10:06 2009 UTC

# Line 43 | Line 43 | class Book {
43          if( current == book.end() ) {
44            TH1* histogram = book[name] = new TH1D((_title+"/"+name).c_str(), "", NbinsX, Xlow, Xup);
45            histogram->SetDirectory(0);
46 +          histogram->Sumw2();
47            histogram->Fill(X,W);
48          } else current->second->Fill(X,W);
49        }
# Line 55 | Line 56 | class Book {
56          if( current == book.end() ) {
57            TH1* histogram = book[name] = new TH2D((_title+"/"+name).c_str(), "", NbinsX, Xlow, Xup, NbinsY, Ylow, Yup);
58            histogram->SetDirectory(0);
59 +          histogram->Sumw2();
60            static_cast<TH2*>(histogram)->Fill(X,Y,W);
61          } else static_cast<TH2*>(current->second)->Fill(X,Y,W);
62        }
# Line 68 | Line 70 | class Book {
70          if( current == book.end() ) {
71            TH1* histogram = book[name] = new TH3D((_title+"/"+name).c_str(), "", NbinsX, Xlow, Xup, NbinsY, Ylow, Yup, NbinsZ, Zlow, Zup);
72            histogram->SetDirectory(0);
73 +          histogram->Sumw2();
74            static_cast<TH3*>(histogram)->Fill(X,Y,Z,W);
75          } else static_cast<TH3*>(current->second)->Fill(X,Y,Z,W);
76        }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines