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, bool debug=false);
36 
37  // Not used, but here for reference
38  double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug=false);
39  double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug=false);
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, bool debug=false);
43 
44  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit, std::vector<int>& RH_ieta, std::vector<int>& RH_iphi, std::vector<double>& RH_ene, bool debug=false);
45 
46  void getEtaPhi(EcalRecHitCollection::const_iterator hit, std::vector<int>& RH_ieta, std::vector<int>& RH_iphi, std::vector<double>& RH_ene, bool debug=false);
47 
48  // get eta, phi of rechits in collection
49  void getEtaPhi(HBHERecHitCollection::const_iterator hit,int& ieta,int& iphi, bool debug=false);
50  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit,int& ieta,int& iphi, bool debug=false);
51  void getEtaPhi(EcalRecHitCollection::const_iterator hit,int& ieta,int& iphi, bool debug=false);
52 
54  double getEnergy(edm::PCaloHitContainer::const_iterator hit, bool debug=false);
56 
58  GlobalPoint getGpos(const CaloGeometry* geo, edm::PCaloHitContainer::const_iterator hit, bool debug=false);
60 
61 }
62 
63 #endif
double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:63
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint, bool debug=false)
Definition: FindDistCone.cc:8
std::vector< HBHERecHit >::const_iterator const_iterator
double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:41
double getEnergy(HBHERecHitCollection::const_iterator hit, bool debug=false)
#define debug
Definition: HDRShower.cc:19
void getEtaPhi(HBHERecHitCollection::const_iterator hit, std::vector< int > &RH_ieta, std::vector< int > &RH_iphi, std::vector< double > &RH_ene, bool debug=false)
Definition: FindDistCone.cc:86
GlobalPoint getGpos(const CaloGeometry *geo, HBHERecHitCollection::const_iterator hit, bool debug=false)