CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
SimG4HcalHitCluster & operator+=(const CaloHit &hit)
double my_sinh(float eta)
bool operator<(const SimG4HcalHitCluster &cluster) const
double my_cosh(float eta)