|
|
◆ HighPtTrackEcalDetIdProducer()
HighPtTrackEcalDetIdProducer::HighPtTrackEcalDetIdProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
◆ ~HighPtTrackEcalDetIdProducer()
HighPtTrackEcalDetIdProducer::~HighPtTrackEcalDetIdProducer |
( |
| ) |
|
|
override |
◆ beginRun()
◆ produce()
Definition at line 111 of file Skim_HighPtTrackEcalDetIdProducer.cc.
118 for (TrackCollection::const_iterator itTrack = tkTracks->begin(); itTrack != tkTracks->end(); ++itTrack) {
119 if (itTrack->pt() >
ptcut_) {
122 if (
info.crossedEcalIds.empty())
125 if (!
info.crossedEcalIds.empty()) {
126 DetId centerId =
info.crossedEcalIds.front();
131 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id)
References TrackDetectorAssociator::associate(), caloTopology_, DetId::Ecal, spr::find(), CaloTopology::getSubdetectorTopology(), CaloTopology::getWindow(), triggerObjects_cff::id, iEvent, info(), inputCollectionToken_, TrackDetectorAssociator::InsideOut, interestingDetIdCollectionProducer_cfi::interestingDetIdCollection, eostools::move(), parameters_, ptcut_, DetId::subdetId(), ecaldqm::topology(), and trackAssociator_.
◆ caloTopology_
const CaloTopology* HighPtTrackEcalDetIdProducer::caloTopology_ |
|
private |
◆ inputCollectionToken_
◆ parameters_
◆ ptcut_
double HighPtTrackEcalDetIdProducer::ptcut_ |
|
private |
◆ trackAssociator_
void useDefaultPropagator()
use the default propagator
std::vector< DetId > getWindow(const DetId &id, const int &northSouthSize, const int &eastWestSize) const
Get the neighbors of the given cell in a window of given size.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< reco::TrackCollection > inputCollectionToken_
const CaloTopology * topology(nullptr)
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
TrackAssociatorParameters parameters_
edm::EDCollection< DetId > DetIdCollection
T getParameter(std::string const &) const
TrackDetMatchInfo associate(const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const AssociatorParameters &)
const CaloTopology * caloTopology_
interestingDetIdCollection
TrackDetectorAssociator trackAssociator_
std::vector< Track > TrackCollection
collection of Tracks