src
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
#include <vector>
9
#include <map>
10
#include <iostream>
11
19
class
PhotonMCTruth
;
20
class
PhotonMCTruthFinder
{
21
public
:
22
PhotonMCTruthFinder
();
23
virtual
~PhotonMCTruthFinder
() {}
24
25
std::vector<PhotonMCTruth>
find
(
const
std::vector<SimTrack>&
simTracks
,
const
std::vector<SimVertex>&
simVertices
);
26
27
void
clear
() {
geantToIndex_
.clear(); }
28
29
private
:
30
void
fill
(
const
std::vector<SimTrack>& theSimTracks,
const
std::vector<SimVertex>& theSimVertices);
31
std::map<unsigned, unsigned>
geantToIndex_
;
32
};
33
34
#endif
PhotonMCTruthFinder::PhotonMCTruthFinder
PhotonMCTruthFinder()
Definition:
PhotonMCTruthFinder.cc:13
SimTrack.h
PhotonMCTruth
Definition:
PhotonMCTruth.h:20
PhotonMCTruthFinder::fill
void fill(const std::vector< SimTrack > &theSimTracks, const std::vector< SimVertex > &theSimVertices)
Definition:
PhotonMCTruthFinder.cc:381
TrackCandidateProducer_cfi.simTracks
simTracks
Definition:
TrackCandidateProducer_cfi.py:15
PhotonMCTruthFinder::geantToIndex_
std::map< unsigned, unsigned > geantToIndex_
Definition:
PhotonMCTruthFinder.h:31
SimVertex.h
PhotonMCTruthFinder::find
std::vector< PhotonMCTruth > find(const std::vector< SimTrack > &simTracks, const std::vector< SimVertex > &simVertices)
Definition:
PhotonMCTruthFinder.cc:17
PhotonMCTruthFinder
Definition:
PhotonMCTruthFinder.h:20
SimTrackContainer.h
PhotonMCTruthFinder::clear
void clear()
Definition:
PhotonMCTruthFinder.h:27
PhotonMCTruthFinder::~PhotonMCTruthFinder
virtual ~PhotonMCTruthFinder()
Definition:
PhotonMCTruthFinder.h:23
HGCalValidator_cfi.simVertices
simVertices
Definition:
HGCalValidator_cfi.py:78
SimVertexContainer.h
Generated for CMSSW Reference Manual by
1.8.14