2 #include "Math/GenVector/VectorUtil.h"
15 for(vtag::const_iterator it =
jetSrc.begin(); it !=
jetSrc.end(); ++it) {
17 jetSrc_token.push_back(aToken);
21 produces<CaloJetCollection>();
38 myL2L1JetsMap.clear();
43 for( vtoken_cjets::const_iterator
s = jetSrc_token.begin();
s != jetSrc_token.end(); ++
s ) {
46 for(CaloJetCollection::const_iterator iTau = tauJets->begin(); iTau !=tauJets->end(); ++iTau)
49 if(iTau->et() > mEt_Min) {
54 myTmpJets.push_back(myJet);
70 while(myTmpJets.size()>0) {
71 tauL2jets->push_back(myTmpJets.at(0));
73 for(
unsigned int i=1 ;
i<myTmpJets.size();++
i) {
74 double DR = ROOT::Math::VectorUtil::DeltaR(myTmpJets.at(0).p4(),myTmpJets.at(
i).p4());
76 tmp.push_back(myTmpJets.at(
i));
83 iEvent.
put(tauL2jets);
T getParameter(std::string const &) const
L2TauJetsMerger(const edm::ParameterSet &)
Jets made from CaloTowers.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< std::vector< double > > tmp
virtual void setPdgId(int pdgId)
std::vector< edm::InputTag > vtag
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects