CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
reco::PFRecHit Class Reference

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< REPPointREPPointVector
 

Public Member Functions

void addNeighbour (short x, short y, short z, const PFRecHitRef &)
 
void calculatePositionREP ()
 
void clearNeighbours ()
 
unsigned detId () const
 rechit detId More...
 
double energy () const
 rechit energy More...
 
const math::XYZVectorgetAxisXYZ () const
 rechit cell axis x, y, z More...
 
const std::vector< REPPoint > & getCornersREP () const
 
const std::vector
< math::XYZPoint > & 
getCornersXYZ () const
 rechit corners More...
 
PFLayer::Layer layer () const
 rechit layer More...
 
const std::vector< unsigned
short > & 
neighbourInfos ()
 
const PFRecHitRefVectorneighbours () const
 
const PFRecHitRefVectorneighbours4 () const
 
const PFRecHitRefVectorneighbours8 () 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::XYZPointposition () const
 rechit cell centre x, y, z More...
 
const REPPointpositionREP () const
 
double pt2 () const
 rechit momentum transverse to the beam, squared. More...
 
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< REPPointcornersrep_
 rechit cell corners rho/eta/phi More...
 
std::vector< math::XYZPointcornersxyz_
 rechit cell corners 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< CaloRecHitoriginalRecHit_
 
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)
 

Detailed Description

Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClusterAlgo.

Author
Colin Bernet
Date
July 2006

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.

Member Typedef Documentation

typedef ROOT::Math::PositionVector3D<ROOT::Math::CylindricalEta3D<Double32_t> > reco::PFRecHit::REPPoint

Definition at line 39 of file PFRecHit.h.

Definition at line 41 of file PFRecHit.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NONE 

Definition at line 43 of file PFRecHit.h.

43  {
44  NONE=0
45  };

Constructor & Destructor Documentation

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_.

7  :
8  detId_(0),
10  energy_(0.),
11  time_(-1.),
12  position_(math::XYZPoint(0.,0.,0.))
13 {
14 
15  cornersxyz_.reserve( nCorners_ );
16  for(unsigned i=0; i<nCorners_; i++) {
17  cornersxyz_.push_back( position_ );
18  }
20 }
int i
Definition: DBlmapReader.cc:9
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
unsigned detId_
C cell detid - should be detid or index in collection ?
Definition: PFRecHit.h:169
double time_
time
Definition: PFRecHit.h:178
PFLayer::Layer layer_
rechit layer
Definition: PFRecHit.h:172
double energy_
rechit energy
Definition: PFRecHit.h:175
void calculatePositionREP()
Definition: PFRecHit.cc:117
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
static const unsigned nCorners_
number of corners
Definition: PFRecHit.h:205
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 23 of file PFRecHit.cc.

References calculatePositionREP().

28  :
29  detId_(detId),
30  layer_(layer),
31  energy_(energy),
32  time_(-1.),
34  axisxyz_(axisxyz),
35  cornersxyz_(cornersxyz)
36 {
38 }
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
unsigned detId_
C cell detid - should be detid or index in collection ?
Definition: PFRecHit.h:169
unsigned detId() const
rechit detId
Definition: PFRecHit.h:101
double time_
time
Definition: PFRecHit.h:178
PFLayer::Layer layer_
rechit layer
Definition: PFRecHit.h:172
double energy_
rechit energy
Definition: PFRecHit.h:175
PFLayer::Layer layer() const
rechit layer
Definition: PFRecHit.h:104
math::XYZVector axisxyz_
rechit cell axisxyz
Definition: PFRecHit.h:187
const math::XYZPoint & position() const
rechit cell centre x, y, z
Definition: PFRecHit.h:123
void calculatePositionREP()
Definition: PFRecHit.cc:117
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
double energy() const
rechit energy
Definition: PFRecHit.h:107
PFRecHit::PFRecHit ( unsigned  detId,
PFLayer::Layer  layer,
double  energy,
double  posx,
double  posy,
double  posz,
double  axisx,
double  axisy,
double  axisz 
)

