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
Vector3DBase
Definition: Vector3DBase.h:8
spr::getDistInCMatEcal
double getDistInCMatEcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:49
Handle.h
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
spr
Definition: CaloConstants.h:6
EBDetId.h
EEDetId.h
spr::getRawEnergy
double getRawEnergy(HBHERecHitCollection::const_iterator hit, int useRaw=0)
Definition: FindDistCone.cc:233
spr::getDistInPlaneTrackDir
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint, bool debug=false)
Definition: FindDistCone.cc:12
EcalRecHitCollections.h
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
CaloGeometry
Definition: CaloGeometry.h:21
debug
#define debug
Definition: HDRShower.cc:19
HLT_FULL_cff.eta2
eta2
Definition: HLT_FULL_cff.py:9551
Point3DBase< float, GlobalTag >
spr::getEtaPhi
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:119
spr::getEnergy
double getEnergy(HBHERecHitCollection::const_iterator hit, int useRaw=0, bool debug=false)
Definition: FindDistCone.cc:181
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9550
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HcalDetId.h
spr::getGpos
GlobalPoint getGpos(const CaloGeometry *geo, HBHERecHitCollection::const_iterator hit, bool debug=false)
Definition: FindDistCone.cc:209
DetId.h
Frameworkfwd.h
CaloGeometry.h
GlobalVector.h
HcalRecHitCollections.h
PCaloHitContainer.h
Candidate.h
spr::getDistInCMatHcal
double getDistInCMatHcal(double eta1, double phi1, double eta2, double phi2, bool debug=false)
Definition: FindDistCone.cc:83
GlobalPoint.h
hit
Definition: SiStripHitEffFromCalibTree.cc:88