Go to the documentation of this file.
3 #include "Math/GenVector/etaMax.h"
12 posrep_(position_.Rho(), position_.Eta(), position_.
Phi()),
46 return isHadron ? corrA : corrA * (corrB +
log(
energy));
64 CaloCluster::operator=(
other);
79 const std::vector<reco::PFRecHitFraction>& fracs = cluster.
recHitFractions();
82 <<
", layer: " << cluster.
layer() <<
"\tE = " << cluster.
energy() <<
"\tXYZ: " <<
pos.X() <<
"," <<
pos.Y() <<
","
84 <<
"\tREP: " << posrep.Rho() <<
"," << posrep.Eta() <<
"," << posrep.Phi() <<
" | " << fracs.size() <<
" rechits";
86 for (
unsigned i = 0;
i < fracs.size();
i++) {
88 if (!fracs[
i].recHitRef().isAvailable())
91 out << fracs[
i] <<
", ";
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
PFLayer::Layer layer() const
cluster layer, see PFLayer.h in this directory
static reco::CaloID toCaloID(Layer layer)
void setLayer(PFLayer::Layer layer)
set layer
const std::vector< reco::PFRecHitFraction > & recHitFractions() const
vector of rechit fractions
std::vector< std::pair< DetId, float > > hitsAndFractions_
PFLayer::Layer layer_
transient layer
math::XYZPoint position_
cluster centroid position
double energy() const
cluster energy
CaloID caloID_
bitmask for detector information
static const constexpr double depthCorAp_
PFCluster & operator=(const PFCluster &)
void reset()
resets the CaloCluster (position, energy, hitsAndFractions)
void resetHitsAndFractions()
reset only hits and fractions
const REPPoint & positionREP() const
cluster position: rho, eta, phi
std::vector< reco::PFRecHitFraction > rechits_
vector of rechit fractions (transient)
constexpr std::array< uint8_t, layerIndexSize > layer
static const constexpr double depthCorB_
static const constexpr double depthCorA_
depth corrections
void reset()
resets clusters parameters
XYZPointD XYZPoint
point in space with cartesian internal representation
std::string printHitAndFraction(unsigned i) const
print hitAndFraction
void addHitAndFraction(DetId id, float fraction)
static double getDepthCorrection(double energy, bool isBelowPS=false, bool isHadron=false)
std::ostream & operator<<(std::ostream &, BeamSpot beam)
layer definition for PFRecHit and PFCluster
static const constexpr double depthCorBp_
const math::XYZPoint & position() const
cluster centroid position
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
float time_
Michalis: add timing and depth information.
double energy_
cluster energy
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
const CaloID & caloID() const
REPPoint posrep_
cluster position: rho, eta, phi (transient)
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
static const char layer_[]
static Layer fromCaloID(const reco::CaloID &id)