CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFCand_AssoMapAlgos.h
Go to the documentation of this file.
1 #ifndef PFCand_AssoMapAlgos_h
2 #define PFCand_AssoMapAlgos_h
3 
4 
9 //
10 // Original Author: Matthias Geisler,32 4-B20,+41227676487,
11 // $Id: PFCand_AssoMapAlgos.h,v 1.1 2012/11/21 09:46:43 mgeisler Exp $
12 //
13 //
15 
18 
19 //
20 // constants, enums and typedefs
21 //
22 
25 
26 typedef std::pair<reco::PFCandidateRef, int> PFCandQualityPair;
27 typedef std::vector<PFCandQualityPair > PFCandQualityPairVector;
28 
29 typedef std::pair<reco::VertexRef, PFCandQualityPair> VertexPfcQuality;
30 
31 typedef std::pair <reco::VertexRef, float> VertexPtsumPair;
32 typedef std::vector< VertexPtsumPair > VertexPtsumVector;
33 
35 
36  public:
37 
38  //dedicated constructor for the algorithms
40 
41  //get all needed collections at the beginning
43 
44  //create the pf candidate to vertex association map
45  std::auto_ptr<PFCandToVertexAssMap> CreatePFCandToVertexMap(edm::Handle<reco::PFCandidateCollection>, const edm::EventSetup&);
46 
47  //create the vertex to pf candidate association map
48  std::auto_ptr<VertexToPFCandAssMap> CreateVertexToPFCandMap(edm::Handle<reco::PFCandidateCollection>, const edm::EventSetup&);
49 
50  //function to sort the vertices in the AssociationMap by the sum of (pT - pT_Error)**2
51  std::auto_ptr<PFCandToVertexAssMap> SortPFCandAssociationMap(PFCandToVertexAssMap*);
52 
53  protected:
54  //protected functions
55 
56  private:
57  //private functions
58 
60 
63 
66 
68 
69 };
70 
71 #endif
edm::AssociationMap< edm::OneToManyWithQuality< reco::PFCandidateCollection, reco::VertexCollection, int > > VertexToPFCandAssMap
edm::InputTag input_BeamSpot_
std::pair< reco::VertexRef, PFCandQualityPair > VertexPfcQuality
edm::AssociationMap< edm::OneToManyWithQuality< reco::VertexCollection, reco::PFCandidateCollection, int > > PFCandToVertexAssMap
std::pair< reco::PFCandidateRef, int > PFCandQualityPair
std::vector< VertexPtsumPair > VertexPtsumVector
std::auto_ptr< VertexToPFCandAssMap > CreateVertexToPFCandMap(edm::Handle< reco::PFCandidateCollection >, const edm::EventSetup &)
std::auto_ptr< PFCandToVertexAssMap > CreatePFCandToVertexMap(edm::Handle< reco::PFCandidateCollection >, const edm::EventSetup &)
edm::InputTag input_VertexCollection_
std::auto_ptr< PFCandToVertexAssMap > SortPFCandAssociationMap(PFCandToVertexAssMap *)
std::vector< PFCandQualityPair > PFCandQualityPairVector
edm::Handle< reco::BeamSpot > beamspotH
PFCand_AssoMapAlgos(const edm::ParameterSet &)
void GetInputCollections(edm::Event &, const edm::EventSetup &)
std::pair< reco::VertexRef, float > VertexPtsumPair
edm::ESHandle< MagneticField > bFieldH
edm::Handle< reco::VertexCollection > vtxcollH