CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PreshowerCluster.h
Go to the documentation of this file.
1 #ifndef DataFormats_EgammaReco_PreshowerCluster_h
2 #define DataFormats_EgammaReco_PreshowerCluster_h
3 /*
4  * Preshower cluster class
5  *
6  * \authors Dmirty Bandurin (KSU), Ted Kolberg (ND)
7  */
8 // $Id: PreshowerCluster.h,v 1.19 2009/03/25 16:09:47 ferriff Exp $
9 //
12 
13 #include <cmath>
14 
15 namespace reco {
16 
17  class PreshowerCluster : public CaloCluster {
18  public:
19 
21 
23  PreshowerCluster() : CaloCluster(0., Point(0.,0.,0.)) { };
24 
25  virtual ~PreshowerCluster();
26 
28  PreshowerCluster(const double E, const Point& pos,
29  const std::vector< std::pair<DetId, float> > usedHits,
30  const int plane);
31 
34 
36  int nhits() const {return hitsAndFractions_.size();}
37 
39  int plane() const { return plane_; }
40 
41  double et() const { return energy()/cosh(eta()); }
42 
44  bool operator==(const PreshowerCluster&) const;
45  bool operator<(const PreshowerCluster&) const;
46 
49 
51  //std::vector<DetId> getHitsByDetId() const { return usedHits_; }
52 
53  void setBCRef( const CaloClusterPtr & r ) { bc_ref_ = r; }
54 
55  private:
56 
57  int plane_;
58 
61 
63  //std::vector<DetId> usedHits_;
64  };
65 }
66 #endif
int plane() const
Preshower plane.
PreshowerCluster()
default constructor
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:213
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:160
void setBCRef(const CaloClusterPtr &r)
DetIds of component RecHits – now inherited from CaloCluster.
math::XYZPoint Point
CaloClusterPtr basicCluster() const
Associated basic cluster;.
double energy() const
cluster energy
Definition: CaloCluster.h:120
CaloClusterPtr bc_ref_
Associated basic cluster;.
int nhits() const
Number of RecHits the cluster.
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
bool operator<(const PreshowerCluster &) const
bool operator==(const PreshowerCluster &) const
Comparisons.