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 1263 of file PFBlockAlgo.cc.

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

1263  {
1264  if(! out) return out;
1265 
1266  out<<"====== Particle Flow Block Algorithm ======= ";
1267  out<<endl;
1268  out<<"number of unassociated elements : "<<a.elements_.size()<<endl;
1269  out<<endl;
1270 
1271  for(PFBlockAlgo::IEC ie = a.elements_.begin();
1272  ie != a.elements_.end(); ++ie) {
1273  out<<"\t"<<**ie <<endl;
1274  }
1275 
1276 
1277  // const PFBlockCollection& blocks = a.blocks();
1278 
1279  const std::auto_ptr< reco::PFBlockCollection >& blocks
1280  = a.blocks();
1281 
1282  if(!blocks.get() ) {
1283  out<<"blocks already transfered"<<endl;
1284  }
1285  else {
1286  out<<"number of blocks : "<<blocks->size()<<endl;
1287  out<<endl;
1288 
1289  for(PFBlockAlgo::IBC ib=blocks->begin();
1290  ib != blocks->end(); ++ib) {
1291  out<<(*ib)<<endl;
1292  }
1293  }
1294 
1295  return out;
1296 }
const std::auto_ptr< reco::PFBlockCollection > & blocks() const
Definition: PFBlockAlgo.h:185
std::list< reco::PFBlockElement * >::const_iterator IEC
Definition: PFBlockAlgo.h:193
std::list< reco::PFBlockElement * > elements_
actually, particles will be created by a separate producer
Definition: PFBlockAlgo.h:305
tuple out
Definition: dbtoconf.py:99
reco::PFBlockCollection::const_iterator IBC
Definition: PFBlockAlgo.h:194
list blocks
Definition: gather_cfg.py:90