CMS 3D CMS Logo

Classes | Namespaces | Functions
PFRecHit.h File Reference
#include <vector>
#include <map>
#include <memory>
#include <iostream>
#include "DataFormats/Math/interface/Point3D.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "Math/GenVector/PositionVector3D.h"
#include "DataFormats/ParticleFlowReco/interface/PFLayer.h"
#include "DataFormats/ParticleFlowReco/interface/PFRecHitFwd.h"
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"
#include "DataFormats/Common/interface/RefToBase.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"

Go to the source code of this file.

Classes

struct  reco::PFRecHit::Neighbours
 
class  reco::PFRecHit
 Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo. More...
 

Namespaces

 reco
 fixed size matrix
 

Functions

std::ostream & operator<< (std::ostream &out, const reco::PFRecHit &hit)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const reco::PFRecHit hit 
)

Definition at line 72 of file PFRecHit.cc.

References MillePedeFileConverter_cfg::out.

72  {
73  if (!out)
74  return out;
75 
76  out << "hit id:" << hit.detId() << " l:" << hit.layer() << " E:" << hit.energy() << " t:" << hit.time();
77  if (hit.hasCaloCell()) {
78  auto const& pos = hit.positionREP();
79  out << " rep:" << pos.rho() << "," << pos.eta() << "," << pos.phi() << "|";
80  }
81  return out;
82 }