CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PFHcalSuperClusterAlgo.cc File Reference
#include "RecoParticleFlow/PFClusterProducer/interface/PFHcalSuperClusterAlgo.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "DataFormats/Math/interface/deltaPhi.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/GeometryVector/interface/Pi.h"
#include "DataFormats/Common/interface/PtrVector.h"
#include "Math/GenVector/VectorUtil.h"
#include "RecoParticleFlow/PFClusterProducer/interface/PFHcalSuperClusterInit.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <stdexcept>
#include <string>
#include <sstream>

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, const PFHcalSuperClusterAlgo &algo)
 

Function Documentation

ostream& operator<< ( ostream &  out,
const PFHcalSuperClusterAlgo algo 
)

Definition at line 528 of file PFHcalSuperClusterAlgo.cc.

References i, dbtoconf::out, PFHcalSuperClusterAlgo::pfClusters_, and PFHcalSuperClusterAlgo::pfSuperClusters_.

528  {
529  if(!out) return out;
530  out<<"PFSuperClusterAlgo parameters : "<<endl;
531  out<<"-----------------------------------------------------"<<endl;
532 
533  out<<endl;
534  out<<algo.pfClusters_->size()<<" clusters:"<<endl;
535 
536  for(unsigned i=0; i<algo.pfClusters_->size(); i++) {
537  out<<(*algo.pfClusters_)[i]<<endl;
538 
539  if(!out) return out;
540  }
541 
542  out<<algo.pfSuperClusters_->size()<<" superclusters:"<<endl;
543 
544  for(unsigned i=0; i<algo.pfSuperClusters_->size(); i++) {
545  out<<(*algo.pfSuperClusters_)[i]<<endl;
546 
547  if(!out) return out;
548  }
549  return out;
550 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
std::auto_ptr< std::vector< reco::PFCluster > > pfClusters_
particle flow clusters
std::auto_ptr< std::vector< reco::PFSuperCluster > > pfSuperClusters_
particle flow superclusters