2 #include "Math/GenVector/VectorUtil.h"
13 using namespace l1extra;
23 produces<CaloJetCollection>();
40 myL2L1JetsMap.clear();
45 for( vtag::const_iterator
s = jetSrc.begin();
s != jetSrc.end(); ++
s ) {
48 for(CaloJetCollection::const_iterator iTau = tauJets->begin();iTau !=tauJets->end();iTau++)
51 if(iTau->et() > mEt_Min) {
56 myTmpJets.push_back(myJet);
72 while(myTmpJets.size()>0) {
73 tauL2jets->push_back(myTmpJets.at(0));
75 for(
unsigned int i=1 ;
i<myTmpJets.size();++
i) {
76 double DR = ROOT::Math::VectorUtil::DeltaR(myTmpJets.at(0).p4(),myTmpJets.at(
i).p4());
78 tmp.push_back(myTmpJets.at(
i));
85 iEvent.
put(tauL2jets);
T getParameter(std::string const &) const
L2TauJetsMerger(const edm::ParameterSet &)
Jets made from CaloTowers.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< std::vector< double > > tmp
virtual void setPdgId(int pdgId)
std::vector< edm::InputTag > vtag
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects