CMS 3D CMS Logo

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
PreshowerCluster()
default constructor
bool operator==(const PreshowerCluster &) const
Comparisons.
int plane() const
Preshower plane.
int nhits() const
Number of RecHits the cluster.
void setBCRef(const CaloClusterPtr &r)
DetIds of component RecHits – now inherited from CaloCluster.
bool operator<(const PreshowerCluster &) const
CaloClusterPtr bc_ref_
Associated basic cluster;.
CaloClusterPtr basicCluster() const
Associated basic cluster;.
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:234
double energy() const
cluster energy
Definition: CaloCluster.h:149
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
fixed size matrix
Structure Point Contains parameters of Gaussian fits to DMRs.
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:181