Main Page
Namespaces
Classes
Package Documentation
RecoEgamma
EgammaMCTools
interface
PhotonMCTruthFinder.h
Go to the documentation of this file.
1
#ifndef PhotonMCTruthFinder_h
2
#define PhotonMCTruthFinder_h
3
#include "
SimDataFormats/Track/interface/SimTrack.h
"
4
#include "
SimDataFormats/Track/interface/SimTrackContainer.h
"
5
#include "
SimDataFormats/Vertex/interface/SimVertex.h
"
6
#include "
SimDataFormats/Vertex/interface/SimVertexContainer.h
"
7
8
9
#include <vector>
10
#include <map>
11
#include <iostream>
12
21
class
PhotonMCTruth
;
22
class
PhotonMCTruthFinder
{
23
public
:
24
25
PhotonMCTruthFinder
();
26
virtual
~PhotonMCTruthFinder
() { }
27
28
29
std::vector<PhotonMCTruth>
find
(
const
std::vector<SimTrack>&
simTracks
,
const
std::vector<SimVertex>&
simVertices
);
30
31
void
clear
() {
geantToIndex_
.clear();}
32
33
34
private
:
35
36
37
38
void
fill
(
const
std::vector<SimTrack>& theSimTracks,
const
std::vector<SimVertex>& theSimVertices);
39
std::map<unsigned, unsigned>
geantToIndex_
;
40
41
42
43
44
};
45
46
47
#endif
48
PhotonMCTruthFinder::PhotonMCTruthFinder
PhotonMCTruthFinder()
Definition:
PhotonMCTruthFinder.cc:14
SimTrack.h
tkConvValidator_cfi.simTracks
simTracks
Definition:
tkConvValidator_cfi.py:137
PhotonMCTruth
Definition:
PhotonMCTruth.h:22
PhotonMCTruthFinder::fill
void fill(const std::vector< SimTrack > &theSimTracks, const std::vector< SimVertex > &theSimVertices)
Definition:
PhotonMCTruthFinder.cc:412
PhotonMCTruthFinder::geantToIndex_
std::map< unsigned, unsigned > geantToIndex_
Definition:
PhotonMCTruthFinder.h:39
SimVertex.h
PhotonMCTruthFinder::find
std::vector< PhotonMCTruth > find(const std::vector< SimTrack > &simTracks, const std::vector< SimVertex > &simVertices)
Definition:
PhotonMCTruthFinder.cc:20
PhotonMCTruthFinder
Definition:
PhotonMCTruthFinder.h:22
SimTrackContainer.h
PhotonMCTruthFinder::clear
void clear()
Definition:
PhotonMCTruthFinder.h:31
PhotonMCTruthFinder::~PhotonMCTruthFinder
virtual ~PhotonMCTruthFinder()
Definition:
PhotonMCTruthFinder.h:26
HGCalValidator_cfi.simVertices
simVertices
Definition:
HGCalValidator_cfi.py:33
SimVertexContainer.h
Generated for CMSSW Reference Manual by
1.8.11