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