ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/Analyzers/src/ConversionRejectionExample.cc
(Generate patch)

Comparing UserCode/MitEdm/Analyzers/src/ConversionRejectionExample.cc (file contents):
Revision 1.1 by bendavid, Tue Jun 8 23:30:47 2010 UTC vs.
Revision 1.2 by bendavid, Fri Mar 11 04:03:55 2011 UTC

# Line 64 | Line 64 | void ConversionRejectionExample::analyze
64      std::vector<edm::Ptr<DecayPart> > goodConversions = convMatcher.goodMatchedConversions(*it,hConversions);
65      for (std::vector<edm::Ptr<DecayPart> >::const_iterator jt = goodConversions.begin(); jt!=goodConversions.end(); ++jt) {
66        const DecayPart *conv = jt->get();
67 <      printf("Good Matched Conversion %i:\n",jt-goodConversions.begin());
67 >      printf("Good Matched Conversion %i:\n",(int)(jt-goodConversions.begin()));
68        printf("  radius = %5f\n",conv->position().rho());
69        printf("  lxy    = %5f\n",conv->lxy());
70        printf("  lz     = %5f\n",conv->lz());
# Line 91 | Line 91 | void ConversionRejectionExample::analyze
91      std::vector<edm::Ptr<DecayPart> > allConversions = convMatcher.allMatchedConversions(*it,hConversions);
92      for (std::vector<edm::Ptr<DecayPart> >::const_iterator jt = allConversions.begin(); jt!=allConversions.end(); ++jt) {
93        const DecayPart *conv = jt->get();
94 <      printf("Matched Conversion %i:\n",jt-allConversions.begin());
94 >      printf("Matched Conversion %i:\n",(int)(jt-allConversions.begin()));
95        printf("  radius = %5f\n",conv->position().rho());
96        printf("  prob   = %5f\n",TMath::Prob(conv->chi2(),conv->ndof()));
97      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines