4 #include "Math/GenVector/VectorUtil.h"
13 typedef std::vector<edm::InputTag> vtag;
14 for(vtag::const_iterator it =
tauSrc.begin(); it !=
tauSrc.end(); ++it) {
19 produces<reco::CaloJetCollection>(
"Isolated");
20 produces<reco::CaloJetCollection>(
"NotIsolated");
35 typedef std::vector<edm::EDGetTokenT<reco::EMIsolatedTauTagInfoCollection> > vtag_token;
39 EMIsolatedTauTagInfoCollection::const_iterator
i = tauJets->begin();
40 for(;i !=tauJets->end(); i++ ) {
41 double discriminator = (*i).discriminator();
42 if(discriminator > 0) {
43 const CaloJet* pippo =
dynamic_cast<const CaloJet*
>(i->jet().get());
44 isolatedTaus->push_back(*pippo );
46 const CaloJet* notPippo =
dynamic_cast<const CaloJet*
>(i->jet().get());
48 notIsolatedTaus->push_back(*notPippo );
55 iEvent.
put(isolatedTaus,
"Isolated");
56 iEvent.
put(notIsolatedTaus,
"NotIsolated");
T getParameter(std::string const &) const
Jets made from CaloTowers.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
~EMIsolatedTauJetsSelector()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< edm::EDGetTokenT< reco::EMIsolatedTauTagInfoCollection > > tauSrc_token
EMIsolatedTauJetsSelector(const edm::ParameterSet &)
std::vector< edm::InputTag > tauSrc
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects