CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 //
12 
13 #include <cmath>
14 
15 namespace reco {
16 
17  class PreshowerCluster : public CaloCluster {
18  public:
20 
22  PreshowerCluster() : CaloCluster(0., Point(0., 0., 0.)){};
23 
24  ~PreshowerCluster() override;
25 
27  PreshowerCluster(const double E,
28  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 
48  CaloClusterPtr basicCluster() const { return bc_ref_; }
49 
51  //std::vector<DetId> getHitsByDetId() const { return usedHits_; }
52 
53  void setBCRef(const CaloClusterPtr& r) { bc_ref_ = r; }
54 
55  private:
56  int plane_;
57 
60 
62  //std::vector<DetId> usedHits_;
63  };
64 } // namespace reco
65 #endif
int plane() const
Preshower plane.
PreshowerCluster()
default constructor
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:181
void setBCRef(const CaloClusterPtr &r)
DetIds of component RecHits – now inherited from CaloCluster.
CaloClusterPtr basicCluster() const
Associated basic cluster;.
double energy() const
cluster energy
Definition: CaloCluster.h:149
CaloClusterPtr bc_ref_
Associated basic cluster;.
int nhits() const
Number of RecHits the cluster.
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:234
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
bool operator<(const PreshowerCluster &) const
bool operator==(const PreshowerCluster &) const
Comparisons.