|
[Rivet-svn] r3032 - trunk/src/Analysesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Mar 31 11:36:06 BST 2011
Author: buckley Date: Thu Mar 31 11:36:06 2011 New Revision: 3032 Log: Logger tidying Modified: trunk/src/Analyses/CDF_2009_S8233977.cc Modified: trunk/src/Analyses/CDF_2009_S8233977.cc ============================================================================== --- trunk/src/Analyses/CDF_2009_S8233977.cc Tue Mar 29 13:25:03 2011 (r3031) +++ trunk/src/Analyses/CDF_2009_S8233977.cc Thu Mar 31 11:36:06 2011 (r3032) @@ -35,8 +35,8 @@ setBeams(PROTON, ANTIPROTON); setNeedsCrossSection(true); } - - + + /// @name Analysis methods //@{ @@ -52,7 +52,7 @@ } - + /// Do the analysis void analyze(const Event& evt) { // MinBias Trigger @@ -70,7 +70,7 @@ foreach (const Particle& p, trackfs.particles()) { const double pT = p.momentum().pT() / GeV; _hist_pt_vs_multiplicity->fill(numParticles, pT, weight); - + // The weight for entries in the pT distribution should be weight/(pT*dPhi*dy). // // - dPhi = 2*PI @@ -101,16 +101,16 @@ _sumWeightSelected += evt.weight(); } - - + + /// Normalize histos void finalize() { scale(_hist_sumEt, crossSection()/millibarn/(4*M_PI*_sumWeightSelected)); scale(_hist_pt, crossSection()/millibarn/_sumWeightSelected); - getLog() << Log::DEBUG << "sumOfWeights() = " << sumOfWeights() << std::endl; - getLog() << Log::DEBUG << "_sumWeightSelected = " << _sumWeightSelected << std::endl; + MSG_DEBUG("sumOfWeights() = " << sumOfWeights()); + MSG_DEBUG("_sumWeightSelected = " << _sumWeightSelected); } - + //@}
More information about the Rivet-svn mailing list |