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,
36  const GlobalVector& caloVector,
37  const GlobalPoint& rechitPoint,
38  bool debug = false);
39 
40  // Not used, but here for reference
41  double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug = false);
42  double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug = false);
43 
44  // get eta, phi, energy of rechits in collection
46  std::vector<int>& RH_ieta,
47  std::vector<int>& RH_iphi,
48  std::vector<double>& RH_ene,
49  bool debug = false);
50 
51  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit,
52  std::vector<int>& RH_ieta,
53  std::vector<int>& RH_iphi,
54  std::vector<double>& RH_ene,
55  bool debug = false);
56 
58  std::vector<int>& RH_ieta,
59  std::vector<int>& RH_iphi,
60  std::vector<double>& RH_ene,
61  bool debug = false);
62 
63  // get eta, phi of rechits in collection
64  void getEtaPhi(HBHERecHitCollection::const_iterator hit, int& ieta, int& iphi, bool debug = false);
65  void getEtaPhi(edm::PCaloHitContainer::const_iterator hit, int& ieta, int& iphi, bool debug = false);
66  void getEtaPhi(EcalRecHitCollection::const_iterator hit, int& ieta, int& iphi, bool debug = false);
67 
68  double getEnergy(HBHERecHitCollection::const_iterator hit, int useRaw = 0, bool debug = false);
69  double getEnergy(edm::PCaloHitContainer::const_iterator hit, int useRaw = 0, bool debug = false);
70  double getEnergy(EcalRecHitCollection::const_iterator hit, int useRaw = 0, bool debug = false);
71 
73  GlobalPoint getGpos(const CaloGeometry* geo, edm::PCaloHitContainer::const_iterator hit, bool debug = false);
75 
77  double getRawEnergy(edm::PCaloHitContainer::const_iterator hit, int useRaw = 0);
79 
80 } // namespace spr
81 
82 #endif
double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:62
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint, bool debug=false)
Definition: FindDistCone.cc:9
double getEnergy(HBHERecHitCollection::const_iterator hit, int useRaw=0, bool debug=false)
std::vector< T >::const_iterator const_iterator
double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:39
double getRawEnergy(HBHERecHitCollection::const_iterator hit, int useRaw=0)
#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:87
GlobalPoint getGpos(const CaloGeometry *geo, HBHERecHitCollection::const_iterator hit, bool debug=false)