8 int PFCluster::depthCorMode_ = 0;
9 double PFCluster::depthCorA_ = 0.89;
10 double PFCluster::depthCorB_ = 7.3;
11 double PFCluster::depthCorAp_ = 0.89;
12 double PFCluster::depthCorBp_ = 4.0;
17 double x,
double y,
double z ) :
22 posrep_( position_.Rho(), position_.
Eta(), position_.
Phi() ),
61 depth = corrA*(corrB +
log(energy));
90 CaloCluster::operator=(other);
108 const std::vector< reco::PFRecHitFraction >& fracs =
112 <<
", layer: "<<cluster.
layer()
113 <<
"\tE = "<<cluster.
energy()
115 <<pos.X()<<
","<<pos.Y()<<
","<<pos.Z()<<
" | "
117 <<posrep.Rho()<<
","<<posrep.Eta()<<
","<<posrep.Phi()<<
" | "
118 <<fracs.size()<<
" rechits";
120 for(
unsigned i=0;
i<fracs.size();
i++) {
122 if( !fracs[
i].recHitRef().isAvailable() )
PFLayer::Layer layer() const
cluster layer, see PFLayer.h in this directory
void setLayer(PFLayer::Layer layer)
set layer
const math::XYZPoint & position() const
cluster centroid position
math::XYZPoint position_
cluster centroid position
CaloID caloID_
bitmask for detector information
void addHitAndFraction(DetId id, float fraction)
double energy_
cluster energy
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
std::vector< reco::PFRecHitFraction > rechits_
vector of rechit fractions (transient)
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< Double32_t > > REPPoint
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
PFCluster & operator=(const PFCluster &)
std::ostream & operator<<(std::ostream &, BeamSpot beam)
const CaloID & caloID() const
static double depthCorAp_
const REPPoint & positionREP() const
cluster position: rho, eta, phi
layer definition for PFRecHit and PFCluster
void reset()
resets clusters parameters
static double depthCorBp_
double energy() const
cluster energy
std::string printHitAndFraction(unsigned i) const
print hitAndFraction
static reco::CaloID toCaloID(Layer layer)
static double getDepthCorrection(double energy, bool isBelowPS=false, bool isHadron=false)
REPPoint posrep_
cluster position: rho, eta, phi (transient)
XYZPointD XYZPoint
point in space with cartesian internal representation
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
int color_
color (transient)
static Layer fromCaloID(const reco::CaloID &id)
const std::vector< reco::PFRecHitFraction > & recHitFractions() const
vector of rechit fractions
const PFRecHitRef & recHitRef() const
copy
void reset()
resets the CaloCluster (position, energy, hitsAndFractions)