Definition at line 40 of file PFRecHit.cc.

References calculatePositionREP(), cornersxyz_, i, nCorners_, and position_.

44  :
45 
46  detId_(detId),
47  layer_(layer),
48  energy_(energy),
49  time_(-1.),
50  position_(posx, posy, posz),
51  axisxyz_(axisx, axisy, axisz) {
52 
53  cornersxyz_.reserve( nCorners_ );
54  for(unsigned i=0; i<nCorners_; i++) {
55  cornersxyz_.push_back( position_ );
56  }
57 
59 
60 }
int i
Definition: DBlmapReader.cc:9
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
unsigned detId_
C cell detid - should be detid or index in collection ?
Definition: PFRecHit.h:169
unsigned detId() const
rechit detId
Definition: PFRecHit.h:101
double time_
time
Definition: PFRecHit.h:178
PFLayer::Layer layer_
rechit layer
Definition: PFRecHit.h:172
double energy_
rechit energy
Definition: PFRecHit.h:175
PFLayer::Layer layer() const
rechit layer
Definition: PFRecHit.h:104
math::XYZVector axisxyz_
rechit cell axisxyz
Definition: PFRecHit.h:187
void calculatePositionREP()
Definition: PFRecHit.cc:117
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
double energy() const
rechit energy
Definition: PFRecHit.h:107
static const unsigned nCorners_
number of corners
Definition: PFRecHit.h:205
PFRecHit::PFRecHit ( const PFRecHit other)

copy

Definition at line 63 of file PFRecHit.cc.

63  :
65  detId_(other.detId_),
66  layer_(other.layer_),
67  energy_(other.energy_),
68  time_(other.time_),
69  position_(other.position_),
71  axisxyz_(other.axisxyz_),
72  cornersxyz_(other.cornersxyz_),
73  cornersrep_(other.cornersrep_),
74  neighbours_(other.neighbours_),
78 {}
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
unsigned detId_
C cell detid - should be detid or index in collection ?
Definition: PFRecHit.h:169
PFRecHitRefVector neighbours4_
Definition: PFRecHit.h:200
double time_
time
Definition: PFRecHit.h:178
PFLayer::Layer layer_
rechit layer
Definition: PFRecHit.h:172
std::vector< unsigned short > neighbourInfos_
Definition: PFRecHit.h:197
double energy_
rechit energy
Definition: PFRecHit.h:175
math::XYZVector axisxyz_
rechit cell axisxyz
Definition: PFRecHit.h:187
edm::RefToBase< CaloRecHit > originalRecHit_
Definition: PFRecHit.h:166
PFRecHitRefVector neighbours8_
Definition: PFRecHit.h:201
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
PFRecHitRefVector neighbours_
indices to existing neighbours (1 common side)
Definition: PFRecHit.h:196
std::vector< REPPoint > cornersrep_
rechit cell corners rho/eta/phi
Definition: PFRecHit.h:193
REPPoint positionrep_
rechit cell centre: rho, eta, phi (transient)
Definition: PFRecHit.h:184
PFRecHit::~PFRecHit ( )
virtual

destructor

Definition at line 82 of file PFRecHit.cc.

83 {}

Member Function Documentation

void PFRecHit::addNeighbour ( short  x,
short  y,
short  z,
const PFRecHitRef ref 
)

Definition at line 129 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().

