Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:34

0001 #ifndef RECOPARTICLEFLOW_PFSUPERCLUSTERREADER_H
0002 #define RECOPARTICLEFLOW_PFSUPERCLUSTERREADER_H
0003 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "DataFormats/Common/interface/ValueMap.h"
0006 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
0007 #include "DataFormats/EgammaReco/interface/BasicClusterFwd.h"
0008 #include "DataFormats/EgammaReco/interface/PreshowerClusterFwd.h"
0009 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
0010 #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
0011 #include <iostream>
0012 #include <sstream>
0013 #include <string>
0014 #include <map>
0015 
0016 class PFSuperClusterReader : public edm::one::EDAnalyzer<> {
0017 public:
0018   explicit PFSuperClusterReader(const edm::ParameterSet&);
0019   ~PFSuperClusterReader() override = default;
0020   void analyze(edm::Event const&, edm::EventSetup const&) override;
0021 
0022 private:
0023   const edm::InputTag inputTagGSFTracks_;
0024   const edm::InputTag inputTagValueMapSC_;
0025   const edm::InputTag inputTagValueMapMVA_;
0026   const edm::InputTag inputTagPFCandidates_;
0027   const edm::EDGetTokenT<reco::GsfTrackCollection> trackToken_;
0028   const edm::EDGetTokenT<reco::PFCandidateCollection> pfCandToken_;
0029   const edm::EDGetTokenT<edm::ValueMap<reco::SuperClusterRef> > pfClusToken_;
0030   const edm::EDGetTokenT<edm::ValueMap<float> > pfMapToken_;
0031 
0032   const reco::PFCandidate* findPFCandidate(const reco::PFCandidateCollection* coll, const reco::GsfTrackRef& ref);
0033 };
0034 #endif