46 tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
49 produces<reco::IsolatedPixelTrackCandidateCollection>();
92 std::vector<edm::Ref<l1t::TauBxCollection> > l1tauobjref;
93 std::vector<edm::Ref<l1t::JetBxCollection> > l1jetobjref;
98 double ptTriggered = -10;
99 double etaTriggered = -100;
100 double phiTriggered = -100;
105 for (
unsigned int p = 0;
p < l1tauobjref.size();
p++) {
106 if (l1tauobjref[
p]->
pt() > ptTriggered) {
107 ptTriggered = l1tauobjref[
p]->pt();
108 phiTriggered = l1tauobjref[
p]->phi();
109 etaTriggered = l1tauobjref[
p]->eta();
112 for (
unsigned int p = 0;
p < l1jetobjref.size();
p++) {
113 if (l1jetobjref[
p]->
pt() > ptTriggered) {
114 ptTriggered = l1jetobjref[
p]->pt();
115 phiTriggered = l1jetobjref[
p]->phi();
116 etaTriggered = l1jetobjref[
p]->eta();
120 auto iptcCollection = std::make_unique<reco::IsolatedPixelTrackCandidateCollection>();
125 for (l1extra::L1JetParticleCollection::const_iterator tit = l1Taus->begin(); tit != l1Taus->end(); tit++) {
126 double dphi = fabs(tit->phi() - phiTriggered);
128 dphi = 2 *
M_PI - dphi;
129 double Rseed =
sqrt(
pow(etaTriggered - tit->eta(), 2) + dphi * dphi);
134 double OutEnergy = 0;
142 double phihit =
pos.phi();
143 double etahit =
pos.eta();
144 phiD = fabs(phihit - tit->phi());
146 phiD = 2 *
M_PI - phiD;
147 R =
sqrt(
pow(etahit - tit->eta(), 2) + phiD * phiD);
157 OutEnergy += eItr->energy();
160 InEnergy += eItr->energy();
167 double phihit =
pos.phi();
168 double etahit =
pos.eta();
169 phiD = fabs(phihit - tit->phi());
171 phiD = 2 *
M_PI - phiD;
172 R =
sqrt(
pow(etahit - tit->eta(), 2) + phiD * phiD);
180 OutEnergy += eItr->energy();
183 InEnergy += eItr->energy();
191 iptcCollection->push_back(newca);