129  {
130  //bitmask interface to accomodate more advanced naighbour finding [i.e in z as well]
131  //bit 0 side for eta [0 for <=0 , 1 for >0]
132  //bits 1,2,3 : abs(eta) wrt the center
133  //bit 4 side for phi
134  //bits 5,6,7 : abs(phi) wrt the center
135  //bit 8 side for z
136  //bits 9,10,11 : abs(z) wrt the center
137 
138  unsigned short absx = abs(x);
139  unsigned short absy = abs(y);
140  unsigned short absz = abs(z);
141 
142  unsigned short bitmask=0;
143 
144 
145  if (x>0)
146  bitmask = bitmask | 1 ;
147  bitmask = bitmask | (absx << 1);
148  if (y>0)
149  bitmask = bitmask | (1<<4) ;
150  bitmask = bitmask | (absy << 5);
151  if (z>0)
152  bitmask = bitmask | (1<<8) ;
153  bitmask = bitmask | (absz << 9);
154 
155  neighbours_.push_back(ref);
156  neighbourInfos_.push_back(bitmask);
157 
158  if (z==0) {
159  neighbours8_.push_back(ref);
160  //find only the 4 neighbours
161  if (absx+absy==1)
162  neighbours4_.push_back(ref);
163  }
164 }
PFRecHitRefVector neighbours4_
Definition: PFRecHit.h:200
std::vector< unsigned short > neighbourInfos_
Definition: PFRecHit.h:197
float float float z
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
PFRecHitRefVector neighbours8_
Definition: PFRecHit.h:201
PFRecHitRefVector neighbours_
indices to existing neighbours (1 common side)
Definition: PFRecHit.h:196
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
Definition: DDAxes.h:10
void PFRecHit::calculatePositionREP ( )

Definition at line 117 of file PFRecHit.cc.

References cornersrep_, cornersxyz_, reco::tau::disc::Eta(), i, colinearityKinematic::Phi, position_, and positionrep_.

Referenced by PFRecHit().

117  {
118  positionrep_.SetCoordinates( position_.Rho(),
119  position_.Eta(),
120  position_.Phi() );
121  cornersrep_.resize(cornersxyz_.size());
122  for( unsigned i = 0; i < cornersxyz_.size(); ++i ) {
123  cornersrep_[i].SetCoordinates(cornersxyz_[i].Rho(),
124  cornersxyz_[i].Eta(),
125  cornersxyz_[i].Phi());
126  }
127 }
int i
Definition: DBlmapReader.cc:9
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
std::vector< REPPoint > cornersrep_
rechit cell corners rho/eta/phi
Definition: PFRecHit.h:193
REPPoint positionrep_
rechit cell centre: rho, eta, phi (transient)
Definition: PFRecHit.h:184
void reco::PFRecHit::clearNeighbours ( )
inline

Definition at line 75 of file PFRecHit.h.

References edm::RefVector< C, T, F >::clear(), and neighbours_.

75  {
77  }
void clear()
Clear the vector.
Definition: RefVector.h:133
PFRecHitRefVector neighbours_
indices to existing neighbours (1 common side)
Definition: PFRecHit.h:196
unsigned reco::PFRecHit::detId ( ) const
inline
double reco::PFRecHit::energy ( ) const
inline
const math::XYZVector& reco::PFRecHit::getAxisXYZ ( ) const
inline

rechit cell axis x, y, z

Definition at line 129 of file PFRecHit.h.

References axisxyz_.

129 { return axisxyz_; }
math::XYZVector axisxyz_
rechit cell axisxyz
Definition: PFRecHit.h:187
const std::vector<REPPoint>& reco::PFRecHit::getCornersREP ( ) const
inline

Definition at line 135 of file PFRecHit.h.

References cornersrep_.

Referenced by LinkByRecHit::testTrackAndClusterByRecHit().

135 { return cornersrep_; }
std::vector< REPPoint > cornersrep_
rechit cell corners rho/eta/phi
Definition: PFRecHit.h:193
const std::vector< math::XYZPoint >& reco::PFRecHit::getCornersXYZ ( ) const
inline

rechit corners

Definition at line 132 of file PFRecHit.h.

References cornersxyz_.

Referenced by LinkByRecHit::testECALAndPSByRecHit(), and LinkByRecHit::testTrackAndClusterByRecHit().

133  { return cornersxyz_; }
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
PFLayer::Layer reco::PFRecHit::layer ( ) const
inline
const std::vector<unsigned short>& reco::PFRecHit::neighbourInfos ( )
inline

Definition at line 90 of file PFRecHit.h.

References neighbourInfos_.

90  {
91  return neighbourInfos_;
92  }
std::vector< unsigned short > neighbourInfos_
Definition: PFRecHit.h:197
const PFRecHitRefVector& reco::PFRecHit::neighbours ( ) const
inline

Definition at line 86 of file PFRecHit.h.

References neighbours_.

Referenced by LocalMaximumSeedFinder::findSeeds().

86  {
87  return neighbours_;
88  }
PFRecHitRefVector neighbours_
indices to existing neighbours (1 common side)
Definition: PFRecHit.h:196
const PFRecHitRefVector& reco::PFRecHit::neighbours4 ( ) const
inline

Definition at line 79 of file PFRecHit.h.

References neighbours4_.

Referenced by RBXAndHPDCleaner::clean(), SpikeAndDoubleSpikeCleaner::clean(), and LocalMaximumSeedFinder::findSeeds().

79  {
80  return neighbours4_;
81  }
PFRecHitRefVector neighbours4_
Definition: PFRecHit.h:200
const PFRecHitRefVector& reco::PFRecHit::neighbours8 ( ) const
inline

Definition at line 82 of file PFRecHit.h.

References neighbours8_.

Referenced by LocalMaximumSeedFinder::findSeeds().

82  {
83  return neighbours8_;
84  }
PFRecHitRefVector neighbours8_
Definition: PFRecHit.h:201
bool reco::PFRecHit::operator< ( const PFRecHit rhs) const
inline

comparison < operator

Definition at line 149 of file PFRecHit.h.

References energy_.

149 { return (energy_< rhs.energy_); }
double energy_
rechit energy
Definition: PFRecHit.h:175
bool reco::PFRecHit::operator<= ( const PFRecHit rhs) const
inline

comparison <= operator

Definition at line 146 of file PFRecHit.h.

References energy_.

146 { return (energy_<=rhs.energy_); }
double energy_
rechit energy
Definition: PFRecHit.h:175
bool reco::PFRecHit::operator> ( const PFRecHit rhs) const
inline

comparison > operator

Definition at line 143 of file PFRecHit.h.

References energy_.

143 { return (energy_> rhs.energy_); }
double energy_
rechit energy
Definition: PFRecHit.h:175
bool reco::PFRecHit::operator>= ( const PFRecHit rhs) const
inline

comparison >= operator

Definition at line 140 of file PFRecHit.h.

References energy_.

140 { return (energy_>=rhs.energy_); }
double energy_
rechit energy
Definition: PFRecHit.h:175
const edm::RefToBase<CaloRecHit>& reco::PFRecHit::originalRecHit ( ) const
inline

Definition at line 154 of file PFRecHit.h.

References originalRecHit_.

154  {
155  return originalRecHit_;
156  }
edm::RefToBase< CaloRecHit > originalRecHit_
Definition: PFRecHit.h:166
const math::XYZPoint& reco::PFRecHit::position ( ) const
inline

rechit cell centre x, y, z

Definition at line 123 of file PFRecHit.h.

References position_.

Referenced by KDTreeLinkerPSEcal::buildTree(), PFAlgo::checkCleaning(), RBXAndHPDCleaner::clean(), LinkByRecHit::testECALAndPSByRecHit(), and LinkByRecHit::testTrackAndClusterByRecHit().

123 { return position_; }
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
const REPPoint& reco::PFRecHit::positionREP ( ) const
inline

Definition at line 125 of file PFRecHit.h.

References positionrep_.

Referenced by SpikeAndDoubleSpikeCleaner::clean(), LocalMaximumSeedFinder::findSeeds(), and LinkByRecHit::testTrackAndClusterByRecHit().

125 { return positionrep_; }
REPPoint positionrep_
rechit cell centre: rho, eta, phi (transient)
Definition: PFRecHit.h:184
double reco::PFRecHit::pt2 ( ) const
inline

rechit momentum transverse to the beam, squared.

Definition at line 114 of file PFRecHit.h.

References energy_, and position_.

Referenced by LocalMaximumSeedFinder::findSeeds().

114  { return energy_ * energy_ *
115  ( position_.X()*position_.X() +
116  position_.Y()*position_.Y() ) /
117  ( position_.X()*position_.X() +
118  position_.Y()*position_.Y() +
119  position_.Z()*position_.Z()) ; }
double energy_
rechit energy
Definition: PFRecHit.h:175
math::XYZPoint position_
rechit cell centre: x, y, z
Definition: PFRecHit.h:181
void PFRecHit::setCorner ( unsigned  i,
double  posx,
double  posy,
double  posz 
)
private

set position of one of the corners

Definition at line 106 of file PFRecHit.cc.

References cornersrep_, cornersxyz_, reco::tau::disc::Eta(), i, nCorners_, and colinearityKinematic::Phi.

Referenced by setNECorner(), setNWCorner(), setSECorner(), and setSWCorner().

106  {
107  assert( cornersxyz_.size() == nCorners_);
108  assert( i<cornersxyz_.size() );
109 
110  cornersxyz_[i] = math::XYZPoint( posx, posy, posz);
111  cornersrep_[i] = REPPoint( cornersxyz_[i].Rho(),
112  cornersxyz_[i].Eta(),
113  cornersxyz_[i].Phi() );
114 }
int i
Definition: DBlmapReader.cc:9
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< Double32_t > > REPPoint
Definition: PFRecHit.h:39
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::vector< REPPoint > cornersrep_
rechit cell corners rho/eta/phi
Definition: PFRecHit.h:193
static const unsigned nCorners_
number of corners
Definition: PFRecHit.h:205
void reco::PFRecHit::setEnergy ( double  energy)
inline

Definition at line 69 of file PFRecHit.h.

References energy(), and energy_.

Referenced by PFRecHitQTestHCALCalib29::test().

69 { energy_ = energy; }
double energy_
rechit energy
Definition: PFRecHit.h:175
double energy() const
rechit energy
Definition: PFRecHit.h:107
void PFRecHit::setNECorner ( double  posx,
double  posy,
double  posz 
)

Definition at line 101 of file PFRecHit.cc.

References setCorner().

Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().

101  {
102  setCorner(3, posx, posy, posz);
103 }
void setCorner(unsigned i, double posx, double posy, double posz)
set position of one of the corners
Definition: PFRecHit.cc:106
void PFRecHit::setNWCorner ( double  posx,
double  posy,
double  posz 
)

Definition at line 86 of file PFRecHit.cc.

References setCorner().

Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().

86  {
87  setCorner(0, posx, posy, posz);
88 }
void setCorner(unsigned i, double posx, double posy, double posz)
set position of one of the corners
Definition: PFRecHit.cc:106
template<typename T >
void reco::PFRecHit::setOriginalRecHit ( const T rh)
inline

Definition at line 159 of file PFRecHit.h.

References originalRecHit_.

159  {
161  }
edm::RefToBase< CaloRecHit > originalRecHit_
Definition: PFRecHit.h:166
void PFRecHit::setSECorner ( double  posx,
double  posy,
double  posz 
)

Definition at line 96 of file PFRecHit.cc.

References setCorner().

Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().

96  {
97  setCorner(2, posx, posy, posz);
98 }
void setCorner(unsigned i, double posx, double posy, double posz)
set position of one of the corners
Definition: PFRecHit.cc:106
void PFRecHit::setSWCorner ( double  posx,
double  posy,
double  posz 
)

Definition at line 91 of file PFRecHit.cc.

References setCorner().

Referenced by PFCTRecHitProducer::createHcalRecHit(), and PFPSRecHitCreator::importRecHits().

91  {
92  setCorner(1, posx, posy, posz);
93 }
void setCorner(unsigned i, double posx, double posy, double posz)
set position of one of the corners
Definition: PFRecHit.cc:106
void reco::PFRecHit::setTime ( double  time)
inline

Definition at line 74 of file PFRecHit.h.

References time(), and time_.

Referenced by PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), and PFCTRecHitProducer::produce().

74 { time_ = time; }
double time_
time
Definition: PFRecHit.h:178
double time() const
timing for cleaned hits
Definition: PFRecHit.h:111
void PFRecHit::size ( double &  deta,
double &  dphi 
) const

