Calibration
IsolatedParticles
interface
FindCaloHit.h
Go to the documentation of this file.
1
#ifndef CalibrationIsolatedParticlesFindCaloHit_h
2
#define CalibrationIsolatedParticlesFindCaloHit_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
12
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
13
14
#include "
DataFormats/Common/interface/Handle.h
"
15
16
#include "
DataFormats/Candidate/interface/Candidate.h
"
17
18
#include "
DataFormats/DetId/interface/DetId.h
"
19
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
20
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
21
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
22
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
23
#include "
DataFormats/HcalRecHit/interface/HcalRecHitCollections.h
"
24
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
25
26
#include "
SimDataFormats/CaloHit/interface/PCaloHitContainer.h
"
27
#include "
Geometry/CaloGeometry/interface/CaloGeometry.h
"
28
29
#include <cmath>
30
31
namespace
spr
{
32
33
// All types of Hit Collections
34
template
<
typename
T>
35
std::vector<typename T::const_iterator>
findHit
(
edm::Handle<T>
&
hits
,
DetId
thisDet,
bool
debug
=
false
);
36
37
std::vector<std::vector<PCaloHit>::const_iterator>
findHit
(std::vector<PCaloHit>&
hits
,
38
DetId
thisDet,
39
bool
debug
=
false
);
40
41
template
<
typename
T>
42
void
findHit
(
edm::Handle<T>
&
hits
,
DetId
thisDet, std::vector<typename T::const_iterator>&
hit
,
bool
debug
=
false
);
43
44
// For EB and EE RecHit Collection
45
void
find
(
edm::Handle<EcalRecHitCollection>
&
hits
,
46
DetId
thisDet,
47
std::vector<EcalRecHitCollection::const_iterator>&
hit
,
48
bool
debug
=
false
);
49
50
// For Hcal RecHit Collection
51
void
find
(
edm::Handle<HBHERecHitCollection>
&
hits
,
52
DetId
thisDet,
53
std::vector<HBHERecHitCollection::const_iterator>&
hit
,
54
bool
debug
=
false
);
55
56
// For simHit Collection
57
void
find
(
edm::Handle<edm::PCaloHitContainer>
&
hits
,
58
DetId
thisDet,
59
std::vector<edm::PCaloHitContainer::const_iterator>&
hit
,
60
bool
debug
=
false
);
61
}
// namespace spr
62
63
#include "Calibration/IsolatedParticles/interface/FindCaloHit.icc"
64
65
#endif
Handle.h
spr
Definition:
CaloConstants.h:6
hfClusterShapes_cfi.hits
hits
Definition:
hfClusterShapes_cfi.py:5
EBDetId.h
EEDetId.h
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
edm::Handle
Definition:
AssociativeIterator.h:50
EcalRecHitCollections.h
DetId
Definition:
DetId.h:17
debug
#define debug
Definition:
HDRShower.cc:19
HcalDetId.h
spr::findHit
std::vector< typename T::const_iterator > findHit(edm::Handle< T > &hits, DetId thisDet, bool debug=false)
DetId.h
Frameworkfwd.h
CaloGeometry.h
HcalRecHitCollections.h
PCaloHitContainer.h
Candidate.h
GlobalPoint.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16