Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo. More...
#include <PFRecHit.h>
Public Types | |
enum | { NONE =0 } |
typedef ROOT::Math::PositionVector3D < ROOT::Math::CylindricalEta3D < Double32_t > > | REPPoint |
typedef std::vector< REPPoint > | REPPointVector |
Public Member Functions | |
void | addNeighbour (short x, short y, short z, const PFRecHitRef &) |
void | calculatePositionREP () |
void | clearNeighbours () |
int | depth () const |
depth for segemntation More... | |
unsigned | detId () const |
rechit detId More... | |
double | energy () const |
rechit energy More... | |
const math::XYZVector & | getAxisXYZ () const |
rechit cell axis x, y, z More... | |
const std::vector< REPPoint > & | getCornersREP () const |
const std::vector < math::XYZPoint > & | getCornersXYZ () const |
rechit corners More... | |
const PFRecHitRef | getNeighbour (short x, short y, short z) |
PFLayer::Layer | layer () const |
rechit layer More... | |
const std::vector< unsigned short > & | neighbourInfos () |
const PFRecHitRefVector & | neighbours () const |
const PFRecHitRefVector & | neighbours4 () const |
const PFRecHitRefVector & | neighbours8 () const |
bool | operator< (const PFRecHit &rhs) const |
comparison < operator More... | |
bool | operator<= (const PFRecHit &rhs) const |
comparison <= operator More... | |
bool | operator> (const PFRecHit &rhs) const |
comparison > operator More... | |
bool | operator>= (const PFRecHit &rhs) const |
comparison >= operator More... | |
const edm::RefToBase < CaloRecHit > & | originalRecHit () const |
PFRecHit () | |
default constructor. Sets energy and position to zero More... | |
PFRecHit (unsigned detId, PFLayer::Layer layer, double energy, const math::XYZPoint &posxyz, const math::XYZVector &axisxyz, const std::vector< math::XYZPoint > &cornersxyz) | |
constructor from values More... | |
PFRecHit (unsigned detId, PFLayer::Layer layer, double energy, double posx, double posy, double posz, double axisx, double axisy, double axisz) | |
PFRecHit (const PFRecHit &other) | |
copy More... | |
const math::XYZPoint & | position () const |
rechit cell centre x, y, z More... | |
const REPPoint & | positionREP () const |
double | pt2 () const |
rechit momentum transverse to the beam, squared. More... | |
void | setDepth (int depth) |
void | setEnergy (double energy) |
void | setNECorner (double posx, double posy, double posz) |
void | setNWCorner (double posx, double posy, double posz) |
template<typename T > | |
void | setOriginalRecHit (const T &rh) |
void | setSECorner (double posx, double posy, double posz) |
void | setSWCorner (double posx, double posy, double posz) |
void | setTime (double time) |
void | size (double &deta, double &dphi) const |
double | time () const |
timing for cleaned hits More... | |
virtual | ~PFRecHit () |
destructor More... | |
Private Member Functions | |
void | setCorner (unsigned i, double posx, double posy, double posz) |
set position of one of the corners More... | |
Private Attributes | |
math::XYZVector | axisxyz_ |
rechit cell axisxyz More... | |
std::vector< REPPoint > | cornersrep_ |
rechit cell corners rho/eta/phi More... | |
std::vector< math::XYZPoint > | cornersxyz_ |
rechit cell corners More... | |
int | depth_ |
depth More... | |
unsigned | detId_ |
C cell detid - should be detid or index in collection ? More... | |
double | energy_ |
rechit energy More... | |
PFLayer::Layer | layer_ |
rechit layer More... | |
std::vector< unsigned short > | neighbourInfos_ |
PFRecHitRefVector | neighbours4_ |
PFRecHitRefVector | neighbours8_ |
PFRecHitRefVector | neighbours_ |
indices to existing neighbours (1 common side) More... | |
edm::RefToBase< CaloRecHit > | originalRecHit_ |
math::XYZPoint | position_ |
rechit cell centre: x, y, z More... | |
REPPoint | positionrep_ |
rechit cell centre: rho, eta, phi (transient) More... | |
double | time_ |
time More... | |
Static Private Attributes | |
static const unsigned | nCorners_ = 4 |
number of corners More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const reco::PFRecHit &hit) |
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo.
Feb 2014 [Michalis: 8 years later!Modifying the class to be able to generalize the neighbours for 3D calorimeters ]
Definition at line 35 of file PFRecHit.h.
typedef ROOT::Math::PositionVector3D<ROOT::Math::CylindricalEta3D<Double32_t> > reco::PFRecHit::REPPoint |
Definition at line 39 of file PFRecHit.h.
typedef std::vector<REPPoint> reco::PFRecHit::REPPointVector |
Definition at line 41 of file PFRecHit.h.
anonymous enum |
Enumerator | |
---|---|
NONE |
Definition at line 43 of file PFRecHit.h.
PFRecHit::PFRecHit | ( | ) |
default constructor. Sets energy and position to zero
Definition at line 7 of file PFRecHit.cc.
References calculatePositionREP(), cornersxyz_, i, nCorners_, and position_.
PFRecHit::PFRecHit | ( | unsigned | detId, |
PFLayer::Layer | layer, | ||
double | energy, | ||
const math::XYZPoint & | posxyz, | ||
const math::XYZVector & | axisxyz, | ||
const std::vector< math::XYZPoint > & | cornersxyz | ||
) |
constructor from values
Definition at line 24 of file PFRecHit.cc.
References calculatePositionREP().
PFRecHit::PFRecHit | ( | unsigned | detId, |
PFLayer::Layer | layer, | ||
double | energy, | ||
double | posx, | ||
double | posy, | ||
double | posz, | ||
double | axisx, | ||
double | axisy, | ||
double | axisz | ||
) |
Definition at line 42 of file PFRecHit.cc.
References calculatePositionREP(), cornersxyz_, i, nCorners_, and position_.
PFRecHit::PFRecHit | ( | const PFRecHit & | other | ) |
copy
Definition at line 66 of file PFRecHit.cc.
|
virtual |
void PFRecHit::addNeighbour | ( | short | x, |
short | y, | ||
short | z, | ||
const PFRecHitRef & | ref | ||
) |
Definition at line 133 of file PFRecHit.cc.
References funct::abs(), neighbourInfos_, neighbours4_, neighbours8_, neighbours_, and edm::RefVector< C, T, F >::push_back().
Referenced by PFRecHitNavigatorBase::associateNeighbour(), and PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour().
void PFRecHit::calculatePositionREP | ( | ) |
Definition at line 121 of file PFRecHit.cc.
References cornersrep_, cornersxyz_, reco::tau::disc::Eta(), i, colinearityKinematic::Phi, position_, and positionrep_.
Referenced by PFRecHit().
|
inline |
Definition at line 77 of file PFRecHit.h.
References edm::RefVector< C, T, F >::clear(), and neighbours_.
|
inline |
depth for segemntation
Definition at line 116 of file PFRecHit.h.
References depth_.
Referenced by setDepth().
|
inline |
rechit detId
Definition at line 103 of file PFRecHit.h.
References detId_.
Referenced by PFRecHitCaloNavigator< CaloTowerDetId, CaloTowerTopology >::associateNeighbours(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbours(), PFECALHashNavigator::associateNeighbours(), RBXAndHPDCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), PFHFRecHitCreator::DetIDSorter::operator()(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), and PFRecHitQTestHCALCalib29::test().
|
inline |
rechit energy
Definition at line 109 of file PFRecHit.h.
References energy_.
Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), LocalMaximumSeedFinder::findSeeds(), PFRecHitQTestThreshold::pass(), FWPFCandidateWithHitsProxyBuilder::scaleProduct(), setEnergy(), PFRecHitQTestHOThreshold::test(), PFRecHitQTestHCALCalib29::test(), and LinkByRecHit::testTrackAndClusterByRecHit().
|
inline |
|
inline |
Definition at line 140 of file PFRecHit.h.
References cornersrep_.
Referenced by LinkByRecHit::testTrackAndClusterByRecHit().
|
inline |
rechit corners
Definition at line 137 of file PFRecHit.h.
References cornersxyz_.
Referenced by LinkByRecHit::testECALAndPSByRecHit(), and LinkByRecHit::testTrackAndClusterByRecHit().
const PFRecHitRef PFRecHit::getNeighbour | ( | short | x, |
short | y, | ||
short | z | ||
) |
Definition at line 171 of file PFRecHit.cc.
References funct::abs(), i, neighbourInfos_, and neighbours_.
|
inline |
rechit layer
Definition at line 106 of file PFRecHit.h.
References layer_.
Referenced by PFRecHitDualNavigator< D1, barrel, D2, endcap >::associateNeighbours(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), LocalMaximumSeedFinder::findSeeds(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
inline |
Definition at line 92 of file PFRecHit.h.
References neighbourInfos_.
|
inline |
Definition at line 88 of file PFRecHit.h.
References neighbours_.
Referenced by LocalMaximumSeedFinder::findSeeds().
|
inline |
Definition at line 81 of file PFRecHit.h.
References neighbours4_.
Referenced by RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), and LocalMaximumSeedFinder::findSeeds().
|
inline |
Definition at line 84 of file PFRecHit.h.
References neighbours8_.
Referenced by LocalMaximumSeedFinder::findSeeds().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 159 of file PFRecHit.h.
References originalRecHit_.
|
inline |
rechit cell centre x, y, z
Definition at line 128 of file PFRecHit.h.
References position_.
Referenced by KDTreeLinkerPSEcal::buildTree(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), LinkByRecHit::testECALAndPSByRecHit(), and LinkByRecHit::testTrackAndClusterByRecHit().
|
inline |
Definition at line 130 of file PFRecHit.h.
References positionrep_.
Referenced by SpikeAndDoubleSpikeCleaner::clean(), LocalMaximumSeedFinder::findSeeds(), and LinkByRecHit::testTrackAndClusterByRecHit().
|
inline |
rechit momentum transverse to the beam, squared.
Definition at line 119 of file PFRecHit.h.
References energy_, and position_.
Referenced by LocalMaximumSeedFinder::findSeeds().
|
private |
set position of one of the corners
Definition at line 110 of file PFRecHit.cc.
References cornersrep_, cornersxyz_, reco::tau::disc::Eta(), i, nCorners_, and colinearityKinematic::Phi.
Referenced by setNECorner(), setNWCorner(), setSECorner(), and setSWCorner().
|
inline |
Definition at line 76 of file PFRecHit.h.
References depth(), and depth_.
Referenced by PFPSRecHitCreator::importRecHits(), and PFHBHERecHitCreatorMaxSample::importRecHits().
|
inline |
Definition at line 69 of file PFRecHit.h.
References energy(), and energy_.
Referenced by PFHFRecHitCreator::importRecHits(), and PFRecHitQTestHCALCalib29::test().
void PFRecHit::setNECorner | ( | double | posx, |
double | posy, | ||
double | posz | ||
) |
Definition at line 105 of file PFRecHit.cc.
References setCorner().
Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().
void PFRecHit::setNWCorner | ( | double | posx, |
double | posy, | ||
double | posz | ||
) |
Definition at line 90 of file PFRecHit.cc.
References setCorner().
Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().
|
inline |
Definition at line 164 of file PFRecHit.h.
References originalRecHit_.
void PFRecHit::setSECorner | ( | double | posx, |
double | posy, | ||
double | posz | ||
) |
Definition at line 100 of file PFRecHit.cc.
References setCorner().
Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().
void PFRecHit::setSWCorner | ( | double | posx, |
double | posy, | ||
double | posz | ||
) |
Definition at line 95 of file PFRecHit.cc.
References setCorner().
Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().
|
inline |
Definition at line 75 of file PFRecHit.h.
Referenced by PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), PFPSRecHitCreator::importRecHits(), PFHFRecHitCreator::importRecHits(), and PFCTRecHitProducer::produce().
void PFRecHit::size | ( | double & | deta, |
double & | dphi | ||
) | const |
Definition at line 196 of file PFRecHit.cc.
References cornersxyz_, eta(), and phi.
|
inline |
timing for cleaned hits
Definition at line 113 of file PFRecHit.h.
References time_.
Referenced by PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), PFAlgo::checkCleaning(), PFlow2DClusterizerWithTime::clusterTimeResolution(), PFlow2DClusterizerWithTime::clusterTimeResolutionFromSeed(), and setTime().
|
friend |
|
private |
|
private |
rechit cell corners rho/eta/phi
Definition at line 202 of file PFRecHit.h.
Referenced by calculatePositionREP(), getCornersREP(), and setCorner().
|
private |
rechit cell corners
Definition at line 199 of file PFRecHit.h.
Referenced by calculatePositionREP(), getCornersXYZ(), PFRecHit(), setCorner(), and size().
|
private |
|
private |
C cell detid - should be detid or index in collection ?
Definition at line 174 of file PFRecHit.h.
Referenced by detId().
|
private |
rechit energy
Definition at line 180 of file PFRecHit.h.
Referenced by energy(), operator<(), operator<=(), operator>(), operator>=(), pt2(), and setEnergy().
|
private |
|
staticprivate |
number of corners
Definition at line 214 of file PFRecHit.h.
Referenced by PFRecHit(), and setCorner().
|
private |
Definition at line 206 of file PFRecHit.h.
Referenced by addNeighbour(), getNeighbour(), and neighbourInfos().
|
private |
Definition at line 209 of file PFRecHit.h.
Referenced by addNeighbour(), and neighbours4().
|
private |
Definition at line 210 of file PFRecHit.h.
Referenced by addNeighbour(), and neighbours8().
|
private |
indices to existing neighbours (1 common side)
Definition at line 205 of file PFRecHit.h.
Referenced by addNeighbour(), clearNeighbours(), getNeighbour(), and neighbours().
|
private |
Definition at line 171 of file PFRecHit.h.
Referenced by originalRecHit(), and setOriginalRecHit().
|
private |
rechit cell centre: x, y, z
Definition at line 190 of file PFRecHit.h.
Referenced by calculatePositionREP(), PFRecHit(), position(), and pt2().
|
private |
rechit cell centre: rho, eta, phi (transient)
Definition at line 193 of file PFRecHit.h.
Referenced by calculatePositionREP(), and positionREP().
|
private |