Skip to content

Commit

Permalink
unsigned int where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
franzoni committed Jun 1, 2011
1 parent ad9c2b8 commit b4d64c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PhotonAnalysis/src/PhotonAnalysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void PhotonAnalysis::Init(LoopAll& l)
else {
cout<<"Error opening " <<puHist<<" pileup reweighting histogram, using 1.0"<<endl;
weights.resize(50);
for (int i=0; i<weights.size(); i++) weights[i] = 1.0;
for (unsigned int i=0; i<weights.size(); i++) weights[i] = 1.0;
}
if(PADEBUG)
cout << "Opening PU file END"<<endl;
Expand All @@ -155,7 +155,7 @@ void PhotonAnalysis::Analysis(LoopAll& l, Int_t jentry)
cout << "Analysis START"<<endl;
pho_presel.clear();

int n_pu = l.pu_n;
unsigned int n_pu = l.pu_n;
float weight =1.;
if (l.itype[l.current] !=0 && puHist != "") {
if(n_pu<weights.size()){
Expand Down
2 changes: 1 addition & 1 deletion PhotonAnalysis/src/StatAnalysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void StatAnalysis::Analysis(LoopAll& l, Int_t jentry)
int cur_type = l.itype[l.current];
float weight = l.sampleContainer[l.current_sample_index].weight;
//PU reweighting
int n_pu = l.pu_n;
unsigned int n_pu = l.pu_n;
if (l.itype[l.current] !=0 && puHist != "") {
if(n_pu<weights.size()){
//cout << n_pu<<endl;
Expand Down

0 comments on commit b4d64c0

Please sign in to comment.