38 using namespace trigger;
39 using namespace l1extra;
49 typedef std::vector<edm::EDGetTokenT<reco::CaloJetCollection> > vtag_token;
53 CaloJetCollection::const_iterator iTau = tauJets->begin();
54 if(iTau != tauJets->end()){
56 myL2L1JetsMap.insert(std::pair<int, const CaloJet>(iL1Jet, *(iTau)));
65 double matchingR = 0.01;
82 for(
unsigned int i=0;
i<myL1Tau.size();
i++)
84 myL1Obj.push_back(myL1Tau[
i]);
86 for(
unsigned int j=0;
j<myL1Jet.size();
j++)
88 myL1Obj.push_back(myL1Jet[
j]);
102 for(
unsigned int iL1Tau=0; iL1Tau <
tauCandRefVec.size();iL1Tau++)
104 for(
unsigned int iJet=0;iJet<myL1Obj.size();iJet++)
107 std::map<int, const reco::CaloJet>::const_iterator myL2itr =
myL2L1JetsMap.find(iJet);
114 const CaloJet myL2TauJet = myL2itr->second;
115 if(myL2TauJet.
pt() >
mEt_Min) tauL2jets->push_back(myL2TauJet);
125 for(
unsigned int iL1Tau=0; iL1Tau <
jetCandRefVec.size();iL1Tau++)
127 for(
unsigned int iJet=0;iJet<myL1Obj.size();iJet++)
130 std::map<int, const reco::CaloJet>::const_iterator myL2itr =
myL2L1JetsMap.find(iJet);
137 const CaloJet myL2TauJet = myL2itr->second;
139 if(myL2TauJet.
pt() >
mEt_Min) tauL2jets->push_back(myL2TauJet);
152 iEvent.
put(tauL2jets);
Jets made from CaloTowers.
virtual float pt() const
transverse momentum
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::map< int, const reco::CaloJet > myL2L1JetsMap
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tauTrigger
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1ParticlesJet
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< edm::EDGetTokenT< reco::CaloJetCollection > > jetSrcToken
std::vector< l1extra::L1JetParticleRef > tauCandRefVec
std::vector< l1extra::L1JetParticleRef > jetCandRefVec
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1ParticlesTau
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects