#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. |
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 }