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

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

1275  {
1276  if(! out) return out;
1277 
1278  out<<"====== Particle Flow Block Algorithm ======= ";
1279  out<<endl;
1280  out<<"number of unassociated elements : "<<a.elements_.size()<<endl;
1281  out<<endl;
1282 
1283  for(PFBlockAlgo::IEC ie = a.elements_.begin();
1284  ie != a.elements_.end(); ++ie) {
1285  out<<"\t"<<**ie <<endl;
1286  }
1287 
1288 
1289  // const PFBlockCollection& blocks = a.blocks();
1290 
1291  const std::auto_ptr< reco::PFBlockCollection >& blocks
1292  = a.blocks();
1293 
1294  if(!blocks.get() ) {
1295  out<<"blocks already transfered"<<endl;
1296  }
1297  else {
1298  out<<"number of blocks : "<<blocks->size()<<endl;
1299  out<<endl;
1300 
1301  for(PFBlockAlgo::IBC ib=blocks->begin();
1302  ib != blocks->end(); ++ib) {
1303  out<<(*ib)<<endl;
1304  }
1305  }
1306 
1307  return out;
1308 }
const std::auto_ptr< reco::PFBlockCollection > & blocks() const
Definition: PFBlockAlgo.h:191
int ib
Definition: cuy.py:660
std::list< reco::PFBlockElement * >::const_iterator IEC
Definition: PFBlockAlgo.h:199
std::list< reco::PFBlockElement * > elements_
actually, particles will be created by a separate producer
Definition: PFBlockAlgo.h:314
tuple out
Definition: dbtoconf.py:99
reco::PFBlockCollection::const_iterator IBC
Definition: PFBlockAlgo.h:200
list blocks
Definition: gather_cfg.py:90