CMS 3D CMS Logo

PhysicsHistograms.cc File Reference

#include "PhysicsTools/StarterKit/interface/PhysicsHistograms.h"
#include <string>
#include <sstream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const reco::Candidate &cand)
 Method to print out reco::Candidates.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const reco::Candidate cand 
)

Method to print out reco::Candidates.

class

Definition at line 189 of file PhysicsHistograms.cc.

References reco::Particle::eta(), reco::Particle::mass(), reco::Particle::phi(), and reco::Particle::pt().

00190 {
00191   char buff[1000];
00192   sprintf( buff, "Pt, Eta, Phi, M = (%6.2f, %6.2f, %6.2f, %6.2f)",
00193            cand.pt(), cand.eta(), cand.phi(), cand.mass() );
00194   out << buff;
00195   return out;
00196 }


Generated on Tue Jun 9 17:55:00 2009 for CMSSW by  doxygen 1.5.4