CMS 3D CMS Logo

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 
53  double getEnergy(HBHERecHitCollection::const_iterator hit, bool useRaw=false, bool debug=false);
54  double getEnergy(edm::PCaloHitContainer::const_iterator hit, bool useRaw=false, bool debug=false);
55  double getEnergy(EcalRecHitCollection::const_iterator hit, bool useRaw=false, bool debug=false);
56 
58  GlobalPoint getGpos(const CaloGeometry* geo, edm::PCaloHitContainer::const_iterator hit, bool debug=false);
60 
61  double getRawEnergy(HBHERecHitCollection::const_iterator hit, bool useRaw=false);
62  double getRawEnergy(edm::PCaloHitContainer::const_iterator hit, bool useRaw=false);
63  double getRawEnergy(EcalRecHitCollection::const_iterator hit, bool useRaw=false);
64 
65 }
66 
67 #endif
double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:80
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint, bool debug=false)
Definition: FindDistCone.cc:12
std::vector< HBHERecHit >::const_iterator const_iterator
double getEnergy(HBHERecHitCollection::const_iterator hit, bool useRaw=false, bool debug=false)
double getRawEnergy(HBHERecHitCollection::const_iterator hit, bool useRaw=false)
double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:53
#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)
GlobalPoint getGpos(const CaloGeometry *geo, HBHERecHitCollection::const_iterator hit, bool debug=false)