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 //
11 
12 #include <cmath>
13 
14 namespace reco {
15 
16  class PreshowerCluster : public CaloCluster {
17  public:
18 
20 
22  PreshowerCluster() : CaloCluster(0., Point(0.,0.,0.)) { };
23 
24  virtual ~PreshowerCluster();
25 
27  PreshowerCluster(const double E, const Point& pos,
28  const std::vector< std::pair<DetId, float> >& usedHits,
29  const int plane);
30 
33 
35  int nhits() const {return hitsAndFractions_.size();}
36 
38  int plane() const { return plane_; }
39 
40  double et() const { return energy()/cosh(eta()); }
41 
43  bool operator==(const PreshowerCluster&) const;
44  bool operator<(const PreshowerCluster&) const;
45 
48 
50  //std::vector<DetId> getHitsByDetId() const { return usedHits_; }
51 
52  void setBCRef( const CaloClusterPtr & r ) { bc_ref_ = r; }
53 
54  private:
55 
56  int plane_;
57 
60 
62  //std::vector<DetId> usedHits_;
63  };
64 }
65 #endif
int plane() const
Preshower plane.
PreshowerCluster()
default constructor
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:218
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:163
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:121
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:12
bool operator<(const PreshowerCluster &) const
bool operator==(const PreshowerCluster &) const
Comparisons.