Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-13 02:58:34

0001 
0002 #include "FWCore/Framework/interface/Event.h"
0003 #include "FWCore/Framework/interface/ConsumesCollector.h"
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0006 #include "FWCore/Utilities/interface/InputTag.h"
0007 #include "FWCore/Utilities/interface/EDGetToken.h"
0008 // including GenParticles
0009 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
0010 
0011 // icnluding GenMET
0012 #include "DataFormats/METReco/interface/GenMETCollection.h"
0013 #include "DataFormats/METReco/interface/GenMET.h"
0014 
0015 #include "Validation/HLTrigger/interface/HLTGenValObject.h"
0016 
0017 #include <vector>
0018 
0019 class HLTGenValObjectMgr {
0020 public:
0021   HLTGenValObjectMgr(const edm::ParameterSet& iConfig, edm::ConsumesCollector cc);
0022 
0023   std::vector<HLTGenValObject> getGenValObjects(const edm::Event& iEvent, const std::string& objType);
0024   std::vector<HLTGenValObject> getGenParticles(const edm::Event& iEvent, const std::string& objType);
0025   bool passGenJetID(const reco::GenJet& jet);
0026   static reco::GenParticle getLastCopy(reco::GenParticle part);
0027   static reco::GenParticle getLastCopyPreFSR(reco::GenParticle part);
0028 
0029   static edm::ParameterSetDescription makePSetDescription();
0030 
0031 private:
0032   const edm::EDGetTokenT<reco::GenParticleCollection> genParticleToken_;
0033   const edm::EDGetTokenT<reco::GenMETCollection> genMETToken_;
0034   const edm::EDGetTokenT<reco::GenJetCollection> ak4GenJetToken_;
0035   const edm::EDGetTokenT<reco::GenJetCollection> ak8GenJetToken_;
0036   const edm::EDGetTokenT<reco::GenJetCollection> tauGenJetToken_;
0037 
0038   //some jet id
0039   //max fraction of pt a prompt particles can contribute to jets
0040   //basically we would prefer not to lump high pt prompt muons reconstructed as jets
0041   //in the the category of hadronic jets
0042   float maxPromptGenJetFrac_;
0043 
0044   float minPtForGenHT_;
0045   float maxAbsEtaForGenHT_;
0046 };