CMS 3D CMS Logo

PFTauToJetProducer.cc
Go to the documentation of this file.
4 #include "Math/GenVector/VectorUtil.h"
5 //
6 // class decleration
7 //
8 
10  tauSrc_ = consumes<reco::PFTauCollection>(iConfig.getParameter<edm::InputTag>("Source"));
11  produces<reco::CaloJetCollection>();
12 }
13 
15 
17  using namespace reco;
18  using namespace edm;
19  using namespace std;
21 
22  CaloJetCollection* jetCollectionTmp = new CaloJetCollection;
24  iEvent.getByToken(tauSrc_, tauJets);
25  PFTauCollection::const_iterator i = tauJets->begin();
26  for (; i != tauJets->end(); i++) {
27  CaloJet jet(i->p4(), i->vertex(), specific);
28  jet.setPdgId(15);
29  jetCollectionTmp->push_back(jet);
30  }
31 
32  unique_ptr<reco::CaloJetCollection> selectedTaus(jetCollectionTmp);
34 }
reco::CaloJet
Jets made from CaloTowers.
Definition: CaloJet.h:27
mps_fire.i
i
Definition: mps_fire.py:355
PFTauToJetProducer.h
edm
HLT enums.
Definition: AlignableModifier.h:19
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
PFTauToJetProducer::~PFTauToJetProducer
~PFTauToJetProducer() override
Definition: PFTauToJetProducer.cc:14
edm::Handle
Definition: AssociativeIterator.h:50
objectSelection_cff.selectedTaus
selectedTaus
======================================
Definition: objectSelection_cff.py:58
timingPdfMaker.specific
specific
Definition: timingPdfMaker.py:78
PFTauToJetProducer::PFTauToJetProducer
PFTauToJetProducer(const edm::ParameterSet &)
Definition: PFTauToJetProducer.cc:9
PFTauToJetProducer::tauSrc_
edm::EDGetTokenT< reco::PFTauCollection > tauSrc_
Definition: PFTauToJetProducer.h:23
Vertex.h
edm::ParameterSet
Definition: ParameterSet.h:36
iEvent
int iEvent
Definition: GenABIO.cc:224
reco::CaloJetCollection
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
Definition: CaloJetCollection.h:15
edm::EventSetup
Definition: EventSetup.h:57
VertexFwd.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
metsig::jet
Definition: SignAlgoResolutions.h:47
reco::CaloJet::Specific
Definition: CaloJet.h:32
edm::Event
Definition: Event.h:73
PFTauToJetProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PFTauToJetProducer.cc:16
edm::InputTag
Definition: InputTag.h:15