Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:37

0001 #ifndef RECOPARTICLEFLOW_PFISOREADER_H
0002 #define RECOPARTICLEFLOW_PFISOREADER_H
0003 #include "FWCore/Framework/interface/EDAnalyzer.h"
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
0006 #include "DataFormats/RecoCandidate/interface/IsoDeposit.h"
0007 #include <iostream>
0008 #include <string>
0009 #include <map>
0010 
0011 class PFIsoReader : public edm::EDAnalyzer {
0012 public:
0013   explicit PFIsoReader(const edm::ParameterSet&);
0014   ~PFIsoReader();
0015   virtual void beginRun(edm::Run const&, edm::EventSetup const&);
0016   virtual void analyze(const edm::Event& iEvent, const edm::EventSetup& c);
0017 
0018 private:
0019   typedef std::vector<edm::Handle<edm::ValueMap<reco::IsoDeposit> > > IsoDepositMaps;
0020   void printIsoDeposits(const IsoDepositMaps& depmap, const reco::PFCandidatePtr& ptr) const;
0021 
0022   edm::InputTag inputTagGsfElectrons_;
0023   edm::InputTag inputTagPhotons_;
0024   edm::InputTag inputTagValueMapPhotons_;
0025   edm::InputTag inputTagValueMapMerged_;
0026   edm::InputTag inputTagValueMapElectrons_;
0027   edm::InputTag inputTagPFCandidates_;
0028   std::vector<edm::InputTag> inputTagElectronIsoDeposits_;
0029   std::vector<edm::InputTag> inputTagPhotonIsoDeposits_;
0030   bool useValueMaps_;
0031 };
0032 #endif