Definition at line 69 of file Skim_ProduceIsolationMap.cc.
◆ ProduceIsolationMap()
◆ ~ProduceIsolationMap()
ProduceIsolationMap::~ProduceIsolationMap |
( |
| ) |
|
|
override |
◆ produce()
Definition at line 114 of file Skim_ProduceIsolationMap.cc.
123 edm::LogError(
"ProduceIsolationMap") <<
"TK Tracks collection not found";
134 std::vector<HSCPIsolation> IsolationInfoColl(tkTracks->size());
137 for (TrackCollection::const_iterator itTrack = tkTracks->begin(); itTrack != tkTracks->end(); ++itTrack, TkIndex++) {
141 if (!
info.ecalRecHits.empty()) {
144 if (!
info.hcalRecHits.empty()) {
152 double CountHighPt = 0;
153 for (TrackCollection::const_iterator itTrack2 = TKHandle->begin(); itTrack2 != TKHandle->end(); ++itTrack2) {
154 if (fabs(itTrack->pt() - itTrack2->pt()) < 0.1 && fabs(itTrack->eta() - itTrack2->eta()) < 0.05)
156 float dR =
deltaR(itTrack->momentum(), itTrack2->momentum());
159 SumPt += itTrack2->pt();
165 IsolationInfoColl[TkIndex].Set_TK_CountHighPt(CountHighPt);
166 IsolationInfoColl[TkIndex].Set_TK_Count(Count);
167 IsolationInfoColl[TkIndex].Set_TK_SumEt(SumPt);
170 filler.insert(tkTracks, IsolationInfoColl.begin(), IsolationInfoColl.end());
References PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, TrackDetMatchInfo::EcalRecHits, trigObjTnPSource_cfi::filler, TrackDetMatchInfo::HcalRecHits, iEvent, info(), TrackDetectorAssociator::InsideOut, edm::HandleBase::isValid(), and eostools::move().
◆ inputCollectionToken_
◆ IsolationConeDR_
double ProduceIsolationMap::IsolationConeDR_ |
|
private |
◆ parameters_
◆ TKIsolationPtcut_
double ProduceIsolationMap::TKIsolationPtcut_ |
|
private |
◆ TKToken_
◆ trackAssociator_