4 #include "Math/GenVector/VectorUtil.h"
14 for(vtag::const_iterator it =
jetSrc.begin(); it !=
jetSrc.end(); ++it) {
22 produces<reco::CaloJetCollection>();
38 typedef vector<EDGetTokenT<IsolatedTauTagInfoCollection> > vtag_token;
42 IsolatedTauTagInfoCollection::const_iterator
i = tauJets->begin();
43 for(;i !=tauJets->end(); i++ ) {
46 const CaloJet* pippo =
dynamic_cast<const CaloJet*
>((i->jet().get()));
50 jetCollectionTmp->push_back(*mioPippo);
54 const TrackRef leadTk = i->leadingSignalTrack();
58 float discriminator = i->discriminator();
59 const CaloJet* pippo =
dynamic_cast<const CaloJet*
>((i->jet().get()));
64 jetCollectionTmp->push_back(*mioPippo);
68 jetCollectionTmp->push_back(*mioPippo);
78 std::auto_ptr<reco::CaloJetCollection> selectedTaus(jetCollectionTmp);
80 iEvent.
put(selectedTaus);
T getParameter(std::string const &) const
std::vector< edm::EDGetTokenT< reco::IsolatedTauTagInfoCollection > > jetSrcToken
Jets made from CaloTowers.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool useIsolationDiscriminator
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
IsolatedTauJetsSelector(const edm::ParameterSet &)
std::vector< edm::InputTag > vtag
virtual void produce(edm::Event &, const edm::EventSetup &) override
~IsolatedTauJetsSelector()
virtual void setPdgId(int pdgId) GCC11_FINAL
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects