CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
14 public:
15 
17  virtual ~SimG4HcalHitCluster();
18 
19  double e() const {return ec;}
20  double eta() const {return etac;}
21  double phi() const {return phic;}
22  std::vector<CaloHit> * getHits() {return &hitsc;}
23 
24  bool operator<(const SimG4HcalHitCluster& cluster) const;
26 
27  double collectEcalEnergyR();
28 
29 private:
30 
31  double my_cosh(float eta) {return 0.5 * (exp(eta) + exp(-eta));}
32  double my_sinh(float eta) {return 0.5 * (exp(eta) - exp(-eta));}
33 
34  double ec, etac, phic;
35  std::vector<CaloHit> hitsc;
36 
37 };
38 
39 std::ostream& operator<<(std::ostream&, const SimG4HcalHitCluster&);
40 
41 #endif
std::vector< CaloHit > * getHits()
std::vector< CaloHit > hitsc
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
SimG4HcalHitCluster & operator+=(const CaloHit &hit)
double my_sinh(float eta)
bool operator<(const SimG4HcalHitCluster &cluster) const
double my_cosh(float eta)