4 #include "Math/GenVector/VectorUtil.h"
14 produces<reco::CaloJetCollection>(
"Isolated");
15 produces<reco::CaloJetCollection>(
"NotIsolated");
27 typedef std::vector<edm::InputTag> vtag;
31 for( vtag::const_iterator
s =
tauSrc.begin();
s !=
tauSrc.end(); ++
s ) {
34 EMIsolatedTauTagInfoCollection::const_iterator
i = tauJets->begin();
35 for(;i !=tauJets->end(); i++ ) {
36 double discriminator = (*i).discriminator();
37 if(discriminator > 0) {
38 const CaloJet* pippo =
dynamic_cast<const CaloJet*
>(i->jet().get());
39 isolatedTaus->push_back(*pippo );
41 const CaloJet* notPippo =
dynamic_cast<const CaloJet*
>(i->jet().get());
43 notIsolatedTaus->push_back(*notPippo );
50 iEvent.
put(isolatedTaus,
"Isolated");
51 iEvent.
put(notIsolatedTaus,
"NotIsolated");
T getParameter(std::string const &) const
Jets made from CaloTowers.
virtual void produce(edm::Event &, const edm::EventSetup &) override
~EMIsolatedTauJetsSelector()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
EMIsolatedTauJetsSelector(const edm::ParameterSet &)
std::vector< edm::InputTag > tauSrc
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects