Skip to content

Commit

Permalink
Adding BoostedJetLeptonCleaning BJLC modules
Browse files Browse the repository at this point in the history
  • Loading branch information
isando3 committed Jul 29, 2014
1 parent eadb964 commit 19e1458
Showing 1 changed file with 58 additions and 0 deletions.
@@ -0,0 +1,58 @@
#ifndef HLTJetCollectionsForBoostedLeptonPlusJets_h
#define HLTJetCollectionsForBoostedLeptonPlusJets_h

/** \class HLTJetCollectionsForBoostedLeptonPlusJets
*
*
* This class is an EDProducer implementing an HLT
* trigger for lepton and jet objects, cutting on
* variables relating to the jet 4-momentum representation.
* The producer checks for overlaps between leptons and jets and if a
* combination of one lepton + jets cleaned against this leptons satisfy the cuts.
* These jets are then added to a cleaned jet collection which is put into the event.
*
*
* \author Lukasz Kreczko
*
*/


// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"

#include "FWCore/Framework/interface/Event.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"

#include "DataFormats/JetReco/interface/PFJetCollection.h"

namespace edm {
class ConfigurationDescriptions;
}

//
// class declaration
//

template <typename jetType> class HLTJetCollectionsForBoostedLeptonPlusJets: public edm::EDProducer {
public:
explicit HLTJetCollectionsForBoostedLeptonPlusJets(const edm::ParameterSet&);
~HLTJetCollectionsForBoostedLeptonPlusJets();
static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);

private:
virtual void produce(edm::Event&, const edm::EventSetup&);

edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> m_theLeptonToken;
edm::EDGetTokenT<std::vector<jetType>> m_theJetToken;
edm::InputTag hltLeptonTag;
edm::InputTag sourceJetTag;

double minDeltaR_; //min dR for jets and leptons not to match

// ----------member data ---------------------------
};
#endif //HLTJetCollectionsForBoostedLeptonPlusJets_h

0 comments on commit 19e1458

Please sign in to comment.