CMS 3D CMS Logo

PhotonMCTruthFinder.h
Go to the documentation of this file.
1 #ifndef PhotonMCTruthFinder_h
2 #define PhotonMCTruthFinder_h
7 
8 #include <vector>
9 #include <map>
10 #include <iostream>
11 
19 class PhotonMCTruth;
21 public:
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
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
PhotonMCTruthFinder::find
std::vector< PhotonMCTruth > find(const std::vector< SimTrack > &simTracks, const std::vector< SimVertex > &simVertices)
Definition: PhotonMCTruthFinder.cc:17
PhotonMCTruthFinder::clear
void clear()
Definition: PhotonMCTruthFinder.h:27
PhotonMCTruthFinder::~PhotonMCTruthFinder
virtual ~PhotonMCTruthFinder()
Definition: PhotonMCTruthFinder.h:23
SimVertex.h
PhotonMCTruth
Definition: PhotonMCTruth.h:20
PhotonMCTruthFinder
Definition: PhotonMCTruthFinder.h:20
PhotonMCTruthFinder::fill
void fill(const std::vector< SimTrack > &theSimTracks, const std::vector< SimVertex > &theSimVertices)
Definition: PhotonMCTruthFinder.cc:381
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:57
SimTrack.h
SimTrackContainer.h
SimVertexContainer.h
PhotonMCTruthFinder::geantToIndex_
std::map< unsigned, unsigned > geantToIndex_
Definition: PhotonMCTruthFinder.h:31