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
reco::PreshowerCluster::operator==
bool operator==(const PreshowerCluster &) const
Comparisons.
Definition: PreshowerCluster.cc:30
pos
Definition: PixelAliasList.h:18
reco::PreshowerCluster
Definition: PreshowerCluster.h:17
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::PreshowerCluster::PreshowerCluster
PreshowerCluster()
default constructor
Definition: PreshowerCluster.h:22
reco::PreshowerCluster::basicCluster
CaloClusterPtr basicCluster() const
Associated basic cluster;.
Definition: PreshowerCluster.h:48
reco::PreshowerCluster::operator<
bool operator<(const PreshowerCluster &) const
Definition: PreshowerCluster.cc:40
reco::CaloCluster::hitsAndFractions_
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:234
reco::CaloCluster
Definition: CaloCluster.h:31
CaloClusterFwd.h
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
reco::PreshowerCluster::bc_ref_
CaloClusterPtr bc_ref_
Associated basic cluster;.
Definition: PreshowerCluster.h:59
reco::CaloCluster::eta
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:181
reco::PreshowerCluster::Point
math::XYZPoint Point
Definition: PreshowerCluster.h:19
edm::Ptr< CaloCluster >
alignCSCRings.r
r
Definition: alignCSCRings.py:93
reco::PreshowerCluster::et
double et() const
Definition: PreshowerCluster.h:41
reco::PreshowerCluster::plane_
int plane_
Definition: PreshowerCluster.h:56
Point3D.h
reco::PreshowerCluster::nhits
int nhits() const
Number of RecHits the cluster.
Definition: PreshowerCluster.h:36
reco::PreshowerCluster::plane
int plane() const
Preshower plane.
Definition: PreshowerCluster.h:39
PreshowerClusterFwd.h
reco::PreshowerCluster::setBCRef
void setBCRef(const CaloClusterPtr &r)
DetIds of component RecHits – now inherited from CaloCluster.
Definition: PreshowerCluster.h:53
reco::CaloCluster::energy
double energy() const
cluster energy
Definition: CaloCluster.h:149
reco::PreshowerCluster::~PreshowerCluster
~PreshowerCluster() override
Definition: PreshowerCluster.cc:7