CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PFBlockAlgo.cc File Reference
#include "RecoParticleFlow/PFProducer/interface/PFBlockAlgo.h"
#include "RecoParticleFlow/PFProducer/interface/Utils.h"
#include "RecoParticleFlow/PFClusterTools/interface/LinkByRecHit.h"
#include "DataFormats/ParticleFlowReco/interface/PFBlock.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/ParticleFlowReco/interface/PFDisplacedVertex.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
#include <stdexcept>
#include "TMath.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const PFBlockAlgo &a)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFBlockAlgo a 
)

Definition at line 957 of file PFBlockAlgo.cc.

References PFBlockAlgo::blocks(), ExpressReco_HICollisions_FallBack::blocks, PFBlockAlgo::elements_, and dbtoconf::out.

957  {
958  if(! out) return out;
959 
960  out<<"====== Particle Flow Block Algorithm ======= ";
961  out<<endl;
962  out<<"number of unassociated elements : "<<a.elements_.size()<<endl;
963  out<<endl;
964 
965  for(PFBlockAlgo::IEC ie = a.elements_.begin();
966  ie != a.elements_.end(); ie++) {
967  out<<"\t"<<**ie <<endl;
968  }
969 
970 
971  // const PFBlockCollection& blocks = a.blocks();
972 
973  const std::auto_ptr< reco::PFBlockCollection >& blocks
974  = a.blocks();
975 
976  if(!blocks.get() ) {
977  out<<"blocks already transfered"<<endl;
978  }
979  else {
980  out<<"number of blocks : "<<blocks->size()<<endl;
981  out<<endl;
982 
983  for(PFBlockAlgo::IBC ib=blocks->begin();
984  ib != blocks->end(); ib++) {
985  out<<(*ib)<<endl;
986  }
987  }
988 
989  return out;
990 }
const std::auto_ptr< reco::PFBlockCollection > & blocks() const
Definition: PFBlockAlgo.h:154
std::list< reco::PFBlockElement * >::const_iterator IEC
Definition: PFBlockAlgo.h:162
std::list< reco::PFBlockElement * > elements_
actually, particles will be created by a separate producer
Definition: PFBlockAlgo.h:254
tuple out
Definition: dbtoconf.py:99
reco::PFBlockCollection::const_iterator IBC
Definition: PFBlockAlgo.h:163