CMS 3D CMS Logo

SimG4HcalHitCluster.h
Go to the documentation of this file.
1 // File: SimG4HcalHitCluster.h
3 // Cluster class for analysis in SimG4HcalValidation
5 #ifndef Validation_HcalHits_SimG4HcalHitCluster_H
6 #define Validation_HcalHits_SimG4HcalHitCluster_H
7 
9 #include <iostream>
10 #include <vector>
11 
13 public:
15  virtual ~SimG4HcalHitCluster();
16 
17  double e() const { return ec; }
18  double eta() const { return etac; }
19  double phi() const { return phic; }
20  std::vector<CaloHit> *getHits() { return &hitsc; }
21 
22  bool operator<(const SimG4HcalHitCluster &cluster) const;
24 
25  double collectEcalEnergyR();
26 
27 private:
28  double my_cosh(float eta) { return 0.5 * (exp(eta) + exp(-eta)); }
29  double my_sinh(float eta) { return 0.5 * (exp(eta) - exp(-eta)); }
30 
31  double ec, etac, phic;
32  std::vector<CaloHit> hitsc;
33 };
34 
35 std::ostream &operator<<(std::ostream &, const SimG4HcalHitCluster &);
36 
37 #endif
std::vector< CaloHit > * getHits()
std::vector< CaloHit > hitsc
SimG4HcalHitCluster & operator+=(const CaloHit &hit)
double my_sinh(float eta)
bool operator<(const SimG4HcalHitCluster &cluster) const
std::ostream & operator<<(std::ostream &, const SimG4HcalHitCluster &)
double my_cosh(float eta)