ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/HistosPairsBase.hh
(Generate patch)

Comparing UserCode/HbbAnalysis/interface/HistosPairsBase.hh (file contents):
Revision 1.1 by amagnan, Fri Oct 2 11:05:52 2009 UTC vs.
Revision 1.2 by amagnan, Tue Oct 13 12:14:04 2009 UTC

# Line 193 | Line 193 | namespace HbbAnalysis {//namespace
193      p_Vis_mt->Fill(lp4.Mt());
194      p_Vis_mass->Fill(lp4.M());
195      p_Vis_energy->Fill(lp4.E());
196 <    p_Vis_eta->Fill(lp4.Eta());
196 >    if (lp4.Pt() > 0)
197 >      p_Vis_eta->Fill(lp4.Eta());
198 >    else p_Vis_eta->Fill(0);
199      p_Vis_phi->Fill(lp4.Phi());
200          
201      lp4 = FourMomentumCollinearApprox(aLeg1.recoVars(),
# Line 208 | Line 210 | namespace HbbAnalysis {//namespace
210      p_Coll_mt->Fill(lp4.Mt());
211      p_Coll_mass->Fill(lp4.M());
212      p_Coll_energy->Fill(lp4.E());
213 <    p_Coll_eta->Fill(lp4.Eta());
213 >    if (lp4.Pt() > 0)
214 >      p_Coll_eta->Fill(lp4.Eta());
215 >    else p_Coll_eta->Fill(0);
216      p_Coll_phi->Fill(lp4.Phi());
217  
218      lp4 = FourMomentumCDFmethod(aLeg1.recoVars(),
# Line 223 | Line 227 | namespace HbbAnalysis {//namespace
227      p_CDF_mt->Fill(lp4.Mt());
228      p_CDF_mass->Fill(lp4.M());
229      p_CDF_energy->Fill(lp4.E());
230 <    p_CDF_eta->Fill(lp4.Eta());
230 >    if (lp4.Pt() > 0)
231 >      p_CDF_eta->Fill(lp4.Eta());
232 >    else p_CDF_eta->Fill(0);
233      p_CDF_phi->Fill(lp4.Phi());
234  
235      p_charge->Fill(aLeg1.recoVars().charge+aLeg2.recoVars().charge);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines