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
SimG4HcalHitCluster::hitsc
std::vector< CaloHit > hitsc
Definition: SimG4HcalHitCluster.h:32
SimG4HcalHitCluster::collectEcalEnergyR
double collectEcalEnergyR()
Definition: SimG4HcalHitCluster.cc:56
SimG4HcalHitCluster::operator+=
SimG4HcalHitCluster & operator+=(const CaloHit &hit)
Definition: SimG4HcalHitCluster.cc:17
SimG4HcalHitCluster::eta
double eta() const
Definition: SimG4HcalHitCluster.h:18
SimG4HcalHitCluster::SimG4HcalHitCluster
SimG4HcalHitCluster()
Definition: SimG4HcalHitCluster.cc:9
SimG4HcalHitCluster::phi
double phi() const
Definition: SimG4HcalHitCluster.h:19
SimG4HcalHitCluster::operator<
bool operator<(const SimG4HcalHitCluster &cluster) const
Definition: SimG4HcalHitCluster.cc:13
SimG4HcalHitCluster::e
double e() const
Definition: SimG4HcalHitCluster.h:17
operator<<
std::ostream & operator<<(std::ostream &, const SimG4HcalHitCluster &)
Definition: SimG4HcalHitCluster.cc:68
SimG4HcalHitCluster::my_sinh
double my_sinh(float eta)
Definition: SimG4HcalHitCluster.h:29
CaloHit
Definition: CaloHit.h:12
SimG4HcalHitCluster::ec
double ec
Definition: SimG4HcalHitCluster.h:31
SimG4HcalHitCluster::~SimG4HcalHitCluster
virtual ~SimG4HcalHitCluster()
Definition: SimG4HcalHitCluster.cc:11
SimG4HcalHitCluster::my_cosh
double my_cosh(float eta)
Definition: SimG4HcalHitCluster.h:28
SimG4HcalHitCluster::etac
double etac
Definition: SimG4HcalHitCluster.h:31
SimG4HcalHitCluster
Definition: SimG4HcalHitCluster.h:12
SimG4HcalHitCluster::getHits
std::vector< CaloHit > * getHits()
Definition: SimG4HcalHitCluster.h:20
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
CaloHit.h
hit
Definition: SiStripHitEffFromCalibTree.cc:88
SimG4HcalHitCluster::phic
double phic
Definition: SimG4HcalHitCluster.h:31