Definition at line 166 of file PFRecHit.cc.

References cornersxyz_, eta(), and phi.

166  {
167 
168  double minphi=9999;
169  double maxphi=-9999;
170  double mineta=9999;
171  double maxeta=-9999;
172  for ( unsigned ic=0; ic<cornersxyz_.size(); ++ic ) {
173  double eta = cornersxyz_[ic].Eta();
174  double phi = cornersxyz_[ic].Phi();
175 
176  if(phi>maxphi) maxphi=phi;
177  if(phi<minphi) minphi=phi;
178  if(eta>maxeta) maxeta=eta;
179  if(eta<mineta) mineta=eta;
180  }
181 
182  deta = maxeta - mineta;
183  dphi = maxphi - minphi;
184 }
std::vector< math::XYZPoint > cornersxyz_
rechit cell corners
Definition: PFRecHit.h:190
T eta() const
Definition: DDAxes.h:10
double reco::PFRecHit::time ( ) const
inline

Friends And Related Function Documentation

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

Member Data Documentation

math::XYZVector reco::PFRecHit::axisxyz_
private

rechit cell axisxyz

Definition at line 187 of file PFRecHit.h.

Referenced by getAxisXYZ().

std::vector< REPPoint > reco::PFRecHit::cornersrep_
private

rechit cell corners rho/eta/phi

Definition at line 193 of file PFRecHit.h.

Referenced by calculatePositionREP(), getCornersREP(), and setCorner().

std::vector< math::XYZPoint > reco::PFRecHit::cornersxyz_
private

rechit cell corners

Definition at line 190 of file PFRecHit.h.

Referenced by calculatePositionREP(), getCornersXYZ(), PFRecHit(), setCorner(), and size().

unsigned reco::PFRecHit::detId_
private

C cell detid - should be detid or index in collection ?

Definition at line 169 of file PFRecHit.h.

Referenced by detId().

double reco::PFRecHit::energy_
private

rechit energy

Definition at line 175 of file PFRecHit.h.

Referenced by energy(), operator<(), operator<=(), operator>(), operator>=(), pt2(), and setEnergy().

PFLayer::Layer reco::PFRecHit::layer_
private

rechit layer

Definition at line 172 of file PFRecHit.h.

Referenced by layer().

const unsigned PFRecHit::nCorners_ = 4
staticprivate

number of corners

Definition at line 205 of file PFRecHit.h.

Referenced by PFRecHit(), and setCorner().

std::vector< unsigned short > reco::PFRecHit::neighbourInfos_
private

Definition at line 197 of file PFRecHit.h.

Referenced by addNeighbour(), and neighbourInfos().

PFRecHitRefVector reco::PFRecHit::neighbours4_
private

Definition at line 200 of file PFRecHit.h.

Referenced by addNeighbour(), and neighbours4().

PFRecHitRefVector reco::PFRecHit::neighbours8_
private

Definition at line 201 of file PFRecHit.h.

Referenced by addNeighbour(), and neighbours8().

PFRecHitRefVector reco::PFRecHit::neighbours_
private

indices to existing neighbours (1 common side)

Definition at line 196 of file PFRecHit.h.

Referenced by addNeighbour(), clearNeighbours(), and neighbours().

edm::RefToBase<CaloRecHit> reco::PFRecHit::originalRecHit_
private

Definition at line 166 of file PFRecHit.h.

Referenced by originalRecHit(), and setOriginalRecHit().

math::XYZPoint reco::PFRecHit::position_
private

rechit cell centre: x, y, z

Definition at line 181 of file PFRecHit.h.

Referenced by calculatePositionREP(), PFRecHit(), position(), and pt2().

REPPoint reco::PFRecHit::positionrep_
private

rechit cell centre: rho, eta, phi (transient)

Definition at line 184 of file PFRecHit.h.

Referenced by calculatePositionREP(), and positionREP().

double reco::PFRecHit::time_
private

time

Definition at line 178 of file PFRecHit.h.

Referenced by setTime(), and time().