CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FindDistCone.h
Go to the documentation of this file.
1 #ifndef CalibrationIsolatedParticlesFindDistCone_h
2 #define CalibrationIsolatedParticlesFindDistCone_h
3 
4 // system include files
5 #include <memory>
6 #include <cmath>
7 #include <string>
8 #include <map>
9 #include <vector>
10 
11 // user include files
13 
15 
17 
26 
29 
30 #include <cmath>
31 
32 namespace spr {
33 
34  // Cone clustering core
35  double getDistInPlaneTrackDir(const GlobalPoint& caloPoint, const GlobalVector& caloVector, const GlobalPoint& rechitPoint);
36 
37  // Not used, but here for reference
38  double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2);
39  double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2);
40 
41  // get eta, phi, energy of rechits in collection
42  void getEtaPhi(HBHERecHitCollection::const_iterator hit, std::vector<int>& RH_ieta, std::vector<int>& RH_iphi, std::vector<double>& RH_ene);
43 
44  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit, std::vector<int>& RH_ieta, std::vector<int>& RH_iphi, std::vector<double>& RH_ene);
45 
46  void getEtaPhi(EcalRecHitCollection::const_iterator hit, std::vector<int>& RH_ieta, std::vector<int>& RH_iphi, std::vector<double>& RH_ene);
47 
48  // get eta, phi of rechits in collection
49  void getEtaPhi(HBHERecHitCollection::const_iterator hit,int& ieta,int& iphi);
50  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit,int& ieta,int& iphi);
51  void getEtaPhi(EcalRecHitCollection::const_iterator hit,int& ieta,int& iphi);
52 
54  double getEnergy(edm::PCaloHitContainer::const_iterator hit);
56 
58  GlobalPoint getGpos(const CaloGeometry* geo, edm::PCaloHitContainer::const_iterator hit);
60 
61 }
62 
63 #endif
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint)
Definition: FindDistCone.cc:8
double getEnergy(HBHERecHitCollection::const_iterator hit)
std::vector< HBHERecHit >::const_iterator const_iterator
double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2)
Definition: FindDistCone.cc:53
GlobalPoint getGpos(const CaloGeometry *geo, HBHERecHitCollection::const_iterator hit)
double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2)
Definition: FindDistCone.cc:35
void getEtaPhi(HBHERecHitCollection::const_iterator hit, std::vector< int > &RH_ieta, std::vector< int > &RH_iphi, std::vector< double > &RH_ene)
Definition: FindDistCone.cc:72