34 using namespace trigger;
35 using namespace l1extra;
45 for( vtag::const_iterator
s =
jetSrc.begin();
s !=
jetSrc.end(); ++
s ) {
48 CaloJetCollection::const_iterator iTau = tauJets->begin();
49 if(iTau != tauJets->end()){
51 myL2L1JetsMap.insert(std::pair<int, const CaloJet>(iL1Jet, *(iTau)));
60 double matchingR = 0.01;
77 for(
unsigned int i=0;
i<myL1Tau.size();
i++)
79 myL1Obj.push_back(myL1Tau[
i]);
81 for(
unsigned int j=0;
j<myL1Jet.size();
j++)
83 myL1Obj.push_back(myL1Jet[
j]);
97 for(
unsigned int iL1Tau=0; iL1Tau <
tauCandRefVec.size();iL1Tau++)
99 for(
unsigned int iJet=0;iJet<myL1Obj.size();iJet++)
102 std::map<int, const reco::CaloJet>::const_iterator myL2itr =
myL2L1JetsMap.find(iJet);
109 const CaloJet myL2TauJet = myL2itr->second;
110 if(myL2TauJet.
pt() >
mEt_Min) tauL2jets->push_back(myL2TauJet);
120 for(
unsigned int iL1Tau=0; iL1Tau <
jetCandRefVec.size();iL1Tau++)
122 for(
unsigned int iJet=0;iJet<myL1Obj.size();iJet++)
125 std::map<int, const reco::CaloJet>::const_iterator myL2itr =
myL2L1JetsMap.find(iJet);
132 const CaloJet myL2TauJet = myL2itr->second;
134 if(myL2TauJet.
pt() >
mEt_Min) tauL2jets->push_back(myL2TauJet);
147 iEvent.
put(tauL2jets);
Jets made from CaloTowers.
std::map< int, const reco::CaloJet > myL2L1JetsMap
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag l1ParticlesJet
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double deltaR(double eta1, double eta2, double phi1, double phi2)
virtual double pt() const
transverse momentum
edm::InputTag l1ParticlesTau
std::vector< l1extra::L1JetParticleRef > tauCandRefVec
std::vector< l1extra::L1JetParticleRef > jetCandRefVec
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects