ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/Plotting/Modules/ResultLibraryClass.C
(Generate patch)

Comparing UserCode/cbrown/Development/Plotting/Modules/ResultLibraryClass.C (file contents):
Revision 1.2 by buchmann, Mon Mar 26 09:29:01 2012 UTC vs.
Revision 1.3 by buchmann, Mon Apr 30 08:38:11 2012 UTC

# Line 63 | Line 63 | void ResultLibrary::Add(LibraryForOneCut
63   }
64  
65   int ResultLibrary::Find(float jzbcut) {
66 <  for(int i=0;i<this->predictions.size();i++) if(this->predictions[i].jzbcut==jzbcut) return i;
66 >  for(int i=0;i<(int)this->predictions.size();i++) if(this->predictions[i].jzbcut==jzbcut) return i;
67    // if cut wasn't found, create this library and return the new index!
68    LibraryForOneCut additional;
69    additional.jzbcut=jzbcut;
# Line 75 | Line 75 | int ResultLibrary::Find(float jzbcut) {
75   void ResultLibrary::Print() {
76    cout << " \\hline" << endl;
77    cout << " " << ampersand << " ";
78 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " JZB > " << predictions[i].jzbcut << " GeV " << " ";
78 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " JZB > " << predictions[i].jzbcut << " GeV " << " ";
79    cout << " \\\\ \\hline" << endl;
80    cout << " " << ampersand << " Z bkgd ";
81 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " " << predictions[i].Zbkg;
81 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " " << predictions[i].Zbkg;
82    cout << " \\\\" << endl;
83    cout << " " << ampersand << " flavor-symmetric ";
84 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " " << predictions[i].Flavorsym;
84 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " " << predictions[i].Flavorsym;
85    cout << " \\\\" << endl;
86    cout << " " << ampersand << " Total ";
87 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " " << predictions[i].total;
87 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " " << predictions[i].total;
88    cout << " \\\\ \\hline" << endl;
89    cout << " " << ampersand << " Observed ";
90 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " " << predictions[i].observed;
90 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " " << predictions[i].observed;
91    cout << " \\\\ \\hline" << endl;
92    cout << " " << ampersand << " Upper Limit";
93 <  for(int i=0;i<this->predictions.size();i++) cout << ampersand << " " << predictions[i].UpperLimit;
93 >  for(int i=0;i<(int)this->predictions.size();i++) cout << ampersand << " " << predictions[i].UpperLimit;
94    cout << " \\\\ \\hline";
95 <  for(int isignal=0;isignal<this->predictions[0].SignalYield.size();isignal++) {
95 >  for(int isignal=0;isignal<(int)this->predictions[0].SignalYield.size();isignal++) {
96      cout << endl;
97      cout << " " << ampersand << " " << predictions[0].SignalYield[isignal].name;
98 <    for(int i=0;i<this->predictions.size();i++) {
99 <      if(predictions[i].SignalYield.size()<=isignal) cout << "X";
98 >    for(int i=0;i<(int)this->predictions.size();i++) {
99 >      if((int)predictions[i].SignalYield.size()<=isignal) cout << "X";
100        else cout << ampersand << " " << predictions[i].SignalYield[isignal].first << " +/- " << predictions[i].SignalYield[isignal].second << "  \\\\";
101      }
102    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines