CMS 3D CMS Logo

PFJetToCaloProducer.cc
Go to the documentation of this file.
4 #include "Math/GenVector/VectorUtil.h"
5 //
6 // class decleration
7 //
8 
10  tauSrc_ = consumes<reco::PFJetCollection>(iConfig.getParameter<edm::InputTag>("Source"));
11  produces<reco::CaloJetCollection>();
12 }
13 
15 
17  using namespace reco;
18  using namespace edm;
19  using namespace std;
20 
21  std::unique_ptr<reco::CaloJetCollection> selectedTaus(new CaloJetCollection);
22 
24  iEvent.getByToken(tauSrc_, tauJets);
25 
27  for (PFJetCollection::const_iterator i = tauJets->begin(); i != tauJets->end(); ++i) {
28  CaloJet jet(i->p4(), i->vertex(), specific);
29  jet.setPdgId(15);
30  selectedTaus->push_back(jet);
31  }
32 
34 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Jets made from CaloTowers.
Definition: CaloJet.h:27
void produce(edm::Event &, const edm::EventSetup &) override
PFJetToCaloProducer(const edm::ParameterSet &)
selectedTaus
====================================== Taus
int iEvent
Definition: GenABIO.cc:224
edm::EDGetTokenT< reco::PFJetCollection > tauSrc_
fixed size matrix
HLT enums.
def move(src, dest)
Definition: eostools.py:511